mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
issue: "Web Search" button unexpectly disappear #4980
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 @tth37 on GitHub (Apr 28, 2025).
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.6.6 Latest dev branch
Ollama Version (if applicable)
No response
Operating System
Ubuntu 22.04
Browser (if applicable)
Chrome (Windows), Safari (iOS)
Confirmation
README.md.Expected Behavior
The "Web Search" button should remain visible at all times when the feature is enabled in the admin panel.
Actual Behavior
The "Web Search" button sometimes disappears on both PC (Chrome) and iOS (Safari) browsers, even though the feature is enabled in the admin panel. This prevents users from accessing the Web Search functionality.
Workaround
The issue stems from the
/api/configendpoint. Normally, this endpoint returns:However, when the user's cookies (access token) become invalid (not included in the request header), the
enable_web_searchentry is missing from the response. This occurs because the endpoint relies on cookies to identify the current user, and theenable_web_searchflag is only included when a valid user session exists.1349bc47b1/backend/open_webui/main.py (L1260-L1274)When this issue happens, I can only manually signing out and signing back to refresh the cookies and restore the functionality.
Steps to Reproduce
/api/configendpoint no longer includesenable_web_searchin the response.Additional Context
This issue did not occur to me prior to v0.6.6, so I wonder if recent changes in cookie management introduced this error.
@tjbck commented on GitHub (Apr 28, 2025):
Taking a look!
@tjbck commented on GitHub (Apr 28, 2025):
Should be addressed but testing wanted here!
@eric2788 commented on GitHub (May 1, 2025):
I got this problem on v0.6.6, when using internal ip
@tth37 commented on GitHub (May 1, 2025):
Should have been fixed in latest dev branch, what's your version?
@eric2788 commented on GitHub (May 1, 2025):
v0.6.6 open-webui, when using internal ip (http) the Web Search + Image Generation + Code Interpreter buttons are not showing, but using domain with https works
version:
domain with https:
internal ip with http:
@eric2788 commented on GitHub (May 1, 2025):
this is the
/api/configwhen using http@eric2788 commented on GitHub (May 1, 2025):
opps, just saw the latest release version, I am probably using dev branch btw
problem solved