Skip to content

v1.1.0

Latest

Choose a tag to compare

@budhajeewa budhajeewa released this 20 Nov 21:06
· 0 commits to master since this release
d06ba15

opencode-model-refresh v1.1.0

This release adds account-specific provider support, OAuth credentials, a model-refresh history window, and a large reliability pass over the reconciliation engine.

Highlights

Provider variants without extra config

  • Adapter and integration are now inferred from the provider definition’s integrationID.
  • "providers": ["opencode-go"] works directly, reusing the opencode adapter and connection.
  • Explicit adapter / integrationID overrides still work.

OAuth credentials

  • Credentials are read as typed values: API keys and OAuth access tokens.
  • OAuth 401 responses are treated as inconclusive (expired token), not as model removal.
  • API-key 401 remains a definite refusal.

Provider metadata and headers

  • Provider-defined headers such as x-opencode-org-id and billing metadata are forwarded on /models and probe requests.
  • Newly discovered models merge matching models.dev metadata: names, limits, costs, variants, capabilities, package and settings.
  • The merged catalogue is persisted, so metadata survives restarts even after a model is removed.

History window

  • New /refresh-models-history command opens a window with recent additions, removals, no change cycles, guard events and errors.
  • Available in Desktop and the terminal, and from the command palette under Models.
  • The RPC history() method now has a UI.

Timeline improvements

  • changes.txt is always created.
  • No-change cycles are recorded as no change.
  • A baseline inventory is shown when no change history exists.
  • Stale errors from partially reloaded development builds are filtered out.

Reliability

  • Fixed ReferenceError: isGuarded is not defined by inlining the wipe-guard check.
  • mapLimit can no longer leave probe results partially filled.
  • /models requests now time out after 30 seconds.
  • Storage read/write failures no longer abort reconciliation.
  • Repeated identical errors are deduplicated.
  • Cached probe verdicts are pruned for models that are no longer reachable.
  • 429 responses honor Retry-After, falling back to 15 minutes.
  • Recent rate limits take precedence over older successes.
  • Catalogue storage is capped at 5,000 entries.
  • refreshMinutes and probeConcurrency are validated.

Behavior changes

  • The opencode adapter no longer restricts probing to free models. On an API-key-only setup, paid models that return 401 will be removed; with OAuth/OC-Go they are probed normally.
  • probeConcurrency option added (per provider or globally, default 5).
  • opencode-go can be configured as a plain provider string.

Tooling

  • Strict TypeScript configuration (tsconfig.json, npm run typecheck).
  • npm run check runs typecheck, tests and bundle freshness.
  • Test suite expanded to 56 tests, including reconciliation integration tests, probe behavior, credentials, binding inference, history rendering and probe scheduling.
  • Desktop bundle rebuilt and committed.

Upgrade

opencode plugin add opencode-model-refresh

Or update the version in your plugin configuration. Runtime identifiers, state paths and the RPC contract are unchanged.

npm: opencode-model-refresh@1.1.0
Tag: v1.1.0