OpenAI Product minor

Codex CLI 0.173.0 lets required hooks block tools on failure and shares MCP connections by default

Codex CLI 0.173.0 lets synchronous command and MCP tool hooks set onFailure to block, shares MCP connections by default, lets admins disable daemon updates, auto-discovers config-server OAuth endpoints and adds status-line alignment.

What does this mean for me?

Plan for it
  • Engineering leadership

    Cost, risk, timeline, team impact Worth knowing

    Teams that govern Codex through hooks and managed config gain two controls: required checks can now fail closed, and admins can freeze daemon updates. Have whoever owns Codex policy decide whether to adopt them.

  • Engineer

    What to change, what breaks, what to test Plan for it

    After upgrading to 0.173.0, set onFailure: block on PreToolUse hooks that must stop a tool when they fail, and use features.daemon_updates = false in requirements.toml to pin updates. MCP connections are now shared by default, so re-test any MCP server that assumed one connection per session.

  • General consumer

    Using ChatGPT, not the API No impact

    Nothing to do. This is a Codex CLI release for developers and does not change ChatGPT.

Codex CLI 0.173.0, released December 2, 2026, changes several behaviours that matter to teams running it under policy.

  • Supported synchronous command and MCP tool hooks can set onFailure to block, so a failed PreToolUse check stops the tool from running instead of letting it through.
  • Codex now shares MCP connections by default, and supports older local MCP servers that require initialize as their first request.
  • Administrators can block both scheduled and manual daemon updates with features.daemon_updates = false in managed requirements.toml or local MDM policy.
  • When config_server.oauth is omitted, Codex discovers OAuth endpoints published by the config server automatically.

Smaller additions: custom status lines can align items left, center, right or across the terminal width, and terminal Markdown renders more Mermaid and math constructs. Fixes cover file preview refresh, pasted image paths (now copied privately), Cloud thread status in the Agents overview, and running threads picking up updated approval requirements and Guardian policies after a config reload or sign-in change. npm packages are smaller.

Topics: Agents and tool use, Coding tools

Sources

Confidence
high
Verification
Verified: stated on the vendor's own pages
Date precision
exact
How this entry was made
Drafted by an agent, reviewed by a person