Chat: failures that show nothing or show the wrong state #1748

Closed
opened 2026-11-02 04:13:41 +00:00 by sam · 2 comments
Owner

In ui/src/chat/:

  • ChatComposer.vue:55-73: getUserMedia has no try/catch. A denied microphone or missing device does nothing visible.
  • state.ts:352-365: setModel shows the new model before the server confirms; on failure the selector keeps the wrong model and the error goes to hidden status text.
  • state.ts:581-610: if the session refresh after a turn fails, the reply stays and the catch also shows "Unable to complete that turn" with Retry, which resends.
  • state.ts:436-438: a voice clip sent while a turn runs is dropped.
  • channel.ts:145-148: localStorage is used without try/catch; with blocked storage every send fails with a DOMException.
  • ChatUpdateCard.vue:59-66: after a failed install there is no Retry or Not now.
  • state.ts:345-350: rename and branch use window.prompt instead of a labelled Dialog.
  • state.ts:593-600: after a stop, the "Turn stopped." row blocks reloadTranscript until the next turn.
  • state.ts:623: a failed cancel is swallowed.

Done when: each failure is shown where it happens and leaves the UI in the server's real state.

In `ui/src/chat/`: - `ChatComposer.vue:55-73`: `getUserMedia` has no try/catch. A denied microphone or missing device does nothing visible. - `state.ts:352-365`: `setModel` shows the new model before the server confirms; on failure the selector keeps the wrong model and the error goes to hidden status text. - `state.ts:581-610`: if the session refresh after a turn fails, the reply stays and the catch also shows "Unable to complete that turn" with Retry, which resends. - `state.ts:436-438`: a voice clip sent while a turn runs is dropped. - `channel.ts:145-148`: localStorage is used without try/catch; with blocked storage every send fails with a DOMException. - `ChatUpdateCard.vue:59-66`: after a failed install there is no Retry or Not now. - `state.ts:345-350`: rename and branch use `window.prompt` instead of a labelled Dialog. - `state.ts:593-600`: after a stop, the "Turn stopped." row blocks `reloadTranscript` until the next turn. - `state.ts:623`: a failed cancel is swallowed. Done when: each failure is shown where it happens and leaves the UI in the server's real state.
sam added the mediumbug labels 2026-11-02 04:13:41 +00:00
sam self-assigned this 2026-11-02 04:13:41 +00:00
Author
Owner

Fixed in fa14e7da and pushed — all eight: getUserMedia failure shows an inline alert; setModel reverts to the server's model and reports in the transcript on failure; a failed post-turn session refresh no longer renders as a retryable turn error; voice clips during a turn queue (queuedVoice) instead of dropping; channelID survives blocked localStorage; failed installs offer Install/Not now again; rename/branch use a labelled Dialog (promptSessionCommand removed); failed cancel sets sessionError; a 'Turn stopped.' row no longer blocks reloadTranscript. Verified: task check passed on the committed tree.

Fixed in fa14e7da and pushed — all eight: getUserMedia failure shows an inline alert; setModel reverts to the server's model and reports in the transcript on failure; a failed post-turn session refresh no longer renders as a retryable turn error; voice clips during a turn queue (queuedVoice) instead of dropping; channelID survives blocked localStorage; failed installs offer Install/Not now again; rename/branch use a labelled Dialog (promptSessionCommand removed); failed cancel sets sessionError; a 'Turn stopped.' row no longer blocks reloadTranscript. Verified: task check passed on the committed tree.
Author
Owner

Fixed in fa14e7da and pushed to main. Gate: task check exited 0 on the committed tree.

Fixed in fa14e7da and pushed to main. Gate: task check exited 0 on the committed tree.
sam closed this issue 2026-11-07 06:09:31 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sam/archie#1748