Codex CLI v0.173.0 can stop a tool when your hook fails, and aligns your status line

1 day ago

Codex CLI v0.173.0: a failed hook can now stop a tool from running, MCP connections are shared by default, custom status lines can align their items, and administrators can block daemon updates.

Ask about this presentation

Chapters

Show transcript
  1. Codex CLI v0.173.0 can stop a tool when your safety hook fails. Set a hook to block on failure, and a check that fails before a tool call keeps that tool from running.

    Slide text
    01 02 03 Hooks and MCP
    openai/codex · GitHub release rust-v0.173.0 · pull request #62831
    Codex
    PreToolUse fails: the tool never runs PostToolUse fails: the result is withheld
  2. Nothing changes unless you ask: the default still continues after a failed hook. Blocking works on supported synchronous command hooks and MCP tool hooks.

    Slide text
    codex-cli v0.173.0
    01 02 03 Hooks and MCP
    openai/codex · GitHub release rust-v0.173.0 · pull request #62831

    Blocking is opt-in, set per hook

    onFailure: "block" default: "continue"

    Supported synchronous command and MCP tool hooks only.

  3. Codex now shares MCP connections by default. Older local servers that insist on initialize as their very first request are supported as well.

    Slide text
    codex-cli v0.173.0
    01 02 03 Hooks and MCP
    openai/codex · GitHub release rust-v0.173.0 · pull request #62552

    Older local servers that need initialize as their first request work too.

  4. Next, what changed in your terminal.

    Slide text
    codex-cli v0.173.0
    01 02 03 In your terminal
    02
    In your terminal
  5. Your custom status line can now line up its items. Pack a row left, center it, push it right, or spread it across the terminal so two groups stay at opposite edges as you resize.

    Slide text
    codex-cli v0.173.0
    01 02 03 In your terminal
    openai/codex · GitHub release rust-v0.173.0 · pull request #62569, #62637
    start center end between
  6. Terminal Markdown renders more. Mermaid flowchart arrows can carry labels on several lines, display equations show labeled underbraces, and a wide tilde fits over a single character.

    Slide text
    codex-cli v0.173.0
    01 02 03 In your terminal
    openai/codex · GitHub release rust-v0.173.0 · pull request #62550, #62554, #62577
    Mermaid flowcharts arrow labels on several lines
    Display equations labeled underbraces
    \widetilde over a single character
  7. Paste an image path, and Codex now makes a private copy right away. Move or delete the original file before you send, and the attachment is still there.

    Slide text
    codex-cli v0.173.0
    01 02 03 In your terminal
    openai/codex · GitHub release rust-v0.173.0 · pull request #62687

    A pasted image survives moving or deleting the original

    Codex keeps a private copy from the moment you paste the path.

  8. Open sidebar previews refresh when a file changes on disk, even when an editor replaces it on save. The Agents overview follows Cloud threads changed from another client. And task mentions match the titles you see.

    Slide text
    codex-cli v0.173.0
    01 02 03 In your terminal
    openai/codex · GitHub release rust-v0.173.0 · pull request #62583, #62858, #62691
    Sidebar previews refresh when the file changes on disk
    Agents overview follows Cloud threads changed elsewhere
    Task mentions fuzzy-match the titles you see
  9. When the server rejects a request, Codex can now tell you why. That includes a request that was too large, even if the upload stalled or failed first.

    Slide text
    codex-cli v0.173.0
    01 02 03 In your terminal
    openai/codex · GitHub release rust-v0.173.0 · pull request #62749, #62771

    Including a request that was too large, even when the upload stalled or failed.

  10. And finally, updates and administration.

    Slide text
    codex-cli v0.173.0
    01 02 03 Updates and administration
    03
    Updates and administration
  11. Threads that are already running now pick up updated approval requirements and Guardian policies when you reload configuration, sign in or sign out. That holds even when the new policy blocks the current model.

    Slide text
    codex-cli v0.173.0
    01 02 03 Updates and administration
    openai/codex · GitHub release rust-v0.173.0 · pull request #62585, #62614

    Running threads pick up new approval requirements and Guardian policies

    Reload configuration Sign in Sign out
  12. Config servers that publish their OAuth endpoints now need less setup. Leave the OAuth settings out, and Codex discovers those endpoints on its own.

    Slide text
    codex-cli v0.173.0
    01 02 03 Updates and administration
    openai/codex · GitHub release rust-v0.173.0 · pull request #62824

    Codex finds a config server's OAuth endpoints on its own

    When the OAuth settings are left out, Codex looks for the ones the server publishes.

  13. Administrators can now block Codex daemon updates, scheduled and manual alike. It works through managed requirements or local MDM policy, not cloud-delivered requirements, and users cannot override it.

    Slide text
    codex-cli v0.173.0
    01 02 03 Updates and administration
    openai/codex · GitHub release rust-v0.173.0 · pull request #62690

    Administrators can block every daemon update

    Scheduled Manual

    Set in managed requirements or local MDM policy. Cloud-delivered requirements reject it.

  14. Installing or updating Codex through NPM now downloads less, because the packages are smaller. Every other change is in the v0.173.0 release notes on GitHub.

    Slide text
    codex-cli v0.173.0
    01 02 03 Updates and administration
    openai/codex · GitHub release rust-v0.173.0 · pull request #62643

    Smaller npm packages, so installs and updates download less

    Every other change: the v0.173.0 release notes on GitHub.

What happened in AI today, in your inbox

One short email each evening. Read it and you’re caught up.

Built with ❤️ in New York