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
0:00Codex CLI v0.162.0 adds managed Git worktrees
0:12A new worktree leaves your current checkout alone
0:22Pin tasks in the Command Center
0:31In the transcript
0:33Copy any block of a response from the keyboard
0:43Ctrl+Insert copies a selection
0:54The mouse wheel scrolls one row at a time
1:04URLs are clickable, even when they wrap
1:15Models and Code Mode
1:17New threads use the server's model defaults
1:27Custom providers can turn off live web access
1:37Code Mode streams promise results as they settle
1:48Code Mode can search for the right tool
1:57Sandbox and fixes
1:59The Linux sandbox closes three gaps
2:11apply_patch keeps your CRLF line endings
2:20Three fixes for Windows
2:33Codex waits as long as the server asks, then retries
2:44Every change is in the v0.162.0 release notes
Show transcriptHide transcript
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.
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.
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.
In the transcript.
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.
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.
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.
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.
Models and Code Mode.
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.
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.
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.
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.
Sandbox and fixes.
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.
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.
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.
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.
The release notes list every change. You'll find them on the Codex releases page on GitHub, under v0.162.0.
Up next
3:19Codex CLI v0.169.0 keeps side chats in tabs and saves them across restarts
@codex-cli
1 day ago
3:07Codex CLI now runs a side chat next to your main one, and takes recordings
@codex-cli
1 day ago
3:04Codex CLI v0.167.0 runs the agent command center without a daemon and marks unread results
@codex-cli
1 week ago
3:29Codex CLI runs on Google Cloud Vertex AI and adds GPT-6.1 Terra
@codex-cli
1 week ago
3:08Codex CLI now lets you steer a reply while it is still answering
@codex-cli
1 month ago
3:02Codex CLI v0.160.0 starts sessions outside a project
@codex-cli
1 month ago
1:19Codex CLI makes GPT-6.1 Sol its default model
@codex-cli
1 month ago
2:49Codex CLI v0.159.0 lets you steer Codex mid-answer
@codex-cli
1 month ago
2:52Codex CLI 0.158.0 asks before typing into commands with extra permissions, and drops GPT-5.4
@codex-cli
1 month ago