AI News
All stories
Official

Codex CLI 0.173.0 adds blocking hooks, shared MCP connections and status line alignment

OpenAI's Codex CLI 0.173.0 release lets required hooks block a tool call on failure and shares MCP connections by default.

Products · · 2 min read

OpenAI's Codex CLI 0.173.0 lets a required hook stop a tool call when the hook fails. It also turns on sharing of MCP connections by default. The release notes, published on GitHub on 02 Dec, list these alongside smaller changes for people who run the terminal agent.

According to the release, supported synchronous command and MCP tool hooks can now set onFailure to block. When a PreToolUse check fails, the tool does not run. The release says only that these are the supported synchronous command and MCP tool hooks. It does not list other hook types or say what happens to asynchronous ones.

Connection sharing is the other default change. The notes say Codex now shares MCP connections by default and supports older local servers that require initialize as their first request. The changelog ties this to pull request #62552, titled "Enable MCP connection sharing by default." The notes do not explain how shared connections are scoped or what changes for users who previously relied on separate connections.

Administrators can block both scheduled and manual daemon updates by setting features.daemon_updates to false in managed requirements.toml or in local MDM policy. The release names both paths, so an administrator who sets the flag should not expect scheduled updates to continue while manual ones remain allowed. The same configuration area gains automatic discovery of OAuth endpoints. Codex finds them when a config server publishes them and config_server.oauth is left out. A separate changelog entry, #62859, defines the startup OAuth protocol for config servers. The notes do not say how that connects to the discovery.

Terminal presentation gets the rest of the feature list. Custom status lines can align items left, center, or right, or spread them across the terminal width. The Markdown renderer now handles multiline labels on Mermaid flowchart arrows, labeled underbraces in display equations, and \widetilde over a single character. The status line work is cited to two pull requests: #62569 for justification and #62637 for center and end alignment.

Among the bug fixes, open sidebar previews now refresh when files change on disk, including when an editor replaces the file on save. Pasted image paths now create a private copy, so an attachment survives if the original is moved or deleted before sending. The Agents overview refreshes Cloud thread names, status, and unread indicators when another client makes changes. Running threads pick up updated approval requirements and Guardian policies when a user reloads configuration, signs in, or signs out. The release also says Codex can report why the server rejected a WebSocket request, including when the request was too large, even if the upload stalls or fails.

What changed

Codex CLI 0.173.0 lets supported synchronous command and MCP tool hooks set onFailure to block, so a failed PreToolUse check stops the tool from running, and it shares MCP connections by default.

Type: New capability · Applies to: Codex CLI 0.173.0, supported synchronous command and MCP tool hooks, MCP connections, features.daemon_updates, config_server.oauth

Why it matters

Teams running Codex in managed or automated setups can now enforce pre-tool checks that actually stop tool calls, and they can keep daemon updates under central control.

What you can do

If you run Codex with hooks or in a managed fleet, review your hook configuration for onFailure behavior and decide whether to set features.daemon_updates to false.

Original source

Where we saw it

1 source

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