Skip to content

fix: restore API fallback for ordinal Codex quota dates - #34

Merged
RobertTLange merged 2 commits into
mainfrom
fix/codex-capacity-retries
Sep 12, 2026
Merged

fix: restore API fallback for ordinal Codex quota dates#34
RobertTLange merged 2 commits into
mainfrom
fix/codex-capacity-retries

Conversation

@RobertTLange

Copy link
Copy Markdown
Owner

Codex quota errors with reset dates such as Sep 17th, 2026 were not recognized, so Headless returned exit 1 without attempting API fallback or reporting terminal billing exit 78. Accept the four ordinal date suffixes while preserving bounded matching and native error-envelope checks.

Regression tests cover the exact production error, all suffixes, tool-output isolation, same-session API fallback with preserved model and reasoning effort, and terminal subscription-only or missing-credential behavior. Existing subscription credentials remain unchanged and test keys stay out of output.

Validation: npm run check under Node 24 and umask 022: 762 passed, 3 platform skips. Focused matcher coverage: 99% lines, 97% branches. Read-only review found no material issues.

@RobertTLange
RobertTLange merged commit 93cd9b0 into main Sep 12, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant