-
Notifications
You must be signed in to change notification settings - Fork 564
[feature] OAuth passthrough for OpenAI provider (Codex CLI subscription support) #2775
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
Draft
thiscantbeserious
wants to merge
38
commits into
maximhq:main
Choose a base branch
from
thiscantbeserious:feature/openai-oauth-passthrough
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
5999a8b
feat: add ChatGPT OAuth passthrough toggle for OpenAI provider
thiscantbeserious 3baddea
fix: refactor ChatGPT OAuth — centralize body transform, fix stream f…
thiscantbeserious fdca85d
refactor: add route map and generic path resolver for ChatGPT OAuth
thiscantbeserious 86f563e
test: comprehensive 100% coverage tests for ChatGPT OAuth module
thiscantbeserious 5fae39c
security: sanitize chatgpt_account_id against HTTP header injection
thiscantbeserious f3397fb
docs: add ChatGPT OAuth passthrough setup guide for Codex CLI
thiscantbeserious 4216635
feat: auto-extract OAuth token — remove allow_direct_keys requirement
thiscantbeserious 56b7f9d
fix(ws): default WebSocket /v1/responses to OpenAI provider
thiscantbeserious d45462d
fix(ws): also default OpenAI provider in convertEventToRequest
thiscantbeserious 27ae868
fix(ws): apply ChatGPT OAuth transformations to upstream WebSocket too
thiscantbeserious 5c6aa0a
fix: apply ChatGPT OAuth to ALL OpenAI provider routes
thiscantbeserious 31a41ff
fix(chatgpt-oauth): append required client_version query param to /mo…
thiscantbeserious fe93133
debug: include upstream HTTP response in WS dial errors
thiscantbeserious 12ffa61
fix(openai): scope /v1/models requests to OpenAI provider only
thiscantbeserious dd432c7
fix(openai): preserve Azure SDK detection in /v1/models converter
thiscantbeserious 84017e0
review: address CodeRabbit findings + 100% coverage
thiscantbeserious e66af1c
review: address 2nd-round CodeRabbit + Greptile findings
thiscantbeserious 510d00d
test: 100% coverage on OpenAIListModelsResponse.UnmarshalJSON
thiscantbeserious e5f63ea
Merge branch 'main' into feature/openai-oauth-passthrough
thiscantbeserious 39fe955
fix(openai): forward Codex identity headers over chatgpt_oauth WebSocket
thiscantbeserious ff64e21
fix(openai): move Codex identity defaults to merge helper, harden WS …
thiscantbeserious 2f02179
fix(openai): gate Codex identity defaults injection to chatgpt_oauth …
thiscantbeserious 7ecad8f
fix(wsresponses): finalize logs for native WS upstream when parse fai…
thiscantbeserious 19639c5
fix(wsresponses): add idle timeout to upstream WS reads in tryNativeW…
thiscantbeserious 44a6aad
chore(wsresponses): log raw upstream WS frames for OAuth terminal-eve…
thiscantbeserious b58517e
fix(logging): flush WS responses trace so log row is written to DB
thiscantbeserious a9acea3
Merge remote-tracking branch 'origin/main' into feature/openai-oauth-…
thiscantbeserious 7ad281b
chore: remove /openai/v1/responses WS bare-model fix (extracted to #3…
thiscantbeserious d0a743e
chore: remove /openai/v1/models fanout fix (extracted to #3007)
thiscantbeserious a5b7a4e
chore: remove WS pool dial error verbosity (extracted to #3012)
thiscantbeserious fbf395f
chore: remove WS upstream idle timeout (extracted to #3013)
thiscantbeserious be767a6
chore: remove x-bf-eh-* WS forwarding (extracted to #3014)
thiscantbeserious 870575d
chore: remove WS log finalization on parse failure and close (extract…
thiscantbeserious 5c4f9fc
chore: remove WS tracer flush (extracted to #3017)
thiscantbeserious 9a1771d
chore: remove WS logging switch case (extracted to #3019)
thiscantbeserious c85ea5d
chore: remove accumulator WS responses case (extracted to #3020)
thiscantbeserious d39ea5a
chore: pool session liveness probe extracted to #3021 (no feature-bra…
thiscantbeserious 1e22773
chore: TTL sweeper orphan flush extracted to #3022 (no feature-branch…
thiscantbeserious 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
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.
Uh oh!
There was an error while loading. Please reload this page.