Codex CLI 0.173.0: Hook check failures can block tool calls

Codex CLI (@openai/codex) has been upgraded from 0.172.0 to 0.173.0. According to OpenAI's Codex changelog: synchronous command hooks and MCP tool hooks can set onFailure to block, preventing tools from running when PreToolUse checks fail; MCP connections are shared by default and are compatible with legacy local servers that require an initial initialize message; administrators can set features.daemon_updates = false in requirements.toml or MDM policies to disable scheduled and manual daemon updates; custom status bars support left, center, and right alignment; pasting an image path first creates a private copy. The npm package size has also decreased.

Original title: Codex CLI 0.173.0 released

Codex CLI (@openai/codex) has been upgraded from 0.172.0 to 0.173.0. According to OpenAI's Codex changelog: synchronous command hooks and MCP tool hooks can set onFailure to block, preventing tools from running when PreToolUse checks fail; MCP connections are shared by default and are compatible with legacy local servers that require an initial initialize message; administrators can set features.daemon_updates = false in requirements.toml or MDM policies to disable scheduled and manual daemon updates; custom status bars support left, center, and right alignment; pasting an image path first creates a private copy. The npm package size has also decreased.

Why it matters Tools are not executed if PreToolUse checks fail, allowing teams to add a hard security gate for coding agents using hooks; administrators can also disable automatic updates.

Credibility: High · Source Codex changelog and 2 other sources (including official) · Event time 12-03 09:24 (Beijing Time)

Reasoning

  • OpenAI's official Codex changelog lists the complete changes
  • Hook interception and disabling automatic updates are common control measures for team deployments

Usage

  • Upgrade with npm install -g @openai/[email protected]; add onFailure: block to PreToolUse checks in the hook configuration

Risks

  • Only some synchronous hooks support onFailure: block; refer to the changelog and documentation for details

Open · Codex Changelog

AI 编程 CLI(npm)

Explore the latest AI Radar updates