News · OpenAI · 2 min read
Event date: · Published:
OpenAI releases Codex CLI 0.173.0 with blocking hooks, shared MCP
OpenAI published Codex CLI 0.173.0 on December 2, 2026, adding hooks that can block failing tool calls, shared MCP connections by default, and new admin controls for auto-updates.
OpenAI released Codex CLI version 0.173.0 on December 2, 2026, according to the project's release notes. The update adds hook controls that can block tool execution, switches to shared MCP connections by default, and gives administrators new ways to manage automatic updates.
What changed in Codex CLI 0.173.0
- Codex CLI 0.173.0 was published on December 2, 2026 at 02:16 UTC, built from commit
fcff6f6. - Synchronous command and MCP tool hooks can now set
onFailure: blockto stop tool execution after a failed PreToolUse check. - Codex now shares MCP connections by default and supports older local MCP servers that require "initialize" as the first request.
- Codex auto-discovers OAuth endpoints when
config_server.oauthis left out of the configuration. - Administrators can turn off scheduled and manual daemon auto-updates with a
features.daemon_updates = falsesetting in a requirements file or MDM policy.
What it means for builders using Codex
The ability to block tool execution after a failed PreToolUse hook check, combined with default shared MCP connections, hands teams that build custom guardrails around Codex tighter control over tool execution and connection management, which matters directly for how coding agents are wired into CI pipelines and development workflows.
Other changes in this release
The release also lets custom status lines align items left, center, or right, or spread them across the terminal width, and improves terminal Markdown rendering for multiline Mermaid flowchart arrow labels and LaTeX widetilde formatting. OpenAI says the update reduced the npm package download size and cut allocations during tool-schema preparation.
Sources
- Codex CLI rust-v0.173.0 release notes (OpenAI, December 2, 2026, official)
Written with AI assistance, strictly from the sources listed above. Before it went live, automated checks verified its dates, sources and every language edition.