-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Keep shared Codex auth read-only during usage refresh #2970
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
08ff28a
Harden Codex OAuth source and refresh lifecycle
Yuxin-Qiao e79d789
Harden managed Codex account writes
Yuxin-Qiao ca7486d
Recover Codex account identity from JWT claims
Yuxin-Qiao 032f224
Cover direct Codex JWT account claims
Yuxin-Qiao 4db8972
Keep shared Codex auth read-only during refresh
Yuxin-Qiao 921ac42
Preserve explicit OAuth recovery
Yuxin-Qiao 666a72b
Gate native OAuth CLI recovery
Yuxin-Qiao b56b052
Merge remote-tracking branch 'origin/main' into codex/codex-oauth-har…
Yuxin-Qiao 5cf3102
Keep Codex OAuth refresh in memory
Yuxin-Qiao b0c62e8
Keep shared OAuth refresh owner-safe
Yuxin-Qiao c7ab5e5
Align OAuth guide with read-only auth
Yuxin-Qiao 47d03be
Skip blank JWT organization IDs
Yuxin-Qiao 15acee5
Treat whitespace account IDs as absent
Yuxin-Qiao 273c9a4
Align OAuth guide with recovery flow
Yuxin-Qiao 87b2b36
Remove stale OAuth refresh examples
Yuxin-Qiao d58b1be
Preserve OAuth snapshot across credit enrichment
Yuxin-Qiao 7204480
Clarify private workspace metadata boundary
Yuxin-Qiao 91ed021
Fail closed CLI recovery for managed workspace scope
Yuxin-Qiao a29973f
fix: keep Codex auth read-only during refresh
steipete 04766fd
Merge remote-tracking branch 'origin/main' into fix/2944-codex-auth-r…
steipete File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When a managed account selects workspace B while its now-read-only
auth.jsonremains scoped to workspace A, choosing the explicit CLI source still runsCodexCLIUsageStrategy, which cannot carry the selected workspace header, but this fetcher forces workspace B onto the supplemental reset-credit request. The resulting snapshot can therefore combine workspace A's CLI usage with workspace B's reset credits; either suppress the unscoped CLI route for managed workspaces or only apply this override when the winning usage result was fetched with the same workspace scope.Useful? React with 👍 / 👎.