[GH-ISSUE #4783] [GUI] the desktop chat cannot interject while an answer is streaming: the Wait / Send after / Interrupt choice of #4004 exists only on the web chat page #2194

Closed
opened 2026-11-04 01:57:24 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @xvcezrqpbxtpzblrt on GitHub (Oct 31, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4783

2026-11-06 核对结果:装机 0.2.11 与 main@9f7d977d2 已存在该修复——Settings 有 "While an answer is being written" 三选项(Wait for the answer / Send after the answer / Interrupt the answer,Settings.tsx),while-busy.ts 实现 wait/queue/interject(注释含 #4783);桌面端与 serve 共享。未做 GUI 实测。可关单;如桌面端仍无法中途插话请带版本屏幕截图。


Area

[GUI] (the desktop app)

Desktop app, Terminal or source?

Desktop app (Windows, Linux or Mac)

What happened

#4004 was closed as shipped in 0.2.7 ("the web chat page has the setting When you send while it is answering: Wait, Send after, or Interrupt"). The desktop app has no such setting and no such behaviour, and it is a different UI: apps/desktop/src-tauri/tauri.conf.json → build.frontendDist: "../../host/dist", i.e. the window loads apps/host, while the 0.2.7 code went into serve/web.

What the desktop does when the assistant is mid-answer (tag v0.2.8, app 0.2.8, Control and engine 0.1.54):

  • There is no send button while an answer streams. apps/host/src/screens/Chat.tsx:595 swaps Send for Stop: streaming ? <Btn … onClick={stopStreaming}>Stop</Btn> : <Btn … onClick={onSubmit}>Send</Btn>. So the only control available during an answer is Stop.
  • Enter in the composer bounces the message back. Chat.tsx:372-382: while streaming, submit() only tries the goal queue. apps/host/src/lib/plan.ts:117-126 returns false on a 409, and :381 puts the text back into the draft and shows the toast "The assistant is still answering" / "Send your message when it has finished."
  • The 409 is because only a goal can be queued behind. apps/host/server/agent/agent-bridge.mjs:1104 throws 'queue-idle' — "No goal is running in this chat, so there is nothing to queue behind. Send the message as usual." — and apps/host/server/index.mjs:1912-1914 turns that into 409. So during an ordinary answer the message cannot even be parked, let alone sent.
  • Nothing in the desktop app knows the three modes. whileBusy / parksWhileBusy appear only in serve/web/app.js (:1097, :1102, :1105, :1119, :1121, :1519); a search over all of apps/host/src finds no whileBusy, no Interrupt, and no entry for it in apps/host/src/screens/Settings.tsx. The setting in the web page's drawer is serve/web/index.html:297-298 (Wait / Send after / Interrupt).
  • The web page's Interrupt needs no engine work, so this is purely UI wiring. serve/web/app.js:1126-1131 stops the answer by aborting its own request (busy.controller.abort(), letting a running tool finish first via cutAfterTool), :1175-1184 then sends the parked message, and the interrupted text is kept and marked (:1281-1291).
  • The desktop already owns both halves. apps/host/src/lib/store.ts:1422-1435 stopStreaming() — the Stop button's handler — posts /api/chat/stop and, when the host reports nothing to stop, aborts the in-flight stream itself (liveTurns, :301-302); :1628-1634 is the same thing for a named chat from the board. An interrupted turn already keeps its partial text (:197 "Response interrupted. Ask again to retry; the partial answer is kept."). Queued messages already render (apps/host/src/components/PlanCard.tsx:93-97, .queued in apps/host/src/styles/app.css:7379-7383) — but only for goal runs, per the 409 above.

Net effect for the desktop user: mid-answer you can only Stop (losing the rest of the answer and having to ask again) or wait, which is exactly what #4004 asked to avoid. Note that another user asked about precisely this on #4004 on 28 October and has had no answer: "@Niko1221 I am not able to find this setting in the Windows desktop app, where is it located?" — I could not answer it either, and after reading v0.2.8 I do not think it exists in the desktop app.

Expected: the same three modes as the web chat page — default Wait (today's behaviour), Send after (park one message under the conversation, which the desktop can already render), Interrupt (stop the stream, keep what was written marked interrupted, then send) — plus a setting for it in the desktop's Settings: its General section already holds switches of this kind — Sound when work finishes and Notify me when Strata needs an answer (apps/host/src/screens/Settings.tsx:32-33).

Smallest steps or command that reproduce it

  1. In the Windows desktop app, ask something that takes tens of seconds, so an answer is visibly streaming.
  2. While it streams, type a short message in the composer (for example "stop, use the other folder instead") and press Enter.
  3. Got: the text returns to the composer and the toast says "The assistant is still answering — Send your message when it has finished." The only button in the composer is Stop. Expected: what 0.2.7 describes for the web page — with Interrupt the answer stops where it is, keeps what it wrote marked interrupted, and the message goes at once.
  4. For contrast, the same build's web chat page (serve/web, Control 0.1.54) has the choice in its drawer: Wait / Send after / Interrupt (serve/web/index.html:297-298).
  5. Same steps with a /goal running instead of an ordinary answer (/goal is in the desktop slash menu, Chat.tsx:474): the host does not throw 'queue-idle', so the message is accepted and shown as a dashed bubble under the conversation (PlanCard.tsx:93-97). This last step is read from the code path, not clicked through: it is here to show the parking half already exists in the desktop app and only the ordinary-answer and interrupt cases are missing.

Reproduction status

Reproduced locally

Strata version

Strata 0.2.8 · engine 0.1.54

Graphics card, memory and system

RTX 3080 Ti Laptop 16 GB · 64 GB RAM · Windows 11 (10.0.26300)

Model, size and settings

Swift 1.5 IQ3_XXS · 393K context · pictures on

Logs

Behaviour seen by hand in the desktop app; the file and line references above are from tag v0.2.8 (apps/host/src/screens/Chat.tsx, apps/host/src/lib/plan.ts, apps/host/src/lib/store.ts, apps/host/server/index.mjs, apps/host/server/agent/agent-bridge.mjs, serve/web/app.js, serve/web/index.html, apps/desktop/src-tauri/tauri.conf.json). Related but different: #2821 asks for the engine to let short requests interrupt a long single-engine response — that is about the engine; this issue is only that the desktop UI exposes none of the three modes that #4004 ships on the web page.

Originally created by @xvcezrqpbxtpzblrt on GitHub (Oct 31, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/4783 **2026-11-06 核对结果**:装机 0.2.11 与 main@9f7d977d2 已存在该修复——Settings 有 "While an answer is being written" 三选项(Wait for the answer / Send after the answer / Interrupt the answer,Settings.tsx),while-busy.ts 实现 wait/queue/interject(注释含 #4783);桌面端与 serve 共享。未做 GUI 实测。可关单;如桌面端仍无法中途插话请带版本屏幕截图。 --- ### Area [GUI] (the desktop app) ### Desktop app, Terminal or source? Desktop app (Windows, Linux or Mac) ### What happened #4004 was closed as shipped in 0.2.7 ("the web chat page has the setting *When you send while it is answering*: Wait, Send after, or Interrupt"). The desktop app has no such setting and no such behaviour, and it is a different UI: `apps/desktop/src-tauri/tauri.conf.json` → `build.frontendDist: "../../host/dist"`, i.e. the window loads `apps/host`, while the 0.2.7 code went into `serve/web`. What the desktop does when the assistant is mid-answer (tag `v0.2.8`, app 0.2.8, Control and engine 0.1.54): - **There is no send button while an answer streams.** `apps/host/src/screens/Chat.tsx:595` swaps Send for **Stop**: `streaming ? <Btn … onClick={stopStreaming}>Stop</Btn> : <Btn … onClick={onSubmit}>Send</Btn>`. So the only control available during an answer is Stop. - **Enter in the composer bounces the message back.** `Chat.tsx:372-382`: while `streaming`, `submit()` only tries the goal queue. `apps/host/src/lib/plan.ts:117-126` returns `false` on a 409, and `:381` puts the text back into the draft and shows the toast **"The assistant is still answering" / "Send your message when it has finished."** - **The 409 is because only a goal can be queued behind.** `apps/host/server/agent/agent-bridge.mjs:1104` throws `'queue-idle'` — *"No goal is running in this chat, so there is nothing to queue behind. Send the message as usual."* — and `apps/host/server/index.mjs:1912-1914` turns that into 409. So during an ordinary answer the message cannot even be parked, let alone sent. - **Nothing in the desktop app knows the three modes.** `whileBusy` / `parksWhileBusy` appear only in `serve/web/app.js` (`:1097`, `:1102`, `:1105`, `:1119`, `:1121`, `:1519`); a search over all of `apps/host/src` finds no `whileBusy`, no *Interrupt*, and no entry for it in `apps/host/src/screens/Settings.tsx`. The setting in the web page's drawer is `serve/web/index.html:297-298` (**Wait** / **Send after** / **Interrupt**). - **The web page's Interrupt needs no engine work, so this is purely UI wiring.** `serve/web/app.js:1126-1131` stops the answer by aborting its own request (`busy.controller.abort()`, letting a running tool finish first via `cutAfterTool`), `:1175-1184` then sends the parked message, and the interrupted text is kept and marked (`:1281-1291`). - **The desktop already owns both halves.** `apps/host/src/lib/store.ts:1422-1435` `stopStreaming()` — the Stop button's handler — posts `/api/chat/stop` and, when the host reports nothing to stop, aborts the in-flight stream itself (`liveTurns`, `:301-302`); `:1628-1634` is the same thing for a named chat from the board. An interrupted turn already keeps its partial text (`:197` "Response interrupted. Ask again to retry; the partial answer is kept."). Queued messages already render (`apps/host/src/components/PlanCard.tsx:93-97`, `.queued` in `apps/host/src/styles/app.css:7379-7383`) — but only for goal runs, per the 409 above. Net effect for the desktop user: mid-answer you can only Stop (losing the rest of the answer and having to ask again) or wait, which is exactly what #4004 asked to avoid. Note that another user asked about precisely this on #4004 on 28 October and has had no answer: *"@Niko1221 I am not able to find this setting in the Windows desktop app, where is it located?"* — I could not answer it either, and after reading `v0.2.8` I do not think it exists in the desktop app. Expected: the same three modes as the web chat page — default Wait (today's behaviour), Send after (park one message under the conversation, which the desktop can already render), Interrupt (stop the stream, keep what was written marked interrupted, then send) — plus a setting for it in the desktop's Settings: its General section already holds switches of this kind — *Sound when work finishes* and *Notify me when Strata needs an answer* (`apps/host/src/screens/Settings.tsx:32-33`). ### Smallest steps or command that reproduce it 1. In the Windows desktop app, ask something that takes tens of seconds, so an answer is visibly streaming. 2. While it streams, type a short message in the composer (for example "stop, use the other folder instead") and press Enter. 3. Got: the text returns to the composer and the toast says "The assistant is still answering — Send your message when it has finished." The only button in the composer is Stop. Expected: what 0.2.7 describes for the web page — with Interrupt the answer stops where it is, keeps what it wrote marked interrupted, and the message goes at once. 4. For contrast, the same build's web chat page (`serve/web`, Control 0.1.54) has the choice in its drawer: Wait / Send after / Interrupt (`serve/web/index.html:297-298`). 5. Same steps with a `/goal` running instead of an ordinary answer (`/goal` is in the desktop slash menu, `Chat.tsx:474`): the host does not throw `'queue-idle'`, so the message is accepted and shown as a dashed bubble under the conversation (`PlanCard.tsx:93-97`). This last step is read from the code path, not clicked through: it is here to show the parking half already exists in the desktop app and only the ordinary-answer and interrupt cases are missing. ### Reproduction status Reproduced locally ### Strata version Strata 0.2.8 · engine 0.1.54 ### Graphics card, memory and system RTX 3080 Ti Laptop 16 GB · 64 GB RAM · Windows 11 (10.0.26300) ### Model, size and settings Swift 1.5 IQ3_XXS · 393K context · pictures on ### Logs Behaviour seen by hand in the desktop app; the file and line references above are from tag `v0.2.8` (`apps/host/src/screens/Chat.tsx`, `apps/host/src/lib/plan.ts`, `apps/host/src/lib/store.ts`, `apps/host/server/index.mjs`, `apps/host/server/agent/agent-bridge.mjs`, `serve/web/app.js`, `serve/web/index.html`, `apps/desktop/src-tauri/tauri.conf.json`). Related but different: #2821 asks for the engine to let short requests interrupt a long single-engine response — that is about the engine; this issue is only that the desktop UI exposes none of the three modes that #4004 ships on the web page.
Author
Owner

@TaskPuppyNatani commented on GitHub (Oct 31, 2026):

I can confirm this also affects the Linux AppImage.

While an agent/model response is running, I can't send a new message to steer or correct it. The composer effectively becomes wait-or-stop, so if the agent starts going in the wrong direction I have to stop the entire response and then send a follow-up.

Having the same Wait / Send after / Interrupt behavior described here would be a big improvement for longer agentic coding tasks.

I'm also interested in helping test, and potentially contribute to the implementation on Linux if the proposed scope is acceptable.

<!-- gh-comment-id:6540423956 --> @TaskPuppyNatani commented on GitHub (Oct 31, 2026): I can confirm this also affects the Linux AppImage. While an agent/model response is running, I can't send a new message to steer or correct it. The composer effectively becomes wait-or-stop, so if the agent starts going in the wrong direction I have to stop the entire response and then send a follow-up. Having the same Wait / Send after / Interrupt behavior described here would be a big improvement for longer agentic coding tasks. I'm also interested in helping test, and potentially contribute to the implementation on Linux if the proposed scope is acceptable.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#2194
No description provided.