New worktrees set to a new branch do not checkout the branch itself, just the commit
Open 💬 2 comments Opened Feb 8, 2026 by benglewis
What version of the Codex App are you using (From “About Codex” dialog)?
Version 260206.1448 (565)
What subscription do you have?
Business
What issue are you seeing?
When starting a new task for a given repository with a Git worktree, Codex App does not actually checkout a given branch, but just the commit, meaning that Codex App cannot actually commit it's work afterwards directly to the branch since it isn't on a branch.
What steps can reproduce the bug?
- Start a new task in Codex App with worktree selected and any random branch chosen.
- Notice that on completion of the prompt, Codex App cannot commit the changes.
- Manually checkout the branch from the Terminal.
- Now Codex App can commit the changes.
What is the expected behavior?
When launching a task in Codex App that runs in a Git worktree, the branch should actually be checked out, not the current commit of that branch.
Additional information
_No response_
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗