Skip to content

Fix agent identity runtime auth flow#19635

Merged
shijie-oai merged 2 commits intodev/efrazer/agent-identity-env-jwtfrom
shijie/agent-identity-runtime-fixes
Apr 26, 2026
Merged

Fix agent identity runtime auth flow#19635
shijie-oai merged 2 commits intodev/efrazer/agent-identity-env-jwtfrom
shijie/agent-identity-runtime-fixes

Conversation

@shijie-oai
Copy link
Copy Markdown
Collaborator

@shijie-oai shijie-oai commented Apr 26, 2026

Summary

  • decode unsigned agent identity JWT payloads from the web UI format
  • register agent identity tasks through the production AuthAPI accounts base URL
  • skip cloud requirement fetches for agent identity auth
  • improve task registration error details

Validation

  • cargo fmt --check
  • cargo test -p codex-login agent_identity --lib
  • cargo build --bin codex
  • local smoke test with OPENAI_API_KEY and CODEX_API_KEY unset, CODEX_AGENT_IDENTITY="$CDOEX_TEST_AGENT_IDENTITY", and target/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/responses and returned agent 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.

@shijie-oai shijie-oai force-pushed the shijie/agent-identity-runtime-fixes branch 2 times, most recently from 7d182bb to 489b1b3 Compare April 26, 2026 17:04
@shijie-oai shijie-oai force-pushed the shijie/agent-identity-runtime-fixes branch from 489b1b3 to 656649c Compare April 26, 2026 18:25
@shijie-oai shijie-oai marked this pull request as ready for review April 26, 2026 19:24
@shijie-oai shijie-oai merged commit fc91962 into dev/efrazer/agent-identity-env-jwt Apr 26, 2026
24 checks passed
@shijie-oai shijie-oai deleted the shijie/agent-identity-runtime-fixes branch April 26, 2026 19:25
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 26, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant