Skip to content

A spend-controlled Codex plan reports its quota as a weekly window - #269

Merged
czpython merged 1 commit into
mainfrom
codex-spend-control-window
Aug 17, 2026
Merged

A spend-controlled Codex plan reports its quota as a weekly window#269
czpython merged 1 commit into
mainfrom
codex-spend-control-window

Conversation

@czpython

Copy link
Copy Markdown
Owner

Business accounts under group-based spend controls carry rate_limit: null with credits.unlimited: false — the usage poll read that shape as parse_failed. The quota lives in spend_control.individual_limit, on a cycle that runs weeks, so it maps to a weekly window: percent_left from used_percent, resets_at from reset_at.

Payloads with neither windows, unlimited credits, nor a spend control still fail. A malformed spend control reads as unexpected_payload, like a malformed window.

Closes #245

Business accounts under group-based spend controls carry rate_limit: null
with credits.unlimited false — the usage poll read that as parse_failed.
The quota lives in spend_control.individual_limit, on a cycle that runs
weeks, so it maps to a weekly window. Payloads with neither windows,
unlimited credits, nor a spend control still fail.

Closes #245
@czpython
czpython merged commit bcb3b75 into main Aug 17, 2026
1 check passed
@czpython
czpython deleted the codex-spend-control-window branch August 17, 2026 10:05
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.

Codex usage: business plan with group spend controls reports parse_failed

1 participant