Skip to content

[FEATURE]: Refresh models manually #4734

@sazary

Description

@sazary

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

the problem

afaik there is no way to manually refresh the models list. there are several issues reported that are basically saying "i can't see the latest model just released" and the devs are pointing to manually remove the cache file (~/.cache/opencode/models.json). e.g. look at #4493, #4463, #2961. this is not a good ux and wastes dev time.

the solution

i think we could just add a keyboard shortcut in the "select model" modal, named "refresh models list" with the possible default shortcut of ctrl+r which would basically just call the refresh method at ./packages/opencode/src/provider/models.ts

if this makes sense i could work on a pr

Metadata

Metadata

Assignees

Labels

discussionUsed for feature requests, proposals, ideas, etc. Open discussion

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions