[GH-ISSUE #2200] The issue of execution being interrupted when integrating with Trae and other development tools. #877

Closed
opened 2026-11-04 01:46:42 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @lonestonewy on GitHub (Oct 13, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/2200

Sometimes, after a few rounds of tool_call, it just stops. Strata doesn't take any action, and the IDE doesn't take any action either. I suspect it's a problem with tool_call.
I saw this project:
https://huggingface.co/froggeric/Qwen-Fixed-Chat-Templates
Could it be that the official Jinja template isn't robust enough?

Originally created by @lonestonewy on GitHub (Oct 13, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/2200 Sometimes, after a few rounds of tool_call, it just stops. Strata doesn't take any action, and the IDE doesn't take any action either. I suspect it's a problem with tool_call. I saw this project: https://huggingface.co/froggeric/Qwen-Fixed-Chat-Templates Could it be that the official Jinja template isn't robust enough?
Author
Owner

@chanverlao commented on GitHub (Oct 13, 2026):

我也碰到同样的问题

<!-- gh-comment-id:6135900945 --> @chanverlao commented on GitHub (Oct 13, 2026): 我也碰到同样的问题
Author
Owner

@lonestonewy commented on GitHub (Oct 13, 2026):

替换这个模板后,效果很好了

<!-- gh-comment-id:6137599284 --> @lonestonewy commented on GitHub (Oct 13, 2026): 替换这个模板后,效果很好了
Author
Owner

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

Thanks @lonestonewy and @chanverlao. To tell what stops, we need the server's log of one such turn (the terminal output, or strata-<model>.log next to the config) and the Strata version. Two known causes of "it just stops after some tool calls" are close to this:

  • A tool result or file that quotes <tool_call>, </tool_call>, <tool_response> or </tool_response> used to reach the model as the real special tokens. The model could then end its turn early with an empty reply (#2026). 0.1.43.1 fixed </tool_call>; 0.1.44 covers the other three too.
  • A reply that ends inside its thinking with no answer or call. The log then shows ended_inside_thinking.

On the template: Strata does not use the GGUF's own Jinja template. The server ships its own (serve/chat_template.jinja), and the fixes in the repository you link are already in it or do not apply. If the log shows the model writing a call in another form (JSON, or a call without <tool_call>), try "tool_call_recovery": true in strata-<model>.json.

<!-- gh-comment-id:6153506122 --> @Niko1221 commented on GitHub (Oct 13, 2026): Thanks @lonestonewy and @chanverlao. To tell what stops, we need the server's log of one such turn (the terminal output, or `strata-<model>.log` next to the config) and the Strata version. Two known causes of "it just stops after some tool calls" are close to this: - A tool result or file that quotes `<tool_call>`, `</tool_call>`, `<tool_response>` or `</tool_response>` used to reach the model as the real special tokens. The model could then end its turn early with an empty reply (#2026). 0.1.43.1 fixed `</tool_call>`; 0.1.44 covers the other three too. - A reply that ends inside its thinking with no answer or call. The log then shows `ended_inside_thinking`. On the template: Strata does not use the GGUF's own Jinja template. The server ships its own (`serve/chat_template.jinja`), and the fixes in the repository you link are already in it or do not apply. If the log shows the model writing a call in another form (JSON, or a call without `<tool_call>`), try `"tool_call_recovery": true` in `strata-<model>.json`.
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#877
No description provided.