Code review runs on wrong branch when using worktree

Resolved 💬 1 comment Opened Aug 1, 2026 by TaiRuiQu Closed Aug 1, 2026
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

What version of the Codex App are you using (From “About Codex” dialog)?

26.727.51351

What subscription do you have?

Plus

What platform is your computer?

Microsoft Windows NT 10.0.26200.0 x64

What issue are you seeing?

When I run Code Review in work tree mode (manually selected another branch), the prompt still ask the agent to review current branch v.s. main.

<img width="798" height="300" alt="Image" src="https://github.com/user-attachments/assets/8ba77a69-41da-4fc5-bd74-9ef20d795e7b" />

<img width="889" height="240" alt="Image" src="https://github.com/user-attachments/assets/af19d7c9-173d-45e9-acc0-b7847e39e360" />

What steps can reproduce the bug?

Create some new branches (A, B, C), checkout branch A, and ask codex to review B against C.

What is the expected behavior?

_No response_

Additional information

_No response_

View original on GitHub ↗

1 Comment

github-actions[bot] contributor · 27 days ago

Potential duplicates detected. Please review them and close your issue if it is a duplicate.

  • #35667

Powered by Codex Action