Codex CLI v0.162.0 adds managed Git worktrees

1 month ago

Codex CLI v0.162.0: managed Git worktrees, pinned tasks in the Command Center, keyboard copy with /copy, clickable URLs, server model defaults, custom provider capabilities, new Code Mode helpers, plus Linux sandbox, Windows, apply_patch and retry fixes. v0.162.0 release notes: https://github.com/openai/codex/releases/tag/rust-v0.162.0 Full changelog: https://github.com/openai/codex/compare/rust-v0.161.0...rust-v0.162.0

Ask about this presentation

Chapters

  1. 0:00Codex CLI v0.162.0 adds managed Git worktrees
  2. 0:12A new worktree leaves your current checkout alone
  3. 0:22Pin tasks in the Command Center
  4. 0:31In the transcript
  5. 0:33Copy any block of a response from the keyboard
  6. 0:43Ctrl+Insert copies a selection
  7. 0:54The mouse wheel scrolls one row at a time
  8. 1:04URLs are clickable, even when they wrap
  9. 1:15Models and Code Mode
  10. 1:17New threads use the server's model defaults
  11. 1:27Custom providers can turn off live web access
  12. 1:37Code Mode streams promise results as they settle
  13. 1:48Code Mode can search for the right tool
  14. 1:57Sandbox and fixes
  15. 1:59The Linux sandbox closes three gaps
  16. 2:11apply_patch keeps your CRLF line endings
  17. 2:20Three fixes for Windows
  18. 2:33Codex waits as long as the server asks, then retries
  19. 2:44Every change is in the v0.162.0 release notes
Show transcript
  1. Codex CLI v0.162.0 can create and list Git worktrees for you. The tools work in trusted local projects, once the worktrees feature is turned on.

    Slide text
    01 02 03 04 Worktrees and tasks
    openai/codex · release notes rust-v0.162.0 · #50148
    Codex
    Create List Trusted local projects
  2. A new worktree attaches to the task that asked for it and survives restarts. It starts from the remote's default branch, and your uncommitted changes stay where they are.

    Slide text
    codex-cli v0.162.0
    01 02 03 04 Worktrees and tasks
    openai/codex · release notes rust-v0.162.0 · #50148

    It starts from the remote default branch. Uncommitted changes stay where they are.

  3. In the agent Command Center, press P to pin a task. Pinned tasks sit first, in a shared Pinned group. Pinning needs a server that supports shared sections.

    Slide text
    codex-cli v0.162.0
    01 02 03 04 Worktrees and tasks
    openai/codex · release notes rust-v0.162.0 · #51500

    Press p. Pinned tasks sit first, in their own Pinned group.

  4. In the transcript.

    Slide text
    codex-cli v0.162.0
    01 02 03 04 In the transcript
    02
    In the transcript
  5. Type /copy and Codex selects its latest response. Move between messages, code blocks and quotes with the arrow keys or J and K, then press Enter to copy.

    Slide text
    codex-cli v0.162.0
    01 02 03 04 In the transcript
    openai/codex · release notes rust-v0.162.0 · #50434

    /copy, then move between messages, code blocks and quotes. Enter copies.

  6. Control Insert now copies text you selected inside Codex. Windows Terminal sends that shortcut when it has no selection of its own, so its Copy action works too.

    Slide text
    codex-cli v0.162.0
    01 02 03 04 In the transcript
    openai/codex · release notes rust-v0.162.0 · #50215

    Windows Terminal sends it when there is no terminal selection to copy.

  7. The mouse wheel now scrolls the transcript one row per step instead of three. If that feels slow, a new setting controls the speed, and fractions work too.

    Slide text
    codex-cli v0.162.0
    01 02 03 04 In the transcript
    openai/codex · release notes rust-v0.162.0 · #50209

    It was three rows. A new setting sets the speed.

  8. Links are now clickable in approval headers, questions and verification prompts, in MCP server prompts, and in warnings and banners, even when the link wraps onto a second line.

    Slide text
    codex-cli v0.162.0
    01 02 03 04 In the transcript
    openai/codex · release notes rust-v0.162.0 · #51439, #51449, #51450, #51451, #51452, #51458
    Approvals headers, questions and verification prompts
    MCP prompts requests from MCP servers
    Warnings and banners the full link survives a line break
  9. Models and Code Mode.

    Slide text
    codex-cli v0.162.0
    01 02 03 04 Models and Code Mode
    03
    Models and Code Mode
  10. A new thread in the terminal now takes its model and reasoning summary defaults from the server. A model or reasoning effort you choose at launch still wins.

    Slide text
    codex-cli v0.162.0
    01 02 03 04 Models and Code Mode
    openai/codex · release notes rust-v0.162.0 · #50013, #50811, #50913

    A model or reasoning effort you pass at launch still wins.

  11. If you run Codex against your own Responses compatible provider, you can now keep its web search off the live web. You can also pick remote or local compaction.

    Slide text
    codex-cli v0.162.0
    01 02 03 04 Models and Code Mode
    openai/codex · release notes rust-v0.162.0 · #50459

    They can also choose remote or local compaction.

  12. Code Mode gets two JavaScript helpers for a batch of promises. Instead of waiting for all of them, the model gets each result, fulfilled or rejected, the moment it settles.

    Slide text
    codex-cli v0.162.0
    01 02 03 04 Models and Code Mode
    openai/codex · release notes rust-v0.162.0 · #51126

    Two new JavaScript helpers. Each result arrives as soon as it is ready.

  13. Code Mode can now search its deferred tools and get them back ranked by relevance. It's off by default, and works only on models that support tool search.

    Slide text
    codex-cli v0.162.0
    01 02 03 04 Models and Code Mode
    openai/codex · release notes rust-v0.162.0 · #51209

    Ranked results, opt-in, on models that support tool search.

  14. Sandbox and fixes.

    Slide text
    codex-cli v0.162.0
    01 02 03 04 Sandbox and fixes
    04
    Sandbox and fixes
  15. On Linux, the sandbox starts again when several files are denied. It refuses a bubblewrap program the sandbox could overwrite. And your ripgrep settings can't leave denied files unmasked.

    Slide text
    codex-cli v0.162.0
    01 02 03 04 Sandbox and fixes
    openai/codex · release notes rust-v0.162.0 · #50059, #51211, #51407, #51527
    Several denied files the sandbox starts again
    Writable launchers a replaceable bubblewrap is never run
    ripgrep settings can no longer unmask denied files
  16. Patching a file with Windows line endings used to convert them unless you opted in. Now apply_patch always keeps them, and the old setting is gone.

    Slide text
    codex-cli v0.162.0
    01 02 03 04 Sandbox and fixes
    openai/codex · release notes rust-v0.162.0 · #51203

    No opt-in. The old setting is removed.

  17. On Windows, ordinary drive letter paths open again on Windows 10. Sandbox temp permissions match the folder the process actually uses. And the PowerShell installer verifies its checksum again.

    Slide text
    codex-cli v0.162.0
    01 02 03 04 Sandbox and fixes
    openai/codex · release notes rust-v0.162.0 · #51511, #51512, #51257
    Windows 10 ordinary drive letter paths open again
    Sandbox temp permissions follow the process's own temp folder
    Installer checksums verify in Windows PowerShell
  18. When a failed request or WebSocket error says when to try again, Codex now waits that long and retries. Usage limits, and rate limits without that advice, still end the turn.

    Slide text
    codex-cli v0.162.0
    01 02 03 04 Sandbox and fixes
    openai/codex · release notes rust-v0.162.0 · #50418, #51440

    Usage limits and rate limits without that advice still end the turn.

  19. The release notes list every change. You'll find them on the Codex releases page on GitHub, under v0.162.0.

    Slide text
    codex-cli v0.162.0
    01 02 03 04 Sandbox and fixes
    openai/codex · release notes rust-v0.162.0

    github.com/openai/codex › Releases › 0.162.0

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