The Codex Changelog
All Episodes
Incremental Tools on Bedrock in Codex CLI 0.167.1

Incremental Tools on Bedrock in Codex CLI 0.167.1

0:00|0:00

Codex CLI 0.167.1 introduces an opt-in incremental_tools_legacy feature flag to reduce token overhead and latency for Amazon Bedrock routes by updating tool catalogs without resending unchanged declarations. This episode also covers recent catalog fixes for GPT-6.1 Sol, an app-server temp directory leak, and smaller terminal UI updates.


Chapter 1

Incremental tools on Bedrock

James Turner

Somebody's usage meter left about a hundred and eighty six thousand temp directories on their disk, and that's actually where I want to end today. But first, the main thing in Codex CLI 0.167.1, because it connects back to our Bedrock setup episode on 0.164.0. And thanks to Jellypod AI for sponsoring this episode.

James Turner

Version 0.167.1 shipped on November 10, 2026. Tag rust-v0.167.1, commit 0a94398. It's a targeted patch on top of 0.167.0. The headline is a new, disabled by default flag: features dot incremental_tools_legacy. It's tracked in upstream pull requests 59832 and 60040.

James Turner

Here's the mechanism. In a long, tool heavy session, every model request normally carries the full list of tool declarations. That's the same definitions, turn after turn. It costs context, latency, and tokens. Incremental tool catalogs let Codex send updates to tool state without re-sending the tools that haven't changed. Responses Lite already uses an existing flag called incremental_tools. The new legacy flag is for the other routes, and here's the catch: on non Responses Lite routes, it's restricted to the Amazon Bedrock and Amazon Bedrock Runtime provider IDs. Regular OpenAI Responses does not get this opt in.

James Turner

So if you followed our 0.164.0 Bedrock episode and you're routing through Bedrock, this is the follow up. Two behaviors changed with it. One, incremental tool catalogs now leave hosted web search declarations out of the conversation history, while web search stays in the top level request tools. Two, remote context compaction now follows that same route aware handling, so web search configuration is preserved without compaction errors or duplicate declarations.

James Turner

To try it, pass the flag on the command line. codex, dash dash enable, incremental_tools_legacy. Or for a one shot run, codex exec, dash dash enable, incremental_tools_legacy, then your prompt in quotes. To make it stick, open your config dot toml in the dot codex folder in your home directory, find the features table, and set incremental_tools_legacy equal to true.

James Turner

Caveats. It's off by default, and it's under development, so treat it as an experiment. Provider eligibility is strictly enforced. Point it at the default OpenAI endpoint or another provider, and nothing activates. No error needed, it simply does nothing. And because web search declarations are dropped from history, if you're debugging tool state in saved transcripts, look at the top level request parameters, not the intermediate turns, or you'll think web search vanished.

Chapter 2

Smaller fixes and traps

James Turner

Now a few smaller things. First, a scare from November 10. GPT-6.1 Sol vanished from the model picker for some users, in issue 60676. The refreshed catalog excluded it, while the bundled one still had it, and some people hit an error saying the model requires a newer version of Codex. A maintainer said on November 11 that they believe it's fixed on the backend. To check your own state, run codex debug models, then codex debug models dash dash bundled, and compare the two.

James Turner

Second, the leak. Issue 60615, still open as of the report. When codex app-server gets a SIGTERM about a second after startup, during its plugin marketplace check, the temp git directory under dot codex slash dot tmp never gets cleaned up. A desktop usage meter probing twice a minute left roughly 186,000 of them over eleven weeks, enough to exhaust updatedb's open file limit. If you poll app-server from scripts, either let it exit cleanly, or start it with dash dash disable plugins, which created no directories in the reporter's test.

James Turner

Third, a known bug: thread slash timeline slash list in 0.167.1 rejects archived threads with error minus 32600, thread is archived, even though items list and turns list work. Unarchive the thread and the timeline reads again. And last, a nice one in the terminal UI: while an approval modal is open, you can expand patch details inline with plus Show details. That's it for today.