Fix manual Codex quota refresh persistence - #237
Merged
Merged
Conversation
Persist successful manual Codex quota refresh results and reuse them after full page reloads. Share quota display resolution between quota management and auth files so stale header snapshots no longer override newer manual data. Clear cached quota state on auth identity changes, logout, and login storage cleanup to avoid cross-account leakage.
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
Persist manual Codex quota refresh results so they survive a full page reload.
Resolve Codex quota display state by freshness, preventing older usage-header snapshots from overriding newer manual refresh data.
Scope
Changes
User Impact
Codex quota cards continue to show the latest manual refresh result after a full page reload instead of falling back to stale header-derived quota data.
Compatibility / Runtime Notes
Data / Security Notes
Persists only successful manual Codex quota response state in existing obfuscated local storage and clears it on auth identity changes/logout.
Risk / Rollback
Risk level: Low
Rollback notes:
Verification
Commands / evidence:
Screenshots / Recordings
N/A. No visual layout change.
Docs
Related
N/A