Skip to content

protocol: separate app and exec RPC ownership - #29714

Merged
anp-oai merged 2 commits into
mainfrom
codex/split-json-rpc-protocols
Jun 23, 2026
Merged

protocol: separate app and exec RPC ownership#29714
anp-oai merged 2 commits into
mainfrom
codex/split-json-rpc-protocols

Conversation

@anp-oai

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

Copy link
Copy Markdown
Contributor

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, 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.
@anp-oai
anp-oai force-pushed the codex/split-json-rpc-protocols branch 2 times, most recently from 7898afc to 71b9384 Compare June 23, 2026 21:08
@anp-oai anp-oai changed the title protocol: separate app-server and exec-server ownership protocol: separate app and exec RPC ownership Jun 23, 2026
Comment thread codex-rs/exec-server/src/environment.rs Outdated
Comment thread codex-rs/exec-server/src/environment.rs Outdated
@anp-oai
anp-oai force-pushed the codex/split-json-rpc-protocols branch from 71b9384 to 732f3eb Compare June 23, 2026 21:50
@anp-oai
anp-oai marked this pull request as ready for review June 23, 2026 21:55
@anp-oai

anp-oai commented Jun 23, 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. 🚀

Reviewed commit: 732f3eb770

ℹ️ 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-json-rpc-protocols branch from 732f3eb to d8f3fd2 Compare June 23, 2026 22:02
@anp-oai
anp-oai requested a review from a team as a code owner June 23, 2026 22:02
@anp-oai
anp-oai enabled auto-merge (squash) June 23, 2026 22:16
@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 merged commit 829f5b6 into main Jun 23, 2026
45 checks passed
@anp-oai
anp-oai deleted the codex/split-json-rpc-protocols branch June 23, 2026 22:37
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 23, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

2 participants