Files
loki/scripts
CatoandClaude e52c65af80 feat(loki): suggested replies on every Loki chat — one tap sends the likely next message (#1115)
Adopts @bitbaum/chatkit 0.6.0 (bitbaum/chatkit#13, merged as 163c879).

- askLoki/runLokiTurn take `replies`: the model is asked for chatkit's
  quick_replies block, and it is taken out of every model reply as it
  arrives (loop rounds, retries, gateway and Groq fallbacks), so it never
  reaches a work note, the grounding verifier, or the stored answer.
  Replies return separately as body.replies.
- /loki: the messages route asks for replies and stores them in
  meta.replies; the thread shows them under the latest answer with
  chatkit's ChatReplies (the separate follow-ups call is now only the
  fallback for an answer that came without them).
- Terminal Loki rail: ChatThread gets onReply; replies hidden under a
  summary that already carries its own "→" steps.
- Floating assistant: /api/loki takes `replies`; buttons under the last
  answer.
- The live preview is stripped once, in useLokiStream, for every surface;
  plainTextForSpeech drops the block so it is never read aloud. MCP, voice
  and prompt runs do not ask for replies, and a stray block is still
  removed from their text.

Fixes found on the way:
- Floating assistant printed answers as raw text (asterisks, bare [F1]
  handles): now rendered as markdown with resolved citations; multi-line
  user turns keep their line breaks.
- /loki follow-up taps were sent on "Auto" instead of the model the
  operator last chose; the terminal rail's replies reuse its last choice.


Claude-Session: https://claude.ai/code/session_01Mg5wrkfw95JWfmAz8yRT1j

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-09 06:18:35 -07:00
..
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00