Codex desktop inspector shows checks from the wrong worktree
What version of the Codex App are you using (From “About Codex” dialog)?
26.803.61601 (build 6396)
What subscription do you have?
ChatGPT paid plan via Codex desktop (exact tier is not exposed in this context)
What platform is your computer?
Darwin 27.0.0 arm64 arm
What issue are you seeing?
The right-hand Git/checks inspector can remain bound to the repository's root workspace while the active Codex task is running in a separate worktree for the same repository.
In the active task, the agent and terminal are operating in a dedicated Codex worktree on Branch B. However, the inspector shows the root workspace on Branch A, including Branch A's uncommitted-file count, pull request, failing checks, and merge-conflict status. Clicking the failing check opens Branch A's pull request even though the visible conversation is the Branch B task.
The inspector does not prominently identify this as another task/worktree context. This makes unrelated CI failures appear to belong to the active task and has repeatedly caused incorrect diagnosis and unnecessary work.
The branch dropdown lists Branch B, but selecting it is not a viable workaround because Git correctly rejects the checkout:
fatal: 'Branch B' is already used by worktree at '<dedicated Codex worktree path>'
What steps can reproduce the bug?
- Open a repository's root workspace in Codex and check out Branch A there.
- Create or open another Codex task for the same repository that uses a dedicated worktree on Branch B.
- Ensure Branch A has a pull request with a failing check or merge-conflict status.
- Switch to the Branch B task/conversation.
- Open the right-hand repository inspector.
- Observe that the inspector still displays Branch A and Branch A's PR/check status rather than the active task's Branch B worktree.
- Click the failing check: Codex opens Branch A's CI job, which appears contextually attached to the Branch B conversation.
- Open the branch dropdown and choose Branch B: checkout fails because Branch B is already checked out in the dedicated worktree.
This reproduces consistently when multiple Codex tasks/worktrees exist for the same repository.
What is the expected behavior?
The Git/checks inspector should follow the active task's worktree and show that worktree's branch, changes, PR, checks, and merge state.
If the inspector is intentionally scoped to a different root workspace, it must state that clearly and must not present that workspace's CI status as though it belongs to the active task. A useful fallback would be a direct control to select the active task's existing worktree without attempting a forbidden Git branch checkout.
Additional information
There are two distinct contexts at the time of failure:
- Active conversation/terminal: dedicated Codex worktree on Branch B.
- Right-hand Git/checks inspector: root workspace on Branch A.
The check URL itself is valid for Branch A; the bug is that the inspector is contextually displayed alongside the Branch B task without binding to it or clearly warning that it represents another workspace.
Text reproduction is provided instead of screenshots to avoid exposing private repository and branch names. Screenshots showing the mismatched task, selected branch, unrelated failing check, and blocked branch switch are available if maintainers need them.
2 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
Same issue, feedback submitted 019fd03e-1478-76d1-bbb3-e0682d030df9