iOS remote hides worktree selector when a repo has an extra local codex/* branch

Open 💬 2 comments Opened Jun 27, 2026 by simpx

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?

  1. Start with a repo that shows the worktree selector correctly in Codex iOS remote.
  2. Add a local codex/* branch that is not checked out:

``bash
git branch codex/hit-reactions-demo 5699ef4b42216446f4c32b9ad456099a0f8dd53f
``

  1. Open the repo in Codex iOS remote new-thread UI.
  2. The worktree selector disappears.
  3. Delete the branch:

``bash
git branch -d codex/hit-reactions-demo
``

  1. 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 .git plus affected working tree: works.
  • Affected .git with only codex/hit-reactions-demo removed: works.
  • Fresh .git with only codex/hit-reactions-demo added: 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.

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗