mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-23 18:41:28 -05:00
[GH-ISSUE #18743] issue: Tool call results intermittently fail to display in UI when result data is large #18691
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 @kjpoccia on GitHub (Oct 30, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/18743
Originally assigned to: @tjbck on GitHub.
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.6.34
Ollama Version (if applicable)
No response
Operating System
macOS Sequoia and Windows 11
Browser (if applicable)
Safari 26.0.1, Chrome 141.0, Edge
Confirmation
README.md.Expected Behavior
Actual Behavior
Steps to Reproduce
Logs & Screenshots
The issue isn't clear from logs alone - in the screenshot you can see that the tool result is not included in the collapsible component, however the model responds that it has received the documents.
Additional Information
Description
The current implementation in middleware.py stores the tool result in an HTML attribute:
tool_calls_display_content = f'<details type="tool_calls" done="true" ... result="{html.escape(json.dumps(tool_result, ensure_ascii=False))}" ...>'This fails when:
Proposed Fix
Impact
I have a working fix implemented locally and am prepared to submit a PR. The fix: