You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
opencode2: Cursor model picker stays stale after the 24-hour cache expires #194
Environment: OpenCode 2.3.0 on Linux, using cursor-opencode-provider/plugin/opencode2 at 2ea6994.
Reproduction: In an isolated host, seed cursor-models.json with gemini-4-argon four seconds before its 24-hour expiry. Stub AvailableModels to return Argon and Carbon. Start OpenCode, wait until expiry, create a session without sending a prompt, and query model.list again.
Actual: The picker still lists only Argon. The stub received zero discovery requests. The provider log showed opencode2 models: ready count=1 at startup, with no second publication after expiry. ensureModels() returns early once the catalog is loaded and the credential is unchanged.
Expected: Host activity after expiry refreshes the inventory without reloading the Location. With the reference fix, the same test made one discovery request, logged opencode2 models: ready count=2, emitted provider.updated and model.updated, and showed Carbon. A failed refresh should keep the last good catalog. This expiry check used a stub, not a live 24-hour wait.
Activity
fix(opencode2): refresh expired model catalog in place (oakimov#200)