The Codex Changelog
All Episodes
Codex CLI 0.172.0: Lazy MCP Startup and TUI Upgrades

Codex CLI 0.172.0: Lazy MCP Startup and TUI Upgrades

0:00|0:00

We break down how Codex CLI 0.172.0 enables lazy startup by default for optional stdio MCP servers with cached tool lists to save memory and speed up local sessions. Plus, we cover new quality-of-life improvements including TUI Tab completion, thread link navigation, and codex exec resume fixes.


Chapter 1

Lazy Startup for Stdio MCP Servers

James Turner

Codex CLI zero point one seven two point zero dropped on November twenty fourth, twenty twenty six, and if you run a lot of local MCP servers, this update is going to save you a ton of memory. Before we get into the details, thanks to Jellypod AI for sponsoring this episode. Let's look at what actually changed in zero point one seven two point zero, because there is one default behavior shift in particular that changes how local sessions boot up.

James Turner

The main update is pull request sixty two thousand three hundred sixty six, which turns on lazy startup by default for optional stdio MCP servers that have cached tool lists. Previously, Codex initialized and started every single enabled stdio MCP server the moment you opened a local session, even if you never touched a single tool from that server. If you had five or ten specialty servers configured in your setup, they all just sat there spinning up.

James Turner

And that had real developer impact, as documented in GitHub issue forty two thousand two hundred forty two. Running multiple configured stdio MCP servers eagerly slowed down session startup time, spawned a bunch of unnecessary local processes, and chewed through CPU and memory. One user audit in that issue even noted seventeen point two seven gibibytes of summed RSS across unused specialty servers. On top of the resource drain, an unrelated server could throw a startup error and get in your way before you even started working on your actual task.

James Turner

With zero point one seven two point zero, you do not need any extra flag to enable this. You just update via npm install global at openai slash codex at zero point one seven two point zero, and lazy startup is on by default. Here is how it works under the hood. Codex reads the server's cached tool list so those tools remain discoverable to the model before the process is even running. Then, when the model actually invokes a tool from that server, Codex spawns and initializes the stdio server on demand for that first tool call.

James Turner

There are a few caveats to keep in mind, though. First, this applies specifically to optional stdio MCP servers that already have cached tool lists. If a server does not have a cached tool catalog yet, or if it is marked as required, it cannot defer startup and will still initialize eagerly. Second, expect a slight one time initialization delay on the very first tool call to a dormant server in a session, since the process is booting up right at that moment. Also, the zero point one seven two point zero release notes do not specify an opt out config key or an idle shutdown timeout for this behavior, so keep that in mind if you are auditing your local processes.

Chapter 2

Quality of Life Updates in Zero Point One Seven Two

James Turner

Beyond lazy MCP startup, zero point one seven two point zero also packs several quality of life improvements you can use right away. In the TUI composer, pull request sixty two thousand three hundred forty three adds Tab completion for supported slash command arguments. For example, typing slash mcp lo and hitting Tab completes it to slash mcp login. You can also follow thread links directly from search results and transcripts, thanks to pull request sixty two thousand three hundred thirty two, to open saved conversations and nested agents right in the terminal.

James Turner

If you spend a lot of time in the agent command center, pull request sixty two thousand two hundred lets you jump between task groups using Shift Up and Shift Down. And for connected app tools, pull request sixty two thousand three hundred sixty lets you set an approval reviewer for individual tools in your config dot toml file. Meanwhile, codex exec resume got a solid fix in pull request sixty two thousand one hundred ninety four, so it now restores your saved sandbox permissions, working directory, and workspace roots unless you explicitly override them.

James Turner

Finally, two quick fixes for day to day terminal use. Codex now surfaces provider errors as soon as they arrive in a response stream and tells you which API spend limit was reached, which beats waiting around to figure out why a stream stalled. And if you run into answer choices taller than your terminal's answer area, pull request sixty two thousand two hundred nine lets you use PageUp and PageDown to read and submit them cleanly. That wraps up zero point one seven two point zero. Update your CLI, test out the faster startup, and we will catch you on the next changelog.