mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 06:03:26 -05:00
[GH-ISSUE #23173] issue: After native tool calls, streaming reasoning_content is truncated to the first token in the UI #123218
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 @ianustec on GitHub (Mar 28, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/23173
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.8.10
Ollama Version (if applicable)
No response
Operating System
Ubuntu 24.04
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
All streamed reasoning_content after tool execution should stay in the reasoning UI block (or be consistently merged with the same rules as the first reasoning segment), matching what the API stream actually sends.
Actual Behavior
Internal / debug view shows a reasoning block with only the first fragment (e.g. text Okay, very short duration).
The remainder of the same reasoning stream is attached to a separate assistant message content block, so the UI reads like: short “Thought…” + Okay, then , let me process… as normal text.
Steps to Reproduce
Steps to reproduce
Logs & Screenshots
Open WebUI server log (excerpt)
Raw single-line references (from generate_chat_completion / task_body)
Second reasoning block (truncated):
{'type': 'reasoning', 'content': [{'type': 'output_text', 'text': 'Okay'}], 'duration': 0, ...}Next message block (spillover):
{'type': 'message', 'role': 'assistant', 'content': [{'type': 'output_text', 'text': ", let me process the user's query. ..."}]}Additional Information
@Classic298 commented on GitHub (Apr 3, 2026):
cannot reproduce this - i tried on 0.8.11 and 0.8.12. With the steps provided i cant reproduce any behaviour like this. Can you reproduce it on newer versions? are there any other details which are needed to reproduce?
Keep us updated!