Skip to content

fix: fully revert agent identity runtime wiring#18757

Merged
efrazer-oai merged 9 commits intomainfrom
dev/efrazer/agent-identity-crate
Apr 21, 2026
Merged

fix: fully revert agent identity runtime wiring#18757
efrazer-oai merged 9 commits intomainfrom
dev/efrazer/agent-identity-crate

Conversation

@efrazer-oai
Copy link
Copy Markdown
Contributor

@efrazer-oai efrazer-oai commented Apr 20, 2026

Summary

This PR fully reverts the previously merged Agent Identity runtime integration from the old stack:
https://github.com/openai/codex/pull/17387/changes

It removes the Codex-side task lifecycle wiring, rollout/session persistence, feature flag plumbing, lazy auth.json mutation, background task auth paths, and request callsite changes introduced by that stack.

This leaves the repo in a clean pre-AgentIdentity integration state so the follow-up PRs can reintroduce the pieces in smaller reviewable layers.

Stack

  1. This PR: full revert
  2. refactor: add agent identity crate #18871: move Agent Identity business logic into a crate
  3. feat: add explicit AgentIdentity auth mode #18785: add explicit AgentIdentity auth mode and startup task allocation
  4. refactor: route Codex auth through AuthProvider #18811: migrate auth callsites through AuthProvider

Testing

Tests: targeted Rust checks, cargo-shear, Bazel lock check, and CI.

@adrian-openai adrian-openai self-requested a review April 20, 2026 23:04
@efrazer-oai efrazer-oai force-pushed the dev/efrazer/agent-identity-crate branch 2 times, most recently from 7f460c5 to 117d4ac Compare April 21, 2026 03:29
@efrazer-oai efrazer-oai changed the title refactor: extract agent identity helpers Extract agent identity helpers and remove task lifecycle plumbing Apr 21, 2026
@efrazer-oai efrazer-oai force-pushed the dev/efrazer/agent-identity-crate branch from 117d4ac to b647fd7 Compare April 21, 2026 04:11
@efrazer-oai efrazer-oai changed the title Extract agent identity helpers and remove task lifecycle plumbing Extract agent identity helpers and remove live auth integration Apr 21, 2026
@efrazer-oai efrazer-oai force-pushed the dev/efrazer/agent-identity-crate branch from b647fd7 to 5acde03 Compare April 21, 2026 04:50
@efrazer-oai efrazer-oai marked this pull request as ready for review April 21, 2026 04:52
@efrazer-oai efrazer-oai requested a review from a team as a code owner April 21, 2026 04:52
@efrazer-oai efrazer-oai changed the title Extract agent identity helpers and remove live auth integration Revert broad agent identity changes. Apr 21, 2026
@efrazer-oai efrazer-oai force-pushed the dev/efrazer/agent-identity-crate branch from 5acde03 to 342ad35 Compare April 21, 2026 05:53
@efrazer-oai efrazer-oai marked this pull request as draft April 21, 2026 07:13
@efrazer-oai efrazer-oai marked this pull request as ready for review April 21, 2026 15:32
Comment thread codex-rs/agent-identity/src/lib.rs Outdated
pub fn build_abom(session_source: SessionSource) -> AgentBillOfMaterials {
AgentBillOfMaterials {
agent_version: env!("CARGO_PKG_VERSION").to_string(),
agent_harness_id: match &session_source {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why are we transforming this?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we already have plenty issues mapping values we send in telemetry

Comment thread codex-rs/agent-identity/src/lib.rs Outdated
))
}

pub fn normalize_chatgpt_base_url(chatgpt_base_url: &str) -> String {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it is suspicious that we need to do so much url cleanup

@efrazer-oai efrazer-oai force-pushed the dev/efrazer/agent-identity-crate branch from 342ad35 to 517af31 Compare April 21, 2026 19:16
@efrazer-oai efrazer-oai changed the title Revert broad agent identity changes. fix: fully revert agent identity runtime wiring Apr 21, 2026
@efrazer-oai efrazer-oai force-pushed the dev/efrazer/agent-identity-crate branch 2 times, most recently from 3a0d4c3 to 81a4782 Compare April 21, 2026 20:57
@efrazer-oai efrazer-oai force-pushed the dev/efrazer/agent-identity-crate branch from 81a4782 to c787e22 Compare April 21, 2026 21:03
@efrazer-oai efrazer-oai merged commit be75785 into main Apr 21, 2026
28 checks passed
@efrazer-oai efrazer-oai deleted the dev/efrazer/agent-identity-crate branch April 21, 2026 21:30
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 21, 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.

3 participants