Skip to content

v6.8.0

Choose a tag to compare

@ndycode ndycode released this 14 Jul 09:57
· 333 commits to main since this release

Published to npm as oc-codex-multi-auth@6.8.0.

npm install -g oc-codex-multi-auth@6.8.0

Added

codex-reset — view and redeem banked Codex rate-limit reset credits (#193)

OpenAI grants eligible plans a small number of rate-limit reset credits, but exposes redemption only in the Codex desktop app, the IDE extensions, and the Codex CLI /usage screen. Users of this plugin — Linux users in particular — had no way to spend a credit they already own without switching tools.

codex-reset                                     # banked credits + current usage
codex-reset action="consume"                    # preview only — does NOT redeem
codex-reset action="consume" confirm=true       # redeem
codex-reset action="consume" confirm=true dryRun=true
codex-reset format="json"

Redeeming is irreversible and spends a finite credit, so it is never implicit. action="consume" only issues the POST when confirm=true; without it you get the same preview dryRun gives you. Each redemption carries a fresh redeem_request_id so a retry cannot spend two credits, an unavailable credit id is refused rather than posted, and once the credit is spent a failure of the follow-up usage read is reported as usageError alongside redeemed: true — never as an unredeemed credit.

Fixed

Disabled rate-limit windows no longer render as a full quota (#194)

OpenAI encodes a switched-off window as window-minutes: 0 / limit_window_seconds: 0 with used-percent: 0 rather than omitting it. Both quota paths kept that window because used-percent was numeric, producing a phantom segment next to the real weekly window:

before:  7d 77% · quota 100%
after:   7d 77%

A window is now rejected on its explicit zero length; a window whose length header is absent is merely unknown and still shows under the generic quota label. Two sibling defects of the same cause are fixed alongside the reported one: the /wham/usage path rounded a zero-second window up to one minute, surfacing a disabled window as a real 1m limit, and codex-limits printed both windows unconditionally. Caches already poisoned by an older build heal on read, so you do not need to delete oc-codex-multi-auth-tui-quota.json.

Reported by @aic0d3r, correlated with OpenAI temporarily disabling the 5-hour Codex limit for some paid plans.

Notes

The codex-reset listing path is verified against the live backend. The redeem (POST) path is covered by tests against a mocked fetch but has not yet been confirmed against a live redemption — confirming it costs a real, non-refundable credit. Treat the first real redemption as the contract test.

Full changelog: v6.7.1...v6.8.0