Skip to content

v1.15.6: OpenAI OAuth login menu still missing — regression from 1.14.49 (follow-up to #27905) #28636

@willowite

Description

@willowite

Description

The native OpenAI OAuth flow (ChatGPT Plus/Pro browser/headless login) regressed in 1.14.49+ and is still broken on v1.15.6. Running opencode auth login → OpenAI now shows only "Manually enter API Key", omitting the (browser) / (headless) options that worked in 1.14.48.

This is a follow-up to #27905 (still open, contains full root-cause analysis). Filed separately because v1.15.6 was released on 2026-05-20 and does not address the regression.

Diff analysis 1.15.5 → 1.15.6 (gh api compare/v1.15.5...v1.15.6):

Files touched containing the string "auth":

  • packages/console/app/src/routes/auth/[...callback].ts — web console login, unrelated
  • packages/console/function/src/auth.ts — web console, unrelated
  • packages/opencode/src/server/routes/instance/httpapi/middleware/authorization.ts — internal HTTP API headers, unrelated
  • packages/opencode/test/server/httpapi-authorization.test.ts — test for above
  • packages/opencode/test/fixtures/recordings/session/native-openai-tool-call.json — removed fixture

Files NOT touched (which is where the regression lives per #27905 RCA):

  • packages/core/src/auth.tsAuthV2.layer, migrate(), OAuthCredential / Account Schema.Class
  • packages/core/src/plugin/auth.ts — bridge AuthV2.Serviceprovider.options.aisdk.provider.apiKey
  • packages/core/src/provider/openai.ts — OpenAI provider, no OAuth declarations

Two commits sound auth-related but are not:

  • 6618e2b feat(native-llm): route Anthropic API-key models through native runtime — Anthropic only, not OpenAI
  • 8a321c4 fix(native-llm): prefer console opencode token — OpenCode console (zen) token, not ChatGPT OAuth

Scope confirmed in #27905: reproduces with minimal config (single provider, zero plugins) on both CLI and Desktop builds. Workarounds that failed: third-party opencode-openai-codex-auth plugin, manual auth-v2.json construction, copying ~/.codex/auth.json, isolated minimal config, full reinstall. Workarounds that work: pin to 1.14.48, or use plain API key.

Plugins

None (reproduces with zero plugins on a minimal config)

OpenCode version

1.15.6 (also reproduces on 1.14.49 through 1.15.5; works on 1.14.48)

Steps to reproduce

  1. Install opencode 1.15.6 (scoop install opencode or any installer)
  2. Ensure no provider OAuth tokens exist: remove ~/.local/share/opencode/auth.json and ~/.local/share/opencode/auth-v2.json
  3. Run opencode auth login
  4. Select OpenAI from the provider list
  5. Observed: only Manually enter API Key is presented
  6. Expected (1.14.48 behavior):
    Login to OpenAI
      ❯ ChatGPT Pro/Plus (browser)
        ChatGPT Pro/Plus (headless)
        Manually enter API Key
    

Screenshot and/or share link

N/A — interactive CLI menu output cannot be /share-d. Full evidence (telemetry logs, auth.json shape comparison, AuthV2.layer non-activation findings) is in #27905.

Operating System

Windows 11 (build 26200)

Terminal

Windows Terminal (PowerShell 7)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions