[GH-ISSUE #23653] issue: Pinned Ollama models are unpinned during Ollama downtime #107025

Closed
opened 2026-05-18 05:33:30 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @silentoplayz on GitHub (Apr 13, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/23653

Check Existing Issues

  • I have searched for any existing and/or related issues.
  • I have searched for any existing and/or related discussions.
  • I have also searched in the CLOSED issues AND CLOSED discussions and found no related items (your issue might already be addressed on the development branch!).
  • I am using the latest version of Open WebUI.

Installation Method

Git Clone

Open WebUI Version

v0.8.12

Ollama Version (if applicable)

v0.20.6

Operating System

Ubuntu 24.04.4 LTS

Browser (if applicable)

Mozilla Firefox Snap for Ubuntu v148.0.2 (64-bit) / Google Chrome v146.0.7680.80 (64-bit)

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 provided every relevant configuration, setting, and environment variable used in my setup.
  • I have clearly listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc).
  • I have documented step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation. My steps:
  • Start with the initial platform/version/OS and dependencies used,
  • Specify exact install/launch/configure commands,
  • List URLs visited, user input (incl. example values/emails/passwords if needed),
  • Describe all options and toggles enabled or changed,
  • Include any files or environmental changes,
  • Identify the expected and actual result at each stage,
  • Ensure any reasonably skilled user can follow and hit the same issue.

Expected Behavior

Pinned Ollama models should reappear in the "Pinned" section of the chat sidebar once the Ollama service is back online.

Actual Behavior

Pinned Ollama models are permanently removed from the "Pinned" section of the chat sidebar if a page refresh occurs while the Ollama service is temporarily unavailable. This happens because the PinnedModelList component runs a cleanupStalePinnedModels function on mount which incorrectly unpins models if they are missing from the $models store during the refresh.

Steps to Reproduce

  1. Pin an Ollama model to the chat sidebar so it appears in the "Pinned" section.
  2. Restart the Ollama container (docker restart ollama).
  3. Refresh the Open WebUI browser tab while Ollama is unreachable.
  4. Observe that the pinned model disappears from the "Pinned" section (expected behavior during downtime).
  5. Wait for Ollama to be fully back online and refresh the OpeN WebUI browser tab once more.
  6. Verify the model is accessible in the model selector.
  7. Observe that the model does not reappear in the "Pinned" section of the sidebar, as it has been permanently unpinned in the background.

Logs & Screenshots

https://github.com/user-attachments/assets/0ed1927c-40d9-49da-96bd-5bb84256bf2c

Additional Information

The bug is likely caused by overly aggressive pruning logic in src/lib/components/layout/Sidebar/PinnedModelList.svelte. While it is expected for unavailable models to be hidden from the sidebar, the cleanupStalePinnedModels function incorrectly removes them from the user's pinned configuration, preventing them from reappearing once the service is restored.

Originally created by @silentoplayz on GitHub (Apr 13, 2026). Original GitHub issue: https://github.com/open-webui/open-webui/issues/23653 ### Check Existing Issues - [x] I have searched for any existing and/or related issues. - [x] I have searched for any existing and/or related discussions. - [x] I have also searched in the CLOSED issues AND CLOSED discussions and found no related items (your issue might already be addressed on the development branch!). - [x] I am using the latest version of Open WebUI. ### Installation Method Git Clone ### Open WebUI Version v0.8.12 ### Ollama Version (if applicable) v0.20.6 ### Operating System Ubuntu 24.04.4 LTS ### Browser (if applicable) Mozilla Firefox Snap for Ubuntu v148.0.2 (64-bit) / Google Chrome v146.0.7680.80 (64-bit) ### 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 **provided every relevant configuration, setting, and environment variable used in my setup.** - [x] I have clearly **listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup** (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc). - [x] I have documented **step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation**. My steps: - Start with the initial platform/version/OS and dependencies used, - Specify exact install/launch/configure commands, - List URLs visited, user input (incl. example values/emails/passwords if needed), - Describe all options and toggles enabled or changed, - Include any files or environmental changes, - Identify the expected and actual result at each stage, - Ensure any reasonably skilled user can follow and hit the same issue. ### Expected Behavior Pinned Ollama models should reappear in the "Pinned" section of the chat sidebar once the Ollama service is back online. ### Actual Behavior Pinned Ollama models are permanently removed from the "Pinned" section of the chat sidebar if a page refresh occurs while the Ollama service is temporarily unavailable. This happens because the `PinnedModelList` component runs a `cleanupStalePinnedModels` function on mount which incorrectly unpins models if they are missing from the `$models` store during the refresh. ### Steps to Reproduce 1. Pin an Ollama model to the chat sidebar so it appears in the "Pinned" section. 2. Restart the Ollama container (`docker restart ollama`). 3. Refresh the Open WebUI browser tab while Ollama is unreachable. 4. Observe that the pinned model disappears from the "Pinned" section (expected behavior during downtime). 5. Wait for Ollama to be fully back online and refresh the OpeN WebUI browser tab once more. 6. Verify the model is accessible in the model selector. 7. Observe that the model **does not reappear** in the "Pinned" section of the sidebar, as it has been permanently unpinned in the background. ### Logs & Screenshots https://github.com/user-attachments/assets/0ed1927c-40d9-49da-96bd-5bb84256bf2c ### Additional Information The bug is likely caused by overly aggressive pruning logic in `src/lib/components/layout/Sidebar/PinnedModelList.svelte`. While it is expected for unavailable models to be hidden from the sidebar, the `cleanupStalePinnedModels` function incorrectly removes them from the user's pinned configuration, preventing them from reappearing once the service is restored.
GiteaMirror added the bugconfirmed issue labels 2026-05-18 05:33:30 -05:00
Author
Owner

@Classic298 commented on GitHub (Apr 13, 2026):

This was changed recently due to a bug report that the models weren't unpinned when they are down/not available

So this is not a bug but intended

<!-- gh-comment-id:4234357897 --> @Classic298 commented on GitHub (Apr 13, 2026): This was changed recently due to a bug report that the models **weren't** unpinned when they are down/not available So this is not a bug but intended
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#107025