Commits in git worktree are not visible when using /review command
Open 💬 1 comment Opened Jan 12, 2026 by pikoscielniak
What version of Codex is running?
codex-cli 0.80.0
What subscription do you have?
Plus
Which model were you using?
gpt-5.2-codex
What platform is your computer?
Windows Subsystem Linux (Ubuntu 24.04)
What issue are you seeing?
When working inside a directory created via git worktree, the /review command fails to detect or display recent commits.
Actual Behavior No commits are displayed in the list.
What steps can reproduce the bug?
- Create a new worktree: git worktree add ../branch_name branch_name
- Navigate to the new worktree directory.
- Create several new commits.
- Run the command: /review
- Select option: 3. Review a commit
What is the expected behavior?
I expect to see a list of the commits I just created within the worktree.
Additional information
_No response_
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗