Handle Codex Pro Lite plan responses and OAuth fallback edge cases#710
Open
ratulsarna wants to merge 3 commits intomainfrom
Open
Handle Codex Pro Lite plan responses and OAuth fallback edge cases#710ratulsarna wants to merge 3 commits intomainfrom
ratulsarna wants to merge 3 commits intomainfrom
Conversation
Collaborator
Author
|
@yossy6028 and @sdewell : it would be great if you could give this branch a shot locally and see if your $100 plan works. |
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.
Fixes #691 and #709.
Codex started returning new
plan_typevalues likeprolite, which left a few different paths in CodexBar out of sync. This change teaches the Codex-specific surfaces to render those plan values consistently asPro Litewithout pushing provider-specific behavior into the shared formatter.It also makes the OAuth usage decoder more tolerant of optional payload drift, but keeps
automode honest about when that partial decode is no longer good enough. If OAuth loses the 5h/session lane because a window payload is malformed, we now fall back to the CLI. If a valid session lane still survives after reconciliation, including the reversed weekly/session shape, we keep the OAuth result instead of discarding usable data.The test coverage here is intentionally broad because the blast radius crosses a few boundaries: OAuth decoding, dashboard parsing, menu and CLI rendering, user-facing error sanitization, and the CLI fallback path when Codex RPC chokes on newer plan variants.