Skip to content

Discover OpenCode models for canonical runtime profiles #727

Description

@dcellison

Goal

Discover OpenCode's installed/provider-visible models for a canonical runtime profile while retaining safe explicit provider/model entry.

Requirements

  • Discovery runs in the profile's effective OS-user, provider, and credential context.
  • Parse a documented machine-readable interface where available; do not scrape interactive UI.
  • Cache per runtime profile/provider/auth context.
  • Preserve OpenCode's nested model identifiers, including OpenRouter-style paths.
  • A discovery failure must leave structurally valid explicit entry available.
  • Workshop and Telegram consume the same inventory and status.

Acceptance criteria

  • Results are principal-scoped and secret-free.
  • Provider changes invalidate the applicable cache.
  • A selected but temporarily undiscovered model remains visible and is not silently replaced.
  • Tests cover nested identifiers, empty/malformed results, timeouts, and stale-cache fallback.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions