iOS remote hides worktree selector when a repo has an extra local codex/* branch
What issue are you seeing?
In Codex iOS remote new-thread UI, the worktree/run-location selector disappears for a valid Git repository when the repo has an extra local codex/* branch.
Affected environment:
Codex iOS app: 1.2026.167 (27854688393)
Plan: Max 20x
codex-cli: 0.142.3
app-server: 0.142.3
Remote host: WSL2 Linux x86_64
Actual behavior: only the server and folder rows are shown. The local/worktree selector and branch selector are missing entirely.
What steps can reproduce the bug?
- Start with a repo that shows the worktree selector correctly in Codex iOS remote.
- Add a local
codex/*branch that is not checked out:
``bash``
git branch codex/hit-reactions-demo 5699ef4b42216446f4c32b9ad456099a0f8dd53f
- Open the repo in Codex iOS remote new-thread UI.
- The worktree selector disappears.
- Delete the branch:
``bash``
git branch -d codex/hit-reactions-demo
- Reopen the repo. The worktree selector comes back.
We verified this by bisection:
- Fresh clone: works.
- Full copy of affected repo including
.git: broken. - Fresh
.gitplus affected working tree: works. - Affected
.gitwith onlycodex/hit-reactions-demoremoved: works. - Fresh
.gitwith onlycodex/hit-reactions-demoadded: broken.
What is the expected behavior?
Extra local branches, including merged codex/* branches, should not hide the entire worktree/run-location selector.
Additional information
Workaround:
git branch -d codex/hit-reactions-demo
The branch was already merged into main, and local git worktree add worked correctly while the iOS UI was broken.
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗