The cache of the Provider‘s Models cannot be updatable #4678

Open
opened 2026-02-16 17:45:01 -05:00 by yindo · 2 comments
Owner

Originally created by @spaceychen on GitHub (Jan 10, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

Image

Once opencode is connected to the lm-studio Provider, the model list is cached and appears to be unupdatable!
As shown in the figure, after updating the lm-studio Provider's model list (such as adding or deleting models), when I refresh the opencode model list cache, the cache is still not updated.

Plugins

No response

OpenCode version

1.1.12

Steps to reproduce

  1. add or delete models from lm-studio
  2. lms ls
  3. opencode models --refresh

Screenshot and/or share link

No response

Operating System

MacOS 15.7.3 (24G419), Apple M4 Pro

Terminal

iTerm2

Originally created by @spaceychen on GitHub (Jan 10, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description <img width="593" height="560" alt="Image" src="https://github.com/user-attachments/assets/c7fc9d44-364e-4049-b331-e47561fc86f2" /> Once `opencode` is connected to the `lm-studio` Provider, the model list is cached and appears to be unupdatable! As shown in the figure, after updating the `lm-studio` Provider's model list (such as adding or deleting models), when I refresh the `opencode` model list cache, the cache is still not updated. ### Plugins _No response_ ### OpenCode version 1.1.12 ### Steps to reproduce 1. add or delete models from lm-studio 2. `lms ls` 3. `opencode models --refresh` ### Screenshot and/or share link _No response_ ### Operating System MacOS 15.7.3 (24G419), Apple M4 Pro ### Terminal iTerm2
yindo added the bug label 2026-02-16 17:45:01 -05:00
Author
Owner

@rekram1-node commented on GitHub (Jan 10, 2026):

for lm studio u need to define the models in your opencode.json rn ik that sucks so ill make it read the lm studio list soon

@rekram1-node commented on GitHub (Jan 10, 2026): for lm studio u need to define the models in your opencode.json rn ik that sucks so ill make it read the lm studio list soon
Author
Owner

@spaceychen commented on GitHub (Jan 10, 2026):

Fortunately, it's not a bug... Looking forward to adding new features.

GET /v1/models

@spaceychen commented on GitHub (Jan 10, 2026): Fortunately, it's not a bug... Looking forward to adding new features. `GET /v1/models`
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#4678