A message that cannot start is kept (#16431)

A message sent to Talk is never lost. When no turn can start for it right now, the message stays in the conversation and one line under it says why and when to try again, marked failed so the page draws Retry:

Messages queued behind one that cannot start are kept too, in the order they were sent.

Retry sends the kept message again, once: the failed line is set aside and the same words start a new turn. The page says "Your message is kept. Tap Retry under it when you are ready." (src/web/pages/talk.ts). In the terminal's Talk (src/tui/screens/talk_chats.ts) the line shows with " · failed", and ssh <forge> talk-again retry <turn> retries it.

What a client gets

A kept message is a send that succeeded, so every door answers it as one:

A refusal that keeps nothing stays an error: an empty or overlong message, no such conversation, more than 12 a minute, a full queue, a file already waiting, or no signed-in person.

Retry, edit and regenerate keep nothing new: one that cannot start puts the exchange back as it was and is refused with why (the page's flash, { ok: false, message } with its status, and ssh <forge> talk-again exiting 1), never "Asked again" (#16593).

Code: heldLine, Kept and keepUnstarted in src/crew/conversation.ts; the starting line is src/crew/starting_line.ts. Tests: test/conversation-turn.test.ts, test/talk-kept-message.test.ts, test/conversation-talk.test.ts, test/talk-starting.test.ts.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs