fix(auth-files): prevent stale Codex quota status - #239
Merged
Merged
Conversation
Scope Codex quota state by auth file identity and auth index so shared filenames cannot reuse stale or mismatched quota results. Suppress older Codex inspection and usage-header quota signals when fresher quota or header data exists, including conflicting window usage below 100%. Add regression coverage for stale status suppression, same-file auth index isolation, inline quota rendering, and reached-window percentage handling.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fix stale Codex quota status handling in the auth files view.
This prevents older inspection or usage-header signals from continuing to show an account as quota-limited after fresher quota data says it is available.
Scope
Changes
User Impact
Users should no longer see fresh, available Codex quota incorrectly displayed as 5h, weekly, monthly, or observed quota-limited because of stale inspection or header data.
Compatibility / Runtime Notes
Data / Security Notes
N/A. No SQLite, key storage, auth secret, log, raw usage, or plugin data changes.
Risk / Rollback
Risk level: Low
Rollback notes:
Verification
Commands / evidence:
Screenshots / Recordings
N/A. Verified with automated frontend checks; no manual UI capture was taken.
Docs
Related
N/A