Register agent identities behind use_agent_identity#17386
Register agent identities behind use_agent_identity#17386adrian-openai merged 14 commits intomainfrom
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: cd2ed352e6
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
cd2ed35 to
7587c88
Compare
d58ac15 to
9bbc1e8
Compare
6687bb9 to
fb82a31
Compare
6a1a18b to
636678c
Compare
fb82a31 to
bbeb95e
Compare
636678c to
87397ee
Compare
bbeb95e to
5735241
Compare
5735241 to
458a631
Compare
efrazer-oai
left a comment
There was a problem hiding this comment.
I've been looking through the stack and I'm increasingly wondering about the following:
I wonder if this would be better organized by moving this core logic into
enum CodexAuth {
ApiKey(ApiKeyAuth),
Chatgpt(ChatgptAuth),
ChatgptAuthTokens(ChatgptAuthTokens),
}
It seems like it is a kinda 'different' method of auth and is intended to fully migrate away from Chatgpt auth as it exists right now when enabled (insomuch as it replaces every authorization header).
It's a bit weird to reason about a 'ChatGPT' user also being an agent identity (or using agent identity), then having these kinda 'subtle' overrides and all of this being managed in a separate auth struct.
We'll also need to add this variant later when we allow starting from a preregistered agent identity, so might be good to do now.
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5589186a8e
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
shijie-oai
left a comment
There was a problem hiding this comment.
LGTM - I am building this locally to make sure it does function as expected.
|
Built and existing flow works as expected. |
616d25c to
2fb2fc2
Compare
# Conflicts: # codex-rs/login/src/auth/auth_tests.rs # codex-rs/login/src/auth/manager.rs
5c0a4ec to
9b2c16f
Compare
Summary
Stack PR 2 of 4 for feature-gated agent identity support.
This PR adds agent identity registration behind
features.use_agent_identity. It keeps the app-server protocol unchanged and starts registration after ChatGPT auth exists rather than requiring a client restart.Stack
features.use_agent_identityAgentAssertiondownstream when enabledValidation
Covered as part of the local stack validation pass:
just fmtcargo test -p codex-core --lib agent_identitycargo test -p codex-core --lib agent_assertioncargo test -p codex-core --lib websocket_agent_taskcargo test -p codex-api api_bridgecargo build -p codex-cli --bin codexNotes
The full local app-server E2E path is still being debugged after PR creation. The current branch stack is directionally ready for review while that follow-up continues.