The Codex Changelog
All Episodes
Codex 0.167.2: Default Incremental Tools on Vertex AI

Codex 0.167.2: Default Incremental Tools on Vertex AI

0:00|0:00

Codex CLI 0.167.2 enables incremental tool updates by default on Google Cloud Vertex AI, cutting token consumption and payload sizes across multi-turn sessions. We also break down the opt-out configuration flag, OpenTelemetry headers helper, and fixes for Windows file locking.


Chapter 1

Incremental Tools Default On for Vertex AI

James Turner

If you route Codex through Google Cloud Vertex AI, your token bill may have just gotten a little smaller, and you didn't touch a thing. Thanks to Jellypod AI for sponsoring this episode. Now, the change itself. Codex CLI 0.167.2 shipped on November 11, 2026. That's npm package @openai/codex at 0.167.2, tag rust-v0.167.2, following PR 60617 and PR 60848.

James Turner

Here's what changed. In earlier releases, a multi turn session routed to Vertex AI resent the complete catalog of tool and function declarations on every single request. Every turn, the same schemas, again. Now, in 0.167.2, Codex sends tool updates incrementally by default on Vertex AI. The client transmits only the changes to the tool catalog, not the unchanged definitions.

James Turner

If you heard the last episode on 0.167.1, this will sound familiar. That one covered the incremental catalog mechanism on Amazon Bedrock, where the flag was called incremental_tools_legacy and it was opt in. Same mechanism, now on Google Cloud. But the rollout strategy flips. On Bedrock you had to turn it on. On Vertex AI it's already on.

James Turner

Why does that matter? Think about a long running agent task, or a big suite of MCP servers. Each of those tools carries a schema, and resending all of them every turn adds token overhead, burns through quota, and adds latency to each API call. Cutting that out shrinks the request payload and token consumption, with no configuration from you. That's the practical win: nothing to do, and the requests just get lighter.

Chapter 2

Opt Out, Caveats, and Small Fixes

James Turner

So how do you use it? You don't, really. It's on. But you should know the escape hatch. If something between you and Vertex AI chokes on the differential payloads, you can restore full transfers in config.toml. Under the features table, set incremental_tools_legacy_gcp equals false. That's the whole fix.

James Turner

And watch the naming, because it's easy to trip on. Bedrock used incremental_tools_legacy as an opt in toggle. Vertex uses incremental_tools_legacy_gcp, and here it works as an opt out. Same family of names, opposite default. Setting the wrong one will do nothing useful.

James Turner

Caveats. If you go through a legacy third party proxy, a strict API gateway, or some intermediate Vertex endpoint that doesn't expect differential tool definitions, tool call dispatch might fail, or unrecognized declarations might get dropped. If tools suddenly vanish or calls stop dispatching after upgrading, check that first. Flip the flag to false, and you're back to full payloads.

James Turner

A few smaller things from the main branch this past week. First, PR 61028, merged November 12, adds otel.headers_helper. This answers issue 48045, where exporting to an authenticated OTLP HTTP collector meant putting a bearer token in plaintext in your config file. Now you point the helper at a command, run from CODEX_HOME, that returns a JSON object of header strings. It refreshes every 29 minutes by default, tunable with otel.headers_helper_refresh_interval_ms. So the secret can live in your OS keychain.

James Turner

Details worth knowing. Helper headers override matching static headers. If a refresh fails, affected exports block until the helper recovers. HTTP redirects are disabled when helper headers are used. And repository local config can't set the helper, and gRPC exporters and admin managed exporters don't use it.

James Turner

Two more. PR 60872 switches Windows atomic file writes to std::fs::rename, so overlapping readers don't cause locking collisions, and temp file cleanup still happens if publishing fails. And PR 60964 trims whitespace around OPENAI_API_KEY and rejects anything outside printable, non space ASCII, so malformed authorization headers get caught early. Note that one landed in the issue labeler workflow. Small, but handy.

James Turner

So: on Vertex AI, update to 0.167.2, enjoy lighter requests, and remember incremental_tools_legacy_gcp equals false if a proxy complains. That's the changelog for today.