mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #4703] [Engine] Tool call parsing: a call shown as an indented (4-space) Markdown code block becomes a real call #2150
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#2150
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/4703
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 (recover off and on).An answer that explains the call format with an indented code block - four spaces before every line - gets a real
readcall out of it, with the indentation inside the argument value.
Notes: fenced code and inline code are already treated as quotes (#804 / #1058); an indented code block (CommonMark:
four or more spaces after a blank line) is the third Markdown code form. The
pathvalue carrying the indentation showsthe call is not one the model meant to make. Treating such a block as a quote only after a blank line keeps calls the
model indents for other reasons working.
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: no call, and the whole text as the answer.
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):
Fixed in 0.2.9: a call inside an indented code block is now text and isn't run. The longer-fence case in #4702 is fixed too.