codex - 💡(How to fix) Fix branch indicator often stale or missing [2 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openai/codex#17683Fetched 2026-04-14 05:41:19
View on GitHub
Comments
2
Participants
2
Timeline
5
Reactions
0
Author
Timeline (top)
commented ×2labeled ×2cross-referenced ×1
RAW_BUFFERClick to expand / collapse

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

Version 26.325.31654 (1272)

What subscription do you have?

Pro

What platform is your computer?

Darwin 24.6.0 arm64 arm

What issue are you seeing?

I use a fixed set of pre-created worktrees of my repo, with each worktree set up as a separate "project" in the Codex app. When I go to start a new thread in one of those worktree "projects", I usually update the branch checked out in the worktree first, to the branch that I want to work on / review. But when I go to create a new thread in the Codex app, the branch indicator in the lower right (below the text entry box) is more often than not stale (reflecting some branch that was previously checked out in that worktree, but not the currently checked out branch), and I have to manually select the right branch before starting the thread. Sometimes there is no branch shown there at all, which means I'm lacking the UI affordance to even select a branch. I so far haven't been able to figure out any correlations as to when the branch is missing vs shown.

What steps can reproduce the bug?

  1. Create a new worktree of a git repository, and set up that worktree as a project in the Codex app.
  2. Check out a new branch in that worktree.
  3. Click the "Start a new thread in..." button in the left sidebar for that project.
  4. The branch indicator in lower right may be missing entirely, or show a branch that isn't the currently checked-out branch.

What is the expected behavior?

The behavior I'd hope for is that the currently-checked-out branch is always consistently shown in the UI.

Additional information

No response

extent analysis

TL;DR

The issue can be mitigated by manually selecting the correct branch before starting a new thread in the Codex app, as the branch indicator may not always reflect the currently checked-out branch.

Guidance

  • Verify that the worktree and project setup in the Codex app are correctly configured to reflect the current branch.
  • Check if the issue persists when creating a new thread in a different project or worktree to isolate the problem.
  • Consider refreshing the project or restarting the Codex app to see if the branch indicator updates correctly.
  • If the branch indicator is missing, try selecting a different branch and then re-selecting the desired branch to see if it appears.

Notes

The root cause of the issue is unclear, but it may be related to how the Codex app updates the branch indicator when switching between worktrees or checking out new branches.

Recommendation

Apply workaround: Manually select the correct branch before starting a new thread, as this ensures the correct branch is used even if the branch indicator is stale or missing.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING