[GH-ISSUE #5508] [GUI] Stop during reasoning should finish the answer instead of leaving an empty bubble #5476

Open
opened 2026-11-07 23:43:57 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @Astemiir on GitHub (Nov 7, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/5508

[GUI] Stop during reasoning should finish the answer instead of leaving an empty bubble

Area: GUI (web chat)

Versions: app 0.2.12 / control 0.1.58 (serve/web/app.js, $("stop-btn").onclick — today
only busy.controller.abort()).

Problem

On a reasoning model, pressing Stop while the model is still thinking aborts the stream and
keeps only the reasoning block: the answer bubble stays empty. On long tasks the model can also
fall into a repetition loop (0,0,0,…); the only escape is Stop, and it throws away everything
that was already worked out. The user has to start over.

Proposal

When Stop is pressed and there is reasoning but no text yet:

  1. abort the stream as today;
  2. send one short follow-up request with reasoning_effort: "none" (thinking off), low
    temperature, and the beginning of the already-produced reasoning as context:
    "Reasoning was interrupted. Here is what has been established: … Answer the question briefly,
    without new reasoning."
    ;
  3. append the streamed answer to the same bubble and mark it, e.g.
    chat.finishedAfterStop → "answer from the interrupted reasoning".

If Stop is pressed while the answer is already streaming, keep the current behaviour (plain
stop). No server change is needed: reasoning_effort: "none" already maps to
enable_thinking: false.

Evidence

Verified on a local build: "sum of all primes below 500, step by step", thinking level high,
Stop after 6 s → the bubble received "…21 536" with the "answer from the interrupted reasoning"
label instead of staying empty. The same prompt without the fix ended in the 0,0,0,… loop and
an empty bubble.

Test plan

  • reasoning model, long enumerative prompt, Stop at ~5 s → content non-empty, marker shown;
  • Stop while text is streaming → unchanged, partial text kept;
  • Stop with no reasoning (before the first token) → unchanged behaviour.
Originally created by @Astemiir on GitHub (Nov 7, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/5508 # [GUI] Stop during reasoning should finish the answer instead of leaving an empty bubble **Area:** GUI (web chat) **Versions:** app 0.2.12 / control 0.1.58 (`serve/web/app.js`, `$("stop-btn").onclick` — today only `busy.controller.abort()`). ## Problem On a reasoning model, pressing **Stop** while the model is still thinking aborts the stream and keeps only the reasoning block: the answer bubble stays empty. On long tasks the model can also fall into a repetition loop (`0,0,0,…`); the only escape is Stop, and it throws away everything that was already worked out. The user has to start over. ## Proposal When Stop is pressed and there is `reasoning` but no `text` yet: 1. abort the stream as today; 2. send one short follow-up request with `reasoning_effort: "none"` (thinking off), low temperature, and the beginning of the already-produced reasoning as context: *"Reasoning was interrupted. Here is what has been established: … Answer the question briefly, without new reasoning."*; 3. append the streamed answer to the **same** bubble and mark it, e.g. `chat.finishedAfterStop` → "answer from the interrupted reasoning". If Stop is pressed while the answer is already streaming, keep the current behaviour (plain stop). No server change is needed: `reasoning_effort: "none"` already maps to `enable_thinking: false`. ## Evidence Verified on a local build: "sum of all primes below 500, step by step", thinking level high, Stop after 6 s → the bubble received "…21 536" with the "answer from the interrupted reasoning" label instead of staying empty. The same prompt without the fix ended in the `0,0,0,…` loop and an empty bubble. ## Test plan - reasoning model, long enumerative prompt, Stop at ~5 s → `content` non-empty, marker shown; - Stop while text is streaming → unchanged, partial text kept; - Stop with no reasoning (before the first token) → unchanged behaviour.
Author
Owner

@github-actions[bot] commented on GitHub (Nov 7, 2026):

Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing:

  • Add your graphics card with its VRAM, your RAM and your operating system.

Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment /reopen.

Details: CONTRIBUTING.md

<!-- gh-comment-id:6709594532 --> @github-actions[bot] commented on GitHub (Nov 7, 2026): Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing: - [ ] Add your graphics card with its VRAM, your RAM and your operating system. Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment `/reopen`. Details: [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md)
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#5476
No description provided.