fix: restore OpenAI Codex subscription flow#49
Open
cgasgarth wants to merge 5 commits intoKuberwastaken:mainfrom
Open
fix: restore OpenAI Codex subscription flow#49cgasgarth wants to merge 5 commits intoKuberwastaken:mainfrom
cgasgarth wants to merge 5 commits intoKuberwastaken:mainfrom
Conversation
Route the ChatGPT Plus/Pro path through the Codex client so /connect works in the TUI again. Refresh saved Codex tokens, send the account header, and synthesize streaming events for the non-streaming backend.
Limit the runtime changes to the openai-codex path so provider switching, OAuth auth, and SSE parsing only affect ChatGPT Plus/Pro requests. Match the official Codex request shape by removing unsupported token-limit fields while keeping the required instructions, store=false, and stream=true flags.
Format the Rust workspace so formatter checks pass, stop collapsed thinking blocks from leaking hidden content so the TUI test suite passes again, and split the local hook flow into fast pre-commit checks with full tests on pre-push.
chore: fix check failures and add pre-commit hooks
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
openai-codexpath end-to-end, including OAuth token refresh,ChatGPT-Account-Id, model selection, and runtime provider switching after/connectinstructions,store: false,stream: true, and SSE response parsingVerification
cargo checkcargo buildcargo test codexcargo test test_anthropic_to_openai_request_basiccargo test stream_accumulator_textNotes
openai-codex/openai-codex/*selection in the query path.crates/tui/tests/render_snapshots.rs(thinking_block_collapsed), so the verification above is intentionally focused on the Codex path.