Local ollama models partially missing #3875

Closed
opened 2026-02-16 17:41:47 -05:00 by yindo · 6 comments
Owner

Originally created by @tqian86 on GitHub (Dec 25, 2025).

Originally assigned to: @rekram1-node on GitHub.

Description

After a recent update (currently on 1.0.202), some models in our local ollama server have gone missing. For example, given the following config in opencode.json:

{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "ollama": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "Ollama",
      "options": {
        "baseURL": "http://localhost:11434/v1"
      },
      "models": {
        "devstral-small-2:24b-cloud": {
          "name": "Devstral Small 2 (Cloud)"
        },
        "devstral-small-2:latest": {
          "name": "Devstral Small 2 (local)"
        },
        "devstral-2:123b-cloud": {
          "name": "Devstral 2 (Cloud)"
        }
      }
    }
  }
}

Opencode only sees the "Devstral 2 (Cloud)", but not the "Devstral Small 2 (local)" or "Devstral Small 2 (cloud)".

All three models show up when running ollama list, but opencode only shows one of them:

Image

OpenCode version

1.0.202

Steps to reproduce

  1. Create a opencode.json with the above config
  2. Check what models are reported in opencode.

Screenshot and/or share link

No response

Operating System

MacOS

Terminal

iTerm2

Originally created by @tqian86 on GitHub (Dec 25, 2025). Originally assigned to: @rekram1-node on GitHub. ### Description After a recent update (currently on 1.0.202), some models in our local ollama server have gone missing. For example, given the following config in `opencode.json`: ``` { "$schema": "https://opencode.ai/config.json", "provider": { "ollama": { "npm": "@ai-sdk/openai-compatible", "name": "Ollama", "options": { "baseURL": "http://localhost:11434/v1" }, "models": { "devstral-small-2:24b-cloud": { "name": "Devstral Small 2 (Cloud)" }, "devstral-small-2:latest": { "name": "Devstral Small 2 (local)" }, "devstral-2:123b-cloud": { "name": "Devstral 2 (Cloud)" } } } } } ``` Opencode only sees the "Devstral 2 (Cloud)", but not the "Devstral Small 2 (local)" or "Devstral Small 2 (cloud)". All three models show up when running `ollama list`, but opencode only shows one of them: <img width="613" height="586" alt="Image" src="https://github.com/user-attachments/assets/a29eb9e8-b08a-40a7-93c4-a1d87ef62fd9" /> ### OpenCode version 1.0.202 ### Steps to reproduce 1. Create a opencode.json with the above config 2. Check what models are reported in opencode. ### Screenshot and/or share link _No response_ ### Operating System MacOS ### Terminal iTerm2
yindo added the bug label 2026-02-16 17:41:47 -05:00
yindo closed this issue 2026-02-16 17:41:47 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Dec 25, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #6169: /model TUI picker does not display all custom provider models (models load correctly but don't appear in UI)

The core issue appears to be the same - custom provider models are loading correctly (verified via config), but not all are appearing in the TUI interface. Feel free to ignore if your specific case with ollama models differs from the UI picker visibility issue.

@github-actions[bot] commented on GitHub (Dec 25, 2025): This issue might be a duplicate of existing issues. Please check: - #6169: /model TUI picker does not display all custom provider models (models load correctly but don't appear in UI) The core issue appears to be the same - custom provider models are loading correctly (verified via config), but not all are appearing in the TUI interface. Feel free to ignore if your specific case with ollama models differs from the UI picker visibility issue.
Author
Owner

@tqian86 commented on GitHub (Dec 26, 2025):

Further investigations show that this may not be limited to just local models. There are randomly missing models for OpenRouter (for example, GLM-4.7 just won't show up in the list) and Ollama Cloud as providers. Zed editor's AI provider integration can successfully pull all the models from OpenRouter and Ollama Cloud.

@tqian86 commented on GitHub (Dec 26, 2025): Further investigations show that this may not be limited to just local models. There are randomly missing models for OpenRouter (for example, GLM-4.7 just won't show up in the list) and Ollama Cloud as providers. Zed editor's AI provider integration can successfully pull all the models from OpenRouter and Ollama Cloud.
Author
Owner

@mdlmarkham commented on GitHub (Dec 26, 2025):

glm-4.7 from Ollama Cloud is missing for me.

@mdlmarkham commented on GitHub (Dec 26, 2025): glm-4.7 from Ollama Cloud is missing for me.
Author
Owner

@conradkoh commented on GitHub (Dec 26, 2025):

github copilot opus 4.5 model is missing too. verified that it was still present in 1.0.193. broke in 1.0.194.

@conradkoh commented on GitHub (Dec 26, 2025): github copilot opus 4.5 model is missing too. verified that it was still present in 1.0.193. broke in 1.0.194.
Author
Owner

@tqian86 commented on GitHub (Dec 26, 2025):

I have one more observation to contribute for debugging: when I use the "opencode agent" from within Zed, which loads the same configuration, all the models from the local ollama server show up! So it's almost definitely a TUI bug?

@tqian86 commented on GitHub (Dec 26, 2025): I have one more observation to contribute for debugging: when I use the "opencode agent" from within Zed, which loads the same configuration, all the models from the local ollama server show up! So it's almost definitely a TUI bug?
Author
Owner

@rekram1-node commented on GitHub (Dec 28, 2025):

This should be fixed in latest

@rekram1-node commented on GitHub (Dec 28, 2025): This should be fixed in latest
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3875