mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 03:18:23 -05:00
[GH-ISSUE #19738] issue: Thinking models render responses inside thinking UI when using native tools #18976
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 @FujinoXiao on GitHub (Dec 4, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/19738
Check Existing Issues
Installation Method
Git Clone
Open WebUI Version
0.6.41
Ollama Version (if applicable)
No response
Operating System
Ubuntu 22.04
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
When thinking models (e.g., gemini-2.5-pro) use native tools, the response after tool execution should appear in the main chat area.
Actual Behavior
When thinking models use native tools, the response content is incorrectly rendered inside the thinking UI block instead of the main response area.
Note: This issue ONLY occurs with native tools. Function calling tools work correctly.
Steps to Reproduce
use this tool
Connect gemini-2.5-pro via OpenRouter (or Google AI API)
Start a new chat, select gemini-2.5-pro as the model
Enable the native tool created in step 1
Send this prompt:
Call my random_words tool 3 times consecutively. Rules: 1. After EACH tool call, write ~50 tokens reflecting on the words and brainstorming a sentence idea 2. After all 3 calls are complete, think deeply (at least 500 tokens) about how to combine all collected words 3. Finally, generate a short story incorporating the words from all 3 calls
Note: This issue also occurs occasionally during normal chat with thinking models using native tools. The complex prompt above is designed to reliably reproduce the issue, but simpler prompts can trigger it intermittently.
Logs & Screenshots
Additional Information
Additional Information:
@owui-terminator[bot] commented on GitHub (Dec 4, 2025):
🔍 Similar Issues Found
I found some existing issues that might be related to this one. Please check if any of these are duplicates or contain helpful solutions:
#19711 issue: Editing function for models broken
by skleffmann • Dec 03, 2025 •
bug#16788 issue: Rendering bug when the response from the model contains
<think>by alanxmay • Aug 21, 2025 •
bug#19702 issue: Image generation tool causes inconsistency between model response and actual generated image
by manwallet • Dec 03, 2025 •
bug#14282 issue: thoughts may not be rendered correctly when using with tools
by funnycups • May 24, 2025 •
bug#19103 issue: no response from the model when ask in "channels"
by silenceroom • Nov 11, 2025 •
bugShow 5 more related issues
#13322 issue: Think tags not playing well with Native Tools enabled.
by ivanwong1989 • Apr 29, 2025 •
bug#14561 issue: thinking not showing up for Openrouter models anymore after recent update
by amanat361 • May 31, 2025 •
bug#16730 issue: Models not generating answers when web search is active
by IMJONEZZ • Aug 19, 2025 •
bug#19439 issue: models do not load in workspace - SyntaxError: Unexpected token "Internal S"... is not valid JSON
by arslancloud • Nov 24, 2025 •
bug#16973 issue: Post-tool “thinking” text leaks outside reasoning tags
by FabioPolito24 • Aug 27, 2025 •
bug💡 Tips:
This comment was generated automatically by a bot. Please react with a 👍 if this comment was helpful, or a 👎 if it was not.
@FujinoXiao commented on GitHub (Dec 4, 2025):
Reviewed all related issues - none are duplicates. My issue provides a consistent way to reproduce this bug, which may help debug those older stale issues as well.
@tjbck commented on GitHub (Dec 4, 2025):
Open to reviewing PRs.