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#2154
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 @KarlGrier on GitHub (Oct 30, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4704
Area
[Engine] (speed, kernels, models, the server and API)
Desktop app, Terminal or source?
Source (START-HERE.bat, setup.sh or a build)
What happened
In
serve/frontend.py'sOutputParserat v0.2.8 (thinking on; recover off and on).After the reasoning has ended, #4077 drops a
</think>at the start of a line of the answer as a stray, and on purposeignores fences ("the reasoning may have left one open"). When the fence was opened by the answer itself, the tag is part
of what the user asked for - here, an example of a thinking block - and removing it changes the answer.
Notes: the concern behind #4077 (a fence the reasoning left open makes the answer's code tracking wrong) does not apply
to a fence opened after the reasoning ended. Starting the answer's code tracking fresh at the end of the reasoning (as
#4077 already does after a stray) and keeping a
</think>that is inside a fence opened in the answer would cover both.The same rule turns a quoted call into a real one when the fenced example also holds a thinking block - a test file
the user asked for:
Observed:
[('read', {'path': 'EXAMPLE.txt'})]- with recover off and on, whole and in pieces. Expected: no call.Smallest steps or command that reproduce it
Parser level - no model, no GPU, no server. From the root of a v0.2.8 checkout, with this setup:
then:
Observed (the same whole, byte by byte, and in pieces of 7):
Expected: the answer unchanged -
</think>kept inside the fence.Reproduction status
Reproduced locally
Strata version
v0.2.8 (the tag, source checkout, no local modifications) · engine 0.1.54
Graphics card, memory and system
Not involved (parser level, no GPU) · Linux · Python 3.12
Model, size and settings
Not involved: the parser is fed the model's text directly (the Qwen3.8-Flash-Next call form from serve/test_tool_corpus.py).
Measured and drafted with Claude Code.
@Niko1221 commented on GitHub (Oct 31, 2026):
We're leaving this one as it is for now. It's a rare display case, and changing the rule could break how the end of the model's thinking is detected, which matters more for agent runs (#4077). Keeping it open in case we find a safe way.