Codex CLI 0.172.0 moves Code Mode to gRPC and deprecates a config setting
OpenAI's Codex CLI 0.172.0 switches all Code Mode host connections to gRPC and marks the code_mode_host_grpc setting as deprecated.
Codex CLI 0.172.0 removes the older connection path for Code Mode. Every connection between the CLI and its Code Mode host now runs over gRPC, and the setting that used to choose between the two is deprecated. The changelog groups the change under Chores and points to pull request #62476. The release notes state the change in one sentence: Code Mode now uses gRPC for all host connections, and the code_mode_host_grpc setting is deprecated.
The pull request description fills in what that sentence leaves out. It says the change removes the legacy framed stdio protocol along with its client and server. Local Codex now launches the standalone host with --listen grpc+stdio://, which the description says is also the host's default. The stdio and stdio:// aliases now select gRPC over stdio rather than the old protocol. A user who set features.code_mode_host_grpc in their configuration no longer needs to set it, because the description says the setting is deprecated and ignored. The testing notes check that both values of the setting are ignored.
The same pull request makes two smaller changes. It carries execution trace context into gRPC tool callbacks and notifications. It also rejects oversized execute requests before they are sent. The description gives the reason: without that check, an encoding failure on a too-large request would appear as a connection reset. The testing notes list gRPC callback cancellation, trace context across overlapping yielded cells, and isolation of tool preload failures between sessions.
The pull request was authored by copyberry[bot] and merged on Nov 19, 2026, five days before the release was published on November 24, 2026. The description carries a GitOrigin-RevId line, which points to a sync from an internal repository into the public codex repository. The page shows a Codex review marked as running, started at 09:37 on Nov 19, and the merge is timestamped 09:38.
What changed
Code Mode now uses gRPC for all host connections, the legacy framed stdio protocol is removed, and the code_mode_host_grpc setting is deprecated and ignored.
Type: Breaking change · Applies to: Codex CLI 0.172.0, code_mode_host_grpc, features.code_mode_host_grpc
Why it matters
Anyone who set code_mode_host_grpc in configuration files will need to review it, since the setting is now deprecated.
What you can do
Check Codex configuration files for the code_mode_host_grpc setting and plan to remove it.
Original source
Where we saw it
Codex CLI releases
AI wrote this summary from the sources listed, and nobody reviewed it individually before publication. Check the original source before you rely on it. How it works