You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Multi-account failover issue: Session freezes on depleted primary account despite active secondary Pro account #584
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
Use a primary Codex account (Plus tier) whose token quota has already been completely exhausted.
Subsequently add a secondary Codex authentication account (Pro tier with >50% token quota remaining) via ocx gui.
Initiate a new session or multi-step prompt that consumes model tokens.
Observe execution halting during active tasks, accompanied by an overuse/limit status indicator (exclamation mark icon).
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
Redacted configuration
Checks
I searched existing issues and documentation.
I removed secrets, tokens, account details, request credentials, and personal data.
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.
Activity
github-actions commentedon Jul 28, 2026
Automated translation bookkeeping — detected language: English.
Wibias commentedon Jul 28, 2026
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:
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.fix(codex): same-request multi-account failover on quota 429 (#584) (#…
feat(auth): account pool round-robin and fill-first strategies (#593)
fix(codex): stop rotating accounts inside an organization-scoped quot…
fix(codex): same-request multi-account failover on quota 429 (lidge-j…
feat(auth): account pool round-robin and fill-first strategies (lidge…
fix(codex): stop rotating accounts inside an organization-scoped quot…