mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #962] Strata ignores cancellation from Claude Code #420
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#420
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 @awcator on GitHub (Oct 5, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/962
Send a large prompt through Claude Code, watch it being processed (reading promopt), then cancel the request and start writing a new one. Strata doesn't notice the cancellation. It keeps processing the old prompt anyway.
@awcator commented on GitHub (Oct 5, 2026):
I see it stops after reading promopt, but is it possible to stop in middle as sson as promopt is nolonger intrested by the user ?
@talisp commented on GitHub (Oct 5, 2026):
A quick way to tell whether this is Strata or the client: try the same thing in Strata's own web chat, which has a Stop button.
ready: http://127.0.0.1:<port>/v1 …); openhttp://127.0.0.1:<port>/in a browser (8080 by default; the port is in your start script /strata-<model>.json). If Strata runs on another machine, use an SSH tunnel (ssh -L 8081:127.0.0.1:<port> <host>, thenhttp://localhost:8081/).api_keyinstrata-<model>.json); it is kept only in your browser.Then paste a long prompt, press Stop while the window still shows
reading the prompt, and watch the server log:@christopherrobertbrooks-tech commented on GitHub (Oct 6, 2026):
A data point that may help narrow this down: when the client actually closes the connection, Strata stopped reading the
prompt within about 4 seconds here, both directly and behind llama-swap.
Setup: Coder IQ1_M, engine 0.1.39, Tesla V100 32 GB,
/v1/messages. Test: send a ~48K-token prompt (streaming),close the socket 8 s into prompt reading, then watch the GPU's utilisation and time a tiny follow-up request.
So the engine abandons the read at about the next prompt chunk (8,192 tokens at ~1,500 tok/s here) rather than finishing
the remaining ~24 s. That suggests checking whether the client really closes its connection when you cancel. Our own
Claude Agent SDK-based client ends the request by stopping its
claudeprocess, which closes the socket; whether theinteractive Claude Code's cancel does the same while a request is still in prompt reading, we have not checked. One
machine and one run each.
Drafted with an AI assistant (Claude) from our measurements, and checked by me.
@Niko1221 commented on GitHub (Oct 6, 2026):
Thanks. We will check what the server does with a client that disconnects while its prompt is still being read, and whether the engine can stop between prompt chunks. Tracked for 0.1.41; no change in 0.1.40.
@Niko1221 commented on GitHub (Oct 13, 2026):
Thanks for the report. To keep the tracker current we are closing issues older than three days: 0.1.44 is out with a long list of fixes, and many older reports are covered by it or by 0.1.43.1.
If this still happens on 0.1.44, please leave a comment here with your engine log (and the version line it prints), and we will reopen it. A new issue that links this one works too.