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 — v2: OpenAI OAuth filters out gpt-6-astra · Issue #47405 · anomalyco/opencode

v2: OpenAI OAuth filters out gpt-6-astra #47405

New issue
Copy link
New issue
Copy link
Closed
Closed
v2: OpenAI OAuth filters out gpt-6-astra#47405
Copy link
Assignees
jlongster
Labels
2.0

Description

@nr1brolyfan
nr1brolyfan
opened on Sep 5, 2026
Issue body actions

Summary

OpenCode V2 filters gpt-6-astra out of the model catalog when using OpenAI ChatGPT/Codex OAuth, even when the model is explicitly configured and the connected account has access to it.

Environment

  • opencode version: 0.0.0-beta-19124
  • OS: Linux 6.6.87.2-microsoft-standard-WSL2, x86_64
  • Terminal: VS Code (TERM_PROGRAM=vscode, TERM=xterm-256color, COLORTERM=truecolor)
  • Shell: /usr/bin/zsh
  • Install/channel: OpenCode V2 beta
  • Active plugins: None configured

Reproduction

  1. Connect OpenAI using ChatGPT/Codex OAuth with an account that has access to GPT-6 Astra.

  2. Add the following to ~/.config/opencode/opencode.jsonc:

    {
      "$schema": "https://opencode.ai/config.json",
      "model": "openai/gpt-6-astra",
      "providers": {
        "openai": {
          "models": {
            "gpt-6-astra": {
              "modelID": "gpt-6-astra",
              "name": "GPT-6 Astra"
            }
          }
        }
      }
    }
  3. Confirm that opencode2 debug config includes openai/gpt-6-astra.

  4. Run opencode2 models.

Expected Behavior

openai/gpt-6-astra should be enabled, listed, and selectable when using ChatGPT/Codex OAuth.

Actual Behavior

The configuration is loaded, but openai/gpt-6-astra is absent from opencode2 models. The issue reproduces consistently.

The V2 OpenAI provider currently matches OAuth models using:

const match = apiID.match(/^gpt-(\d+\.\d+)/)

This requires a decimal component and therefore rejects gpt-6-astra.

Additional Context

The stable OpenCode implementation had a related report and fix:

  • GPT-6 Astra is missing from the OpenAI Codex OAuth model picker #47363
  • fix(opencode): compare Codex GPT versions by major and minor #47385 / commit 02a167e048d3bd7299225068d79e4fce5c830d67

That fix updates packages/opencode/src/plugin/openai/codex.ts, but V2 has a separate implementation in packages/core/src/plugin/provider/openai.ts. The current beta and v2 branches still use the decimal-only regex shown above.

Activity

  1. github-actions
    assigned
    jlongster
    on Sep 5, 2026
  2. github-actions commented on Sep 5, 2026

    @github-actions
    github-actionsBot
    on Sep 5, 2026 – with GitHub Actions
    Contributor
    More actions

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

    • GPT-6 Astra is missing from the OpenAI Codex OAuth model picker #47363: Same symptom (GPT-6 Astra missing from OpenAI Codex OAuth model picker) — appears to be the V1 equivalent of this V2 report

    If this is intentionally tracking the V2-specific fix separately (since V2 has a separate implementation in packages/core), that context is already noted in the issue and this can be kept open as a distinct V2 tracking issue.

  3. opencode-agent
    added
    2.0
    on Sep 5, 2026
  4. rekram1-node commented on Sep 5, 2026

    @rekram1-node
    rekram1-node
    on Sep 5, 2026
    Member
    More actions

    alreaady fixed

  5. rekram1-node
    closed this as completedon Sep 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @jlongster
    jlongster

Labels

2.0

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.