mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#2194
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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 loadsapps/host, while the 0.2.7 code went intoserve/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):apps/host/src/screens/Chat.tsx:595swaps Send for Stop:streaming ? <Btn … onClick={stopStreaming}>Stop</Btn> : <Btn … onClick={onSubmit}>Send</Btn>. So the only control available during an answer is Stop.Chat.tsx:372-382: whilestreaming,submit()only tries the goal queue.apps/host/src/lib/plan.ts:117-126returnsfalseon a 409, and:381puts the text back into the draft and shows the toast "The assistant is still answering" / "Send your message when it has finished."apps/host/server/agent/agent-bridge.mjs:1104throws'queue-idle'— "No goal is running in this chat, so there is nothing to queue behind. Send the message as usual." — andapps/host/server/index.mjs:1912-1914turns that into 409. So during an ordinary answer the message cannot even be parked, let alone sent.whileBusy/parksWhileBusyappear only inserve/web/app.js(:1097,:1102,:1105,:1119,:1121,:1519); a search over all ofapps/host/srcfinds nowhileBusy, no Interrupt, and no entry for it inapps/host/src/screens/Settings.tsx. The setting in the web page's drawer isserve/web/index.html:297-298(Wait / Send after / Interrupt).serve/web/app.js:1126-1131stops the answer by aborting its own request (busy.controller.abort(), letting a running tool finish first viacutAfterTool),:1175-1184then sends the parked message, and the interrupted text is kept and marked (:1281-1291).apps/host/src/lib/store.ts:1422-1435stopStreaming()— the Stop button's handler — posts/api/chat/stopand, when the host reports nothing to stop, aborts the in-flight stream itself (liveTurns,:301-302);:1628-1634is 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,.queuedinapps/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.8I 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
serve/web, Control 0.1.54) has the choice in its drawer: Wait / Send after / Interrupt (serve/web/index.html:297-298)./goalrunning instead of an ordinary answer (/goalis 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.@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.