[GH-ISSUE #4189] [TUI] Bug: answer did not read as a call of a declared tool and went back as text #1841

Open
opened 2026-11-04 01:54:37 +07:00 by bsakaguchi · 8 comments
Owner

Originally created by @rugabunda on GitHub (Oct 26, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4189

Happened on a fresh install of the latest Strata 0.2.6, toolcalls go to text instead of actual commands.

Image

Git cloned the repo and setup Strata via commandline.

Win 11 26H2 / RTX 3080 TI

Originally created by @rugabunda on GitHub (Oct 26, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/4189 Happened on a fresh install of the latest Strata 0.2.6, toolcalls go to text instead of actual commands. <img width="907" height="842" alt="Image" src="https://github.com/user-attachments/assets/c2ee98e6-e667-4426-8a02-d52ca03baed9" /> Git cloned the repo and setup Strata via commandline. Win 11 26H2 / RTX 3080 TI
Author
Owner

@github-actions[bot] commented on GitHub (Oct 26, 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:

  • Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other], then a short description. Example: "[Engine] decode stops after 2 minutes".
  • 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:6409679845 --> @github-actions[bot] commented on GitHub (Oct 26, 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: - [ ] Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other], then a short description. Example: "[Engine] decode stops after 2 minutes". - [ ] 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)
Author
Owner

@github-actions[bot] commented on GitHub (Oct 26, 2026):

Thanks, this follows the format now.

<!-- gh-comment-id:6409759081 --> @github-actions[bot] commented on GitHub (Oct 26, 2026): Thanks, this follows the format now.
Author
Owner

@Niko1221 commented on GitHub (Oct 29, 2026):

Which client sends the tools (OpenCode, omp, the app), which model and quant, and what does the server line "1 <tool_call> block(s) ... did not read as a call" say? It lists the names the model wrote and the request's declared names.

<!-- gh-comment-id:6491994772 --> @Niko1221 commented on GitHub (Oct 29, 2026): Which client sends the tools (OpenCode, omp, the app), which model and quant, and what does the server line "1 <tool_call> block(s) ... did not read as a call" say? It lists the names the model wrote and the request's declared names.
Author
Owner

@rugabunda commented on GitHub (Oct 30, 2026):

opencode 1.19.5 commandline cli, all Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S and iq3_xss;

here is one (both are actually iq3_xss)

Image

[strata] 5 <tool_call> block(s) in the answer did not read as a call of a declared tool and went back as text (a name the request did not declare, or a form the template does not use); the names the model wrote: bash, bash, bash, bash, bash; the response carries them as strata_rejected_tool_calls, /metrics counts them

here is another

Image

[strata] 3 <tool_call> block(s) in the answer did not read as a call of a declared tool and went back as text (a name the request did not declare, or a form the template does not use); the names the model wrote: bash, glob, bash; the response carries them as strata_rejected_tool_calls, /metrics counts them

https://github.com/Niko1221/Strata/issues/4663

I get around it by using a fork of strata (nvfp4) and compiling/copying just your updated engine.

<!-- gh-comment-id:6514795795 --> @rugabunda commented on GitHub (Oct 30, 2026): opencode 1.19.5 commandline cli, all Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S and iq3_xss; here is one (both are actually iq3_xss) <img width="650" height="859" alt="Image" src="https://github.com/user-attachments/assets/f0039ce8-0ab9-405b-a840-166b26fcda30" /> [strata] 5 <tool_call> block(s) in the answer did not read as a call of a declared tool and went back as text (a name the request did not declare, or a form the template does not use); the names the model wrote: bash, bash, bash, bash, bash; the response carries them as strata_rejected_tool_calls, /metrics counts them here is another <img width="703" height="874" alt="Image" src="https://github.com/user-attachments/assets/71149bcc-2ca9-4f79-a339-72710811cd69" /> [strata] 3 <tool_call> block(s) in the answer did not read as a call of a declared tool and went back as text (a name the request did not declare, or a form the template does not use); the names the model wrote: bash, glob, bash; the response carries them as strata_rejected_tool_calls, /metrics counts them https://github.com/Niko1221/Strata/issues/4663 I get around it by using a fork of strata (nvfp4) and compiling/copying just your updated engine.
Author
Owner

@rugabunda commented on GitHub (Oct 31, 2026):

This is using Strata 0.2.9 in opencode

[strata] 3 <tool_call> block(s) in the answer did not read as a call of a declared tool and went back as text (a name the request did not declare, or a form the template does not use); the names the model wrote: grep, glob, read; the response carries them as strata_rejected_tool_calls, /metrics counts them
Image

<!-- gh-comment-id:6547556822 --> @rugabunda commented on GitHub (Oct 31, 2026): This is using Strata 0.2.9 in opencode [strata] 3 <tool_call> block(s) in the answer did not read as a call of a declared tool and went back as text (a name the request did not declare, or a form the template does not use); the names the model wrote: grep, glob, read; the response carries them as strata_rejected_tool_calls, /metrics counts them <img width="581" height="968" alt="Image" src="https://github.com/user-attachments/assets/f2237851-6bf6-443d-81ee-7bcd11731685" />
Author
Owner

@rugabunda commented on GitHub (Nov 7, 2026):

Strata 0.2.12 in opencode, first message sent; Stata makes most popular top harness opencode useless

Image

[strata] 1 <tool_call> block(s) in the answer did not read as a call of a declared tool and went back as text (a name the request did not declare, or a form the template does not use); the names the model wrote: question; the response carries them as strata_rejected_tool_calls, /metrics counts them

<!-- gh-comment-id:6712289084 --> @rugabunda commented on GitHub (Nov 7, 2026): Strata 0.2.12 in opencode, first message sent; Stata makes most popular top harness opencode useless <img width="731" height="369" alt="Image" src="https://github.com/user-attachments/assets/0f55d20e-d2c0-464f-b22b-100cb7cf3b8e" /> [strata] 1 <tool_call> block(s) in the answer did not read as a call of a declared tool and went back as text (a name the request did not declare, or a form the template does not use); the names the model wrote: question; the response carries them as strata_rejected_tool_calls, /metrics counts them
Author
Owner

@rugabunda commented on GitHub (Nov 7, 2026):

Gateway glob and todowrite now execute on 0.2.12 — the pre-switch failures don't reproduce.

Extra data point, opencode v2 + Qwen3.8-Flash-Next IQ3_XS on RTX-class box, engine 0.2.11 → 0.2.12 mid-session.
0.2.11: repeated rejections of question, todowrite, grep, read — all bare declared names, logged as strata_rejected_tool_calls and returned as text, same session, same turn shape. bash passed throughout. Nothing harness-side: the harness offered the full set and had registered the rejected tools themselves.

0.2.12: after upgrading, direct question/todowrite calls and gateway-forwarded glob/todowrite/task calls all parsed and executed in the same session. One text misfire remains (first turn after the switch, question), consistent with #4828's stated limit — no grammar on the forced opening, so stray prose/unknown names still possible, unmeasured.

The 0.2.11 signature — bare-name calls rejected while a differently-named tool always passed, model-specific, multi-tool requests only — matches #4828's forced-opener corruption exactly (their table: same model family, 0/70 → 70/70), not a schema-registration failure. #5409's alias work plausibly cleaned the rest. Suggest noting in this issue that opencode + Flash-Next users were hitting #4828 under the hood, and that strata_rejected_tool_calls logging the raw block would make name-mismatch vs opener-corruption distinguishable without a replay.

<!-- gh-comment-id:6712612507 --> @rugabunda commented on GitHub (Nov 7, 2026): Gateway glob and todowrite now execute on 0.2.12 — the pre-switch failures don't reproduce. Extra data point, opencode v2 + Qwen3.8-Flash-Next IQ3_XS on RTX-class box, engine 0.2.11 → 0.2.12 mid-session. 0.2.11: repeated rejections of question, todowrite, grep, read — all bare declared names, logged as strata_rejected_tool_calls and returned as text, same session, same turn shape. bash passed throughout. Nothing harness-side: the harness offered the full set and had registered the rejected tools themselves. 0.2.12: after upgrading, direct question/todowrite calls and gateway-forwarded glob/todowrite/task calls all parsed and executed in the same session. One text misfire remains (first turn after the switch, question), consistent with #4828's stated limit — no grammar on the forced opening, so stray prose/unknown names still possible, unmeasured. The 0.2.11 signature — bare-name calls rejected while a differently-named tool always passed, model-specific, multi-tool requests only — matches #4828's forced-opener corruption exactly (their table: same model family, 0/70 → 70/70), not a schema-registration failure. #5409's alias work plausibly cleaned the rest. Suggest noting in this issue that opencode + Flash-Next users were hitting #4828 under the hood, and that strata_rejected_tool_calls logging the raw block would make name-mismatch vs opener-corruption distinguishable without a replay.
Author
Owner

@rugabunda commented on GitHub (Nov 7, 2026):

Brand new opencode 1.19.5 session, just asked 'do some toolcalls' , this is Unsloth 3.1 Qwen 3.8 Flash Next ud-iq3_xxs

Image

[strata] 1 <tool_call> block(s) in the answer did not read as a call of a declared tool and went back as text (a name the request did not declare, or a form the template does not use); the names the model wrote: read; the response carries them as strata_rejected_tool_calls, /metrics counts them

<!-- gh-comment-id:6713422496 --> @rugabunda commented on GitHub (Nov 7, 2026): Brand new opencode 1.19.5 session, just asked 'do some toolcalls' , this is Unsloth 3.1 Qwen 3.8 Flash Next ud-iq3_xxs <img width="490" height="240" alt="Image" src="https://github.com/user-attachments/assets/42c84d42-1abf-4541-90e1-0c5d53e3aaba" /> [strata] 1 <tool_call> block(s) in the answer did not read as a call of a declared tool and went back as text (a name the request did not declare, or a form the template does not use); the names the model wrote: read; the response carries them as strata_rejected_tool_calls, /metrics counts them
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#1841
No description provided.