Skip to content

auth: move domain mode below app wire types - #29721

Merged
anp-oai merged 1 commit into
mainfrom
codex/split-auth-domain-types
Jun 24, 2026
Merged

auth: move domain mode below app wire types#29721
anp-oai merged 1 commit into
mainfrom
codex/split-auth-domain-types

Conversation

@anp-oai

@anp-oai anp-oai commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Why

Authentication mode is a domain concept used by login, model selection, telemetry, and transports. Keeping the canonical type in app-server protocol forces those lower-level crates to depend on an unrelated wire API.

What changed

  • Added canonical codex_protocol::auth::AuthMode domain values.
  • Kept the app-server wire DTO unchanged and added an explicit app-side conversion.
  • Removed production app-server-protocol dependencies from login, model-provider-info, models-manager, and otel call paths.

Stack

This is PR 2 of 6, stacked on PR #29714. Review only the delta from codex/split-json-rpc-protocols. Next: PR #29722.

Validation

  • Auth and login coverage passed in the focused protocol/domain test run.
  • App-server account and auth conversion coverage passed.

@anp-oai
anp-oai force-pushed the codex/split-auth-domain-types branch from 22ed4a0 to f00f809 Compare June 23, 2026 21:50
@anp-oai
anp-oai force-pushed the codex/split-json-rpc-protocols branch from 71b9384 to 732f3eb Compare June 23, 2026 21:50
Comment thread codex-rs/app-server/src/auth_mode.rs
Comment thread codex-rs/app-server/src/message_processor.rs
Comment thread codex-rs/core-plugins/src/remote.rs Outdated
@anp-oai
anp-oai force-pushed the codex/split-json-rpc-protocols branch from 732f3eb to d8f3fd2 Compare June 23, 2026 22:02
@anp-oai
anp-oai force-pushed the codex/split-auth-domain-types branch from f00f809 to 64120ff Compare June 23, 2026 22:03
@anp-oai
anp-oai force-pushed the codex/split-json-rpc-protocols branch from d8f3fd2 to ac409e9 Compare June 23, 2026 22:20
@anp-oai
anp-oai force-pushed the codex/split-auth-domain-types branch from 64120ff to 76d09e4 Compare June 23, 2026 22:20
anp-oai added a commit that referenced this pull request Jun 23, 2026
## Why

The app-server and exec-server expose separate JSON-RPC APIs, but
exec-server currently sources its serialized protocol and envelope types
through app-server-oriented code. Giving each API an explicit owner
makes the crate boundary legible without introducing shared generic
envelopes.

## What changed

- Added `codex-exec-server-protocol` to own exec DTOs, process IDs, and
JSON-RPC envelopes.
- Updated exec-server clients, transports, handlers, and tests to use
the new crate.
- Exposed app-server's existing JSON-RPC types through a public `rpc`
module while retaining root re-exports.
- Preserved existing wire shapes, including exec `PathUri` behavior.

## Stack

This is PR 1 of 6. Next: [PR
#29721](#29721), which moves auth
mode below the app wire boundary.

## Validation

- Exec-server protocol and server coverage passed in the focused
protocol test runs.
- App-server protocol schema fixtures passed.
Base automatically changed from codex/split-json-rpc-protocols to main June 23, 2026 22:37
@anp-oai
anp-oai force-pushed the codex/split-auth-domain-types branch from 76d09e4 to 8b382e2 Compare June 23, 2026 22:53
Comment thread codex-rs/app-server/src/auth_mode.rs Outdated
@anp-oai
anp-oai force-pushed the codex/split-auth-domain-types branch from 8b382e2 to d7542b0 Compare June 23, 2026 23:35
@anp-oai
anp-oai marked this pull request as ready for review June 24, 2026 00:10
@anp-oai
anp-oai requested a review from a team as a code owner June 24, 2026 00:10
@anp-oai

anp-oai commented Jun 24, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor

Codex Review: Didn't find any major issues. Keep it up!

Reviewed commit: d7542b00ad

ℹ️ 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".

@anp-oai
anp-oai force-pushed the codex/split-auth-domain-types branch 2 times, most recently from d9cced7 to 80adf1c Compare June 24, 2026 00:46
@anp-oai
anp-oai force-pushed the codex/split-auth-domain-types branch from 80adf1c to 0690561 Compare June 24, 2026 02:53
@anp-oai
anp-oai enabled auto-merge (squash) June 24, 2026 02:53
@anp-oai
anp-oai merged commit 3137207 into main Jun 24, 2026
46 of 47 checks passed
@anp-oai
anp-oai deleted the codex/split-auth-domain-types branch June 24, 2026 03:10
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 24, 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.

2 participants