GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Provide model discovery without authentication refresh or credential resolution · Issue #62640 · anomalyco/opencode

Provide model discovery without authentication refresh or credential resolution #62640

New issue
Copy link
New issue
Copy link
Open
Open
Provide model discovery without authentication refresh or credential resolution#62640
Copy link

Description

@djbclark
djbclark
opened on Nov 7, 2026
Issue body actions

Request

Please provide a model-discovery path that does not initialize authentication-dependent plugins or resolve/refresh credentials.

This is a source-inspected feature request for OpenCode v2.2.6, not a live reproduction. I did not run a credential-refresh probe or inspect any real credential values. In particular, I am not claiming that OpenCode implements omp's !command API-key syntax or reproduces that separate command-execution behavior.

Source path

  1. The models CLI handler resolves a server connection and calls client.model.list for the current directory. Server connection resolution can start a service or standalone server.
  2. The model.list server handler waits for awaitPlugins before returning model metadata.
  3. The OpenAI plugin calls activeCredential during initialization (yield* load() at line 259).
  4. activeCredential calls ctx.integration.connection.resolve.
  5. Integration.connection.resolve refreshes a stored OAuth credential when a refresh implementation exists and the credential expires within five minutes. The refresh call is at line 724.

This suggests that model discovery in a cold location can enter an OAuth-refresh path as part of plugin initialization. It does not imply every listing refreshes authentication: the active connection, credential type/expiry, and whether initialization has already happened matter.

Separately, configuration substitution expands environment/file references, so ordinary configuration loading is also not a credential-free metadata operation.

Why it matters

Passive inventory and routing tools need to enumerate models without changing authentication state, contacting a token endpoint, or materializing credentials merely to inspect metadata. A known/configured model catalog is useful even when authentication and inference readiness remain unverified.

Desired behavior

An explicit metadata-only command or API should:

  1. Return known/configured model metadata without resolving credential values, reading secret-backed references, or refreshing OAuth credentials.
  2. Avoid authentication-dependent plugin initialization, or offer plugins an explicitly non-authenticating discovery interface.
  3. Emit no secret values and distinguish catalog/configuration presence from authenticated availability.
  4. Preserve existing authentication behavior for deliberate inference and other operations that need it.

Suggested regression coverage: instrument the OAuth refresh implementation and credential resolver, then enumerate models in a cold location with an expiring synthetic credential. The metadata-only path should invoke neither. No real credentials or token endpoints are needed.

Targeted issue and PR searches on 2026-11-07 found no matching request.

Activity

  1. opencodejr commented on Nov 7, 2026

    @opencodejr
    opencodejrBot
    on Nov 7, 2026
    Contributor
    More actions

    Thanks for the detailed write-up, @djbclark. You're asking for a metadata-only way to list models: one that returns the catalog and configured models without starting credential-dependent plugins and without resolving or refreshing credentials. It should also make clear that a model appearing in the catalog doesn't mean it's authenticated and ready to use.

    I checked this against the current code. model.list waits for all plugins to finish loading before it returns, and provider plugins such as OpenAI resolve the active connection while they load, so a token close to expiry can be refreshed at that point. This works as designed today, so I'm treating it as a feature request. It can't be built as a plugin, because the wait happens in the server before any plugin code runs. Maintainers will consider it.

    Related issues:

    • Desktop: fatal "Location plugins did not finish activating" when the OpenAI login refresh at startup takes over 5 seconds #61443: the OpenAI login refresh at startup blocks plugin activation
    • provider: slow plugin setup disables all github-copilot models #57495: slow plugin setup disables GitHub Copilot models
    • V2: Reconcile provider catalogs with /models endpoints #40524: reconciling provider catalogs with /models endpoints
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.