issue: "Web Search" button unexpectly disappear #4980

Closed
opened 2025-11-11 16:08:44 -06:00 by GiteaMirror · 7 comments
Owner

Originally created by @tth37 on GitHub (Apr 28, 2025).

Check Existing Issues

  • I have searched the existing issues and discussions.
  • I am using the latest version of Open WebUI.

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

  • I have read and followed all instructions in README.md.
  • I am using the latest version of both Open WebUI and Ollama.
  • I have included the browser console logs.
  • I have included the Docker container logs.
  • I have listed steps to reproduce the bug in detail.

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/config endpoint. Normally, this endpoint returns:

{
    "features": {
        "enable_web_search": true
        ...
    }
}

However, when the user's cookies (access token) become invalid (not included in the request header), the enable_web_search entry is missing from the response. This occurs because the endpoint relies on cookies to identify the current user, and the enable_web_search flag 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

  1. Log in and enable Web Search in the admin panel.
  2. After some time, the token cookies expire and no longer included in the request header.
  3. The /api/config endpoint no longer includes enable_web_search in the response.
  4. The "Web Search" button disappears.

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.

Originally created by @tth37 on GitHub (Apr 28, 2025). ### Check Existing Issues - [x] I have searched the existing issues and discussions. - [x] I am using the latest version of Open WebUI. ### 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 - [x] I have read and followed all instructions in `README.md`. - [x] I am using the latest version of **both** Open WebUI and Ollama. - [x] I have included the browser console logs. - [x] I have included the Docker container logs. - [x] I have listed steps to reproduce the bug in detail. ### 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/config` endpoint. Normally, this endpoint returns: ```json { "features": { "enable_web_search": true ... } } ``` However, when the **user's cookies (access token) become invalid (not included in the request header)**, the `enable_web_search` entry is missing from the response. This occurs because the endpoint relies on cookies to identify the current user, and the `enable_web_search` flag is only included when a valid user session exists. https://github.com/open-webui/open-webui/blob/1349bc47b1bf04e03f4ed0cb2260825e76001375/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 1. Log in and enable Web Search in the admin panel. 2. After some time, the token cookies expire and no longer included in the request header. 3. The `/api/config` endpoint no longer includes `enable_web_search` in the response. 4. The "Web Search" button disappears. ### 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.
GiteaMirror added the bug label 2025-11-11 16:08:44 -06:00
Author
Owner

@tjbck commented on GitHub (Apr 28, 2025):

Taking a look!

@tjbck commented on GitHub (Apr 28, 2025): Taking a look!
Author
Owner

@tjbck commented on GitHub (Apr 28, 2025):

Should be addressed but testing wanted here!

@tjbck commented on GitHub (Apr 28, 2025): Should be addressed but testing wanted here!
Author
Owner

@eric2788 commented on GitHub (May 1, 2025):

I got this problem on v0.6.6, when using internal ip

@eric2788 commented on GitHub (May 1, 2025): I got this problem on v0.6.6, when using internal ip
Author
Owner

@tth37 commented on GitHub (May 1, 2025):

Should have been fixed in latest dev branch, what's your version?

@tth37 commented on GitHub (May 1, 2025): Should have been fixed in latest dev branch, what's your version?
Author
Owner

@eric2788 commented on GitHub (May 1, 2025):

Should have been fixed in latest dev branch, what's your version?

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:

Image

domain with https:

Image

internal ip with http:

Image

@eric2788 commented on GitHub (May 1, 2025): > Should have been fixed in latest dev branch, what's your version? 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: ![Image](https://github.com/user-attachments/assets/7b9718c2-f99c-4524-9162-c02f24aa88fe) domain with https: ![Image](https://github.com/user-attachments/assets/e178bf4f-2c85-437c-89cf-b9d8b0534d0f) internal ip with http: ![Image](https://github.com/user-attachments/assets/27156e17-4f85-4b26-a7dd-f708a09581f7)
Author
Owner

@eric2788 commented on GitHub (May 1, 2025):

this is the /api/config when using http

Image

@eric2788 commented on GitHub (May 1, 2025): this is the `/api/config` when using http ![Image](https://github.com/user-attachments/assets/750111df-d547-4675-8518-ae2826927279)
Author
Owner

@eric2788 commented on GitHub (May 1, 2025):

opps, just saw the latest release version, I am probably using dev branch btw

problem solved

@eric2788 commented on GitHub (May 1, 2025): opps, just saw the latest release version, I am probably using dev branch btw problem solved
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#4980