mirror of
https://github.com/open-webui/open-webui.git
synced 2026-08-23 18:02:25 -05:00
[GH-ISSUE #23125] issue: open-terminal read_file inconsistent behavior between user-mode and server-mode #58554
Reference in New Issue
Block a user
Originally created by @Arokha on GitHub (Mar 27, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/23125
Check Existing Issues
Installation Method
Docker
Open WebUI Version
dev
Ollama Version (if applicable)
No response
Operating System
ubuntu 22.04
Browser (if applicable)
Firefox
Confirmation
README.md.Expected Behavior
read_file follows through a path in backend/utils/tools.py that will allow an LLM to read images with it, by examining the Content-Type header. But, this only applies to open-terminal connections set up on a server-side basis.
Actual Behavior
Open-terminal connected on a user-side basis (in user settings) run res.text() in the browser on all responses from the open-terminal API, and lose the Content-Type header, and can never reach the path that would re-parse the binary into base64 for an LLM to use computer vision on. So, this feature seems only available for 'half' of the uses of open-terminal.
Steps to Reproduce
Configure open-terminal on server-side vs user-side and compare the results of read_file through various code paths.
Logs & Screenshots
See above
Additional Information
No response
@tjbck commented on GitHub (Apr 1, 2026):
Addressed in dev.