Skip to content

[Bug] Desktop 1.18.29 can offer OAuth models missing from active provider state #47490

Closed as not planned

Description

@oussama1598

Correction

The original provider-prefix diagnosis was incorrect. OpenCode intentionally formats ProviderModelNotFoundError as <providerID>/<modelID>, so openai/gpt-6-astra does not prove that the provider prefix was passed inside modelID.

The verified failure is that OpenCode Desktop 1.18.29 offered a current OpenAI OAuth model in the picker, but that model was missing from the running provider state. The unfiltered catalog still contained it, which is why the error suggested the same model ID.

Description

With the built-in OpenAI provider connected through ChatGPT/Codex OAuth, Desktop accepted a prompt but showed no assistant response. The backend failed before streaming:

ProviderModelNotFoundError: Model not found: openai/gpt-5.6-terra.
Did you mean: gpt-5.6-terra, ...?

The same occurred with gpt-6-astra. Both are documented OpenAI models:

The persisted Desktop selection was correct:

{
  "providerID": "openai",
  "modelID": "gpt-6-astra"
}

No OPENAI_* environment overrides or external plugins were configured.

Local recovery

Refreshing the OpenCode model catalog and restarting Desktop repaired the local provider state:

opencode models openai --refresh

After the refresh, a clean CLI request using the same OpenAI OAuth login and model succeeded:

opencode run --pure --model openai/gpt-5.6-terra \
  --format json 'Reply with exactly: OPENCODE_GPT_OK'

It returned OPENCODE_GPT_OK. This confirms that authentication, account access, model availability, and the OpenAI transport are healthy.

Expected behavior

Desktop should refresh/rebuild its active provider model state when the catalog changes, or at least surface an actionable error with a refresh/restart recovery path.

Actual behavior

A model present in the picker/catalog can be absent from the running OAuth provider state. Prompt processing fails before streaming, while the Desktop UI appears to do nothing.

Version and platform

  • OpenCode Desktop 1.18.29
  • Ubuntu 26.04.1 LTS, Linux x86_64
  • Electron 42.3.3

Related issues

Activity

  1. github-actions commented on Sep 5, 2026

    @github-actions
    Contributor

    This issue does not fully meet our contributing guidelines.

    What needs to be fixed:

    • The model names referenced in this report (gpt-5.5-pro, gpt-5.6-terra, gpt-6-astra, gpt-6-astra-pro, gpt-6-astra-fast, gpt-5.6-terra-pro, gpt-5.6-terra-fast) do not appear to be real OpenAI models. Please reproduce with actual, existing model IDs and update the report accordingly.
    • The issue reads as AI-generated — with fabricated model names, polished structure, and references to issues that may not match their described content. We require reports based on real, reproducible observations.

    Please edit this issue to address the above within 2 hours, or it will be automatically closed.


    This issue might be a duplicate of existing issues. Please check:

    If you believe this was flagged incorrectly, please let a maintainer know.

  2. changed the title [-][Bug] Desktop 1.18.29 prefixes OpenAI modelID twice, so all GPT prompts fail silently[/-] [+][Bug] Desktop 1.18.29 passes provider-prefixed modelID to OpenAI provider[/+] on Sep 5, 2026
  3. oussama1598 commented on Sep 5, 2026

    @oussama1598
    Author

    Updated the report to address the compliance warning:

    The underlying reproduction remains: Desktop persists providerID: openai and an unprefixed modelID, while SessionPrompt.getModel receives/reports openai/<model> and fails before streaming begins.

  4. github-actions commented on Sep 5, 2026

    @github-actions
    Contributor

    Thanks for updating the issue! The models you referenced (gpt-5.6-terra and gpt-6-astra) are confirmed real OpenAI models, and the report now includes clear reproduction steps, log excerpts, and system information. Everything looks good — the compliance flag has been removed.

  5. changed the title [-][Bug] Desktop 1.18.29 passes provider-prefixed modelID to OpenAI provider[/-] [+][Bug] Desktop 1.18.29 can offer OAuth models missing from active provider state[/+] on Sep 5, 2026
  6. oussama1598 commented on Sep 5, 2026

    @oussama1598
    Author

    Correction after tracing OpenCode 1.18.29 and testing locally:

    • ModelNotFoundError.message intentionally renders ${providerID}/${modelID}; the displayed openai/gpt-... string was not evidence of a duplicated prefix.
    • The failed Desktop instance had the model in the catalog (hence the exact suggestion), but not in its active OpenAI OAuth provider state.
    • opencode models openai --refresh followed by a Desktop restart repaired the local state.
    • A clean request with the same OAuth account and openai/gpt-5.6-terra then returned successfully.

    I updated the title and body so the report reflects the evidence. The remaining issue is stale provider/catalog state plus the silent Desktop failure, not model-ID parsing.

  7. ianosei8 commented on Sep 7, 2026

    @ianosei8

    ty, i love you all 💕

  8. thdxr commented on Oct 11, 2026

    @thdxr
    Member

    Thanks for the report! OpenCode 2.0 is now out and development is focused on V2, so we're closing issues filed against OpenCode 1. Please upgrade (opencode upgrade --major, details: https://anoma.ly/notes/opencode-2-0), and if this is still relevant on 2.0, reopen this issue or open a new one with your 2.0 version.

    — from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊

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

Metadata

Metadata

Assignees

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