← In the News

Codex hooks can now block a tool call when the check fails

Codex rust-v0.173.0 · OpenAI · GitHub release notes, December 2, 2026 (02:16 UTC)

Machine-readable Download Markdown

The notes say "Supported synchronous command and MCP tool hooks can set onFailure to block. A failed PreToolUse check then prevents the tool from running." Two other entries touch long-running work. "Running threads pick up updated approval requirements and Guardian policies when you reload configuration, sign in, or sign out", so a policy change no longer waits for a fresh thread. The changelog also lists "Add OpenTelemetry for subagent lifecycles" (#62567), and Codex now shares MCP connections by default.

Why it matters: A check that guards an unattended run should fail closed. Setting onFailure to block makes a failed PreToolUse check stop the tool instead of letting the call go ahead.