Fix agent identity runtime auth flow#19635
Merged
shijie-oai merged 2 commits intodev/efrazer/agent-identity-env-jwtfrom Apr 26, 2026
Merged
Fix agent identity runtime auth flow#19635shijie-oai merged 2 commits intodev/efrazer/agent-identity-env-jwtfrom
shijie-oai merged 2 commits intodev/efrazer/agent-identity-env-jwtfrom
Conversation
7d182bb to
489b1b3
Compare
489b1b3 to
656649c
Compare
fc91962
into
dev/efrazer/agent-identity-env-jwt
24 checks passed
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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
Validation
cargo fmt --checkcargo test -p codex-login agent_identity --libcargo build --bin codexOPENAI_API_KEYandCODEX_API_KEYunset,CODEX_AGENT_IDENTITY="$CDOEX_TEST_AGENT_IDENTITY", andtarget/debug/codex exec --skip-git-repo-check --ephemeral "Say exactly: agent identity smoke test ok"The latest smoke on the squashed commit connected to
wss://chatgpt.com/backend-api/codex/responsesand returnedagent identity smoke test ok, confirming the agent identity inference path works end to end. Startup side requests for plugins/models/analytics still show 401s under agent identity, but they did not block the inference path.