Skip to content

OpenAI account setup disappears when the built-in provider is missing #443

Description

@apple-ouyang

Problem

OpenAI account credentials can still exist while providers.openai is missing or disabled. In that state:

  • Providers → Add Provider → Accounts does not show OpenAI because the list is derived only from configured forward providers.
  • Codex Auth shows a dead-end “built-in OpenAI provider is not configured” message even though the account pool is still present.
  • Requests fail with No enabled OpenAI provider for model ... and the GUI offers no direct recovery path.

On macOS with Clash fake-IP DNS, creating the canonical OpenAI preset can also be rejected because chatgpt.com resolves into 198.18.0.0/15, even after the request has passed the strict canonical OpenAI seed validation.

Observed on v2.7.39.

Expected behavior

  • Always show OpenAI in the unified Accounts picker.
  • If OpenAI is missing, create it from the existing canonical provider preset and then open the existing Codex account flow.
  • If OpenAI is disabled, re-enable it without replacing its saved account mode or model settings.
  • Offer the same recovery action directly on the Codex Auth page.
  • Keep destination validation unchanged for custom providers; only the exact canonical built-in OpenAI seed should bypass fake-IP DNS rejection.

Activity

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions