The check can now stop the tool

Hooks in a coding agent are only as useful as what happens when one fails. In 0.173.0, supported synchronous command and MCP tool hooks can set onFailure to block. The release note is specific about the consequence: "A failed PreToolUse check then prevents the tool from running."

That is a small sentence with a practical difference inside it. A check that blocks turns a team's own rules (run the linter, confirm the branch, verify the path is inside the project) into something the agent has to pass, in the cases the hook covers. The limit is in the wording, and it is worth keeping: this applies to supported synchronous hooks, at the PreToolUse point, when the hook is configured to block. It is not a promise about every action an agent can take, and a PostToolUse failure cannot unrun a tool that already ran.

MCP connections, shared by default

The second change is about plumbing. Codex now shares MCP connections by default, and it supports older local servers that require initialize as their first request. Those are the two documented changes: a new default for connections, and compatibility with a class of older local servers. Both land without configuration.

Admins get a freeze switch, threads get live policy

Two further changes belong to managed deployments. Administrators can block both scheduled and manual daemon updates by setting features.daemon_updates = false in a managed requirements.toml or in local MDM policy. That is the standard enterprise ask (hold the daemon at its current version until we say otherwise) arriving in the standard place.

Separately, and listed as a bug fix rather than a feature, running threads now pick up updated approval requirements and Guardian policies when you reload configuration, sign in, or sign out. The note names those three triggers; a thread does not need to end for the updated policy to reach it.

The rest of the release

The remaining notes are smaller. Custom status lines can align items left, center, or right, or spread them across the terminal width. Terminal Markdown renders multiline labels on Mermaid flowchart arrows and a few more equation forms. Codex discovers OAuth endpoints published by a config server when config_server.oauth is omitted. Sidebar previews refresh when files change on disk, pasting an image path makes a private copy of the attachment, and npm packages are smaller. None of that changes what the agent is allowed to do, which is precisely why the hook change stands out in this release: it is the one line that changes who, or what, can say no.

Sources

  1. [1] Codex CLI 0.173.0 release notes, GitHubRead source
  2. [2] Full changelog compare, rust-v0.172.0...rust-v0.173.0Read source