Recall chat panel can strand a disabled input when a turn's completion event is lost
Symptom
The native Recall chat panel can reach a state where the message input is disabled, typing does nothing, and the Send button reads Stop. Nothing in the UI recovers it. Collapsing the panel, switching to Terminal mode and back, resetting the meeting, and closing the main window all leave it set, because closing only hides the window. Quitting and relaunching is the only reliable way out.
Hit live on 2026-09-17 while dogfooding: the input would not accept typing and submit did nothing, with no chat backend process left alive under the app.
Mechanism
setRecallChatStreaming(true) sets recallChatInput.disabled = true, and sendRecallChat() returns immediately while the flag is set. Outside sendRecallChat's own catch, the flag is cleared from exactly one place: the recall-chat-done listener. The recall-chat-error listener never clears it on any branch.
So any turn whose completion event does not reach the frontend strands the panel.
Why the obvious fixes are not safe
Two adversarial review passes rejected two different cheap fixes, for the same underlying reason.
Ending the turn when an error arrives with an empty bubble does not work, because an empty bubble does not prove a turn ended. Text chunks render on the next animation frame, reasoning and tool chunks can change only data-status, and CLI stderr is read on a different thread from stdout. That branch can fire mid-answer, null the bubble that in-flight chunks render into, and leave a stale completion to land on the next turn.
Making Stop restore the panel unconditionally does not work either. It adds a second unscoped completion. If the user stops turn A and immediately sends turn B, the other completion from A runs afterward and finishes B while B is still streaming. There is also a pre-registration window: the backend does configuration, context collection and source reauthorization before begin_recall_chat_turn(), so a Stop during that window finds no turn, emits no completion, and the original send then registers and runs with no bubble and no visible Stop.
The actual gap
Frontend chat events carry no turn identity. recall-chat-chunk, recall-chat-done and recall-chat-error are global, so the frontend cannot tell a late event from a finished turn apart from an event for the current one. The backend's turn-ID teardown gives at-most-once ownership of the completion event, not delivery, and emit_to(...).ok() discards emission failures.
Any recovery that does not know which turn it belongs to can tear down a newer turn. That is why no frontend-only fix is sound.
What a real fix needs
- A turn id on every emitted chat event, and a frontend that ignores events for any turn that is not current.
- A cancel that is safe during the pre-registration window, so Stop cannot be lost.
- Reconciliation for HTTP providers, where cancellation sets a flag and clears the slot but does not abort a blocking read, so a worker can stay alive until data arrives or the 120 second timeout expires.
Until then the panel keeps a trap whose only exit is quitting the app.
Correction on provenance. I opened this while chasing a reported "cannot type, cannot submit" symptom in the desktop app. That report turned out to be a different pane and a different mechanism: the Terminal pane's privacy gate refusing to forward Enter when it cannot verify the typed line, which is working as designed and is recoverable with Ctrl-U.
Everything described here is still real, and the two review passes that found it stand. But it is a latent trap in the native chat panel that nobody has reported hitting, not the cause of that incident. Priority should reflect that.