mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[GH-ISSUE #16973] issue: Post-tool “thinking” text leaks outside reasoning tags #56784
Reference in New Issue
Block a user
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 @FabioPolito24 on GitHub (Aug 27, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/16973
Check Existing Issues
Installation Method
Other
Open WebUI Version
v0.6.25
Ollama Version (if applicable)
No response
Operating System
Linux
Browser (if applicable)
Chrome
Confirmation
README.md.Expected Behavior
Any internal reasoning produced after the tool result should remain hidden within the reasoning wrapper/tags.
No orphan closing tag should appear without a corresponding opening tag
Actual Behavior
The model “thinks,” then issues the MCP tool call.
After the tool result is shown, additional “thinking” tokens are displayed to the user (not wrapped).
Only the closing reasoning tag appears afterward (no opening tag).
Internal reasoning becomes visible in the transcript
Steps to Reproduce
Configure an MCP tool (In my case a Tavily web search tool) in Open WebUI.
Run Qwen/Qwen3-32B-AWQ in native function-calling mode with streaming enabled.
Prompt the model with with a question that force him to use the tool and to keep thinking after using it
Observe the streamed transcript in the chat UI.
Logs & Screenshots
Additional Information
Reproduced consistently with Qwen/Qwen3-32B-AWQ. Similar models that emit structured reasoning may also trigger it.
@tjbck commented on GitHub (Aug 27, 2025):
This behaviour depends on the model/inference engine you're using.
@gkachru commented on GitHub (Nov 3, 2025):
I am also facing this with Qwen3 reasoning models running via VLLM. Anyone has any way to fix this?
@Classic298 commented on GitHub (Nov 3, 2025):
@gkachru can you test the /dev branch? A fix related to thinking tags was deployed there.