Skip to content

Provider deletion leaves stale OpenAI provider, causing "provider not found" and preventing Codex authentication #707

Closed

Description

@PierrunoYT

Version / branch / commit

3.0

OS and environment

Windows 11 Pro Powershell

Steps to reproduce

Provider deletion leaves stale OpenAI provider, causing "provider not found" and preventing Codex authentication

Version / branch / commit

Latest Zero release (July 2026)

OS and environment

  • Windows 11
  • PowerShell 7

Steps to reproduce

  1. Open Zero.
  2. Add an OpenAI provider using an API key.
  3. Open the Providers menu.
  4. Press d to delete the OpenAI provider.
  5. Zero displays:
    Delete failed: provider "openai" not found
    
  6. The OpenAI provider still appears in the provider list and remains marked as active.
  7. Select an OpenAI model (for example gpt-4.1 or gpt-5.6-sol).
  8. Start a new chat.

Expected behavior

Expected behavior

  • Deleting the provider should either:
    • Successfully remove it, or
    • Display an error only if the provider truly does not exist.
  • After authenticating with Codex/OpenAI, selecting an OpenAI model should work normally.
  • The provider list and internal configuration should remain in sync.

Actual behavior

Actual behavior

  • Zero reports:
    Delete failed: provider "openai" not found
    
  • The OpenAI provider is still visible in the Providers list and marked as active.
  • Selecting an OpenAI model results in:
    gpt-5.6-sol · openai · not saved (provider "openai" not found)
    
  • The UI indicates that an OpenAI provider exists, while the backend behaves as if it does not.
  • Because of this inconsistent state, it is impossible to remove the provider and re-authenticate using the Codex/OpenAI login flow.

Relevant logs, screenshots, or error messages

Image Image
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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions