Skip to content

Multi-account failover issue: Session freezes on depleted primary account despite active secondary Pro account #584

Closed

Description

@bloooi

Client or integration

Codex CLI

Area

CLI

Summary

When working with Codex authentication, a secondary Pro account (with over 50% quota remaining) was added after the primary Plus account's token quota was already fully depleted. However, instead of smoothly routing requests through the secondary account, execution frequently halts mid-task or fails with an overuse warning exclamation icon.
Expected:
Since a secondary Pro account with available tokens was registered, the tool should seamlessly utilize the secondary account's quota without freezing or requiring manual retries when the primary account remains exhausted.
Actual:
Execution frequently stalls during sessions, displaying a limit-reached exclamation mark. In most cases, operations freeze entirely, requiring manual user intervention (e.g., repeatedly instructing it to retry) to resume progress.

Reproduction

  1. Use a primary Codex account (Plus tier) whose token quota has already been completely exhausted.
  2. Subsequently add a secondary Codex authentication account (Pro tier with >50% token quota remaining) via ocx gui.
  3. Initiate a new session or multi-step prompt that consumes model tokens.
  4. Observe execution halting during active tasks, accompanied by an overuse/limit status indicator (exclamation mark icon).
  5. Note that the process does not automatically proceed with the Pro account, but instead freezes until manually prompted to retry.

Observed Conditions:

  • Occurs repeatedly across multiple sessions while operating under this account configuration.
  • Manifests as an unhandled execution stall, requiring explicit manual input ("retry") to continue work.

Version

2.7.41

Operating system

macOS 26.5.2(25F84)

Provider and model

GPT-5.6(Luna, Terra, Sol)

Logs or error output

Screenshots and supporting files

Image Image

Redacted configuration

Checks

  • I searched existing issues and documentation.
  • I removed secrets, tokens, account details, request credentials, and personal data.

Activity

  1. github-actions commented on Jul 28, 2026

    @github-actions
    Contributor

    Automated translation bookkeeping — detected language: English.

  2. self-assigned this
    on Jul 28, 2026
  3. Wibias commented on Jul 28, 2026

    @Wibias
    Contributor

    Fixed in #585.

    Cause: After a depleted primary returned 429, routing cooled that account and switched the active pool account for later turns, but the failing turn was still returned to Codex CLI. The CLI then showed the limit/overuse indicator and stalled until a manual retry.

    Fix:

    • Same-request retry once on an eligible alternate account for pre-stream 429/402 (so the secondary Pro account can serve transparently)
    • Sticky threads already over the auto-switch threshold rebind immediately (no 60s wait)
    • Fail closed with the original 429 when no alternate remains

    After the merge lands on dev, update (or restart the proxy) and retry the multi-account setup: exhausted Plus primary + Pro secondary with remaining quota should continue without freezing on the limit icon.

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