mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #2674] [CLOSED] serve: log a reply that ended after its thinking with no text and no call (which end: inside the thinking or after </think>) #4207
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#4207
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?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/2674
Author: @page1
Created: 10/15/2026
Status: ❌ Closed
Base:
main← Head:feature/log-empty-answer📝 Commits (1)
da95008serve: log a reply that ended after its thinking with no text and no call (which end: inside the thinking or after )📊 Changes
1 file changed (+7 additions, -0 deletions)
View changed files
📝
serve/server.py(+7 -0)📄 Description
Title
Issue: related to #1053
Summary
Agents sometimes get a turn that thinks and then stops with nothing to show: no text and no tool call. There are two ways to get there: the model ends while the parser is still in the reasoning (#1053's case, which
"reasoning_close_retry"continues), or it closes</think>and stops. The server said nothing either way. Now it prints one line saying which it was.What changed
serve/server.py: when a reply that had thinking finishes withstop, no answer and no cancel, one line is printed with the parser state, the text it held and the last 12 tokens:What it leaves alone: every reply. It only prints.
Extra Notes
Seen in use: 15 such lines while replaying real opencode sessions on IQ3_S (RTX 3090, Windows 11), all of the first kind (
parser=reasoning, nothing held).Tests: all 43
serve/test_*.pysuites pass.serve.test_responsesfailed 2 times in 21 runs on this branch, both inNoLeakedSampler.test_server_close_ends_the_sampler, a thread-count test. The same test failed 1 time in 24 runs on v0.1.44.1 under the same load (and 0 times in 24 runs on this branch), so it looks timing-sensitive rather than caused by this change.🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.