Worktree session only shows 'Hand off to local' (missing 'Sync to local' / 'Create branch here') when detached HEAD

Open 💬 5 comments Opened Feb 5, 2026 by hwb96

Summary

In a Codex desktop app worktree session, the UI only shows Hand off to local and does not show Sync to local or Create branch here. This happens when the session is already a local git worktree but is in detached HEAD. It’s unclear whether this is expected or a UI bug, but it’s confusing for users who start from main and expect to attach/create a branch.

Steps to Reproduce

  1. Start a Codex desktop app conversation from a repo on main.
  2. Use/enter a local git worktree for the conversation.
  3. Ensure the worktree is in detached HEAD (git branch --show-current returns empty).
  4. Observe the worktree UI actions.

Expected

Show Create branch here (or an explicit action to attach the worktree to a branch), or indicate why it’s hidden in detached HEAD state.

Actual

Only Hand off to local is shown.

Environment

  • Codex Desktop App version: 260204.1342 (CFBundleVersion 531)
  • macOS: 26.2 (Build 25C56)
  • Repo state: local git worktree, detached HEAD
  • git branch --show-current: (empty)
  • git rev-parse --short HEAD: 5b637aa

Notes

I will add screenshots in a follow-up comment.

<img width="1083" height="315" alt="Image" src="https://github.com/user-attachments/assets/d206bfdc-fd3a-4ad8-bbf5-a3d448455632" />

<img width="1414" height="1025" alt="Image" src="https://github.com/user-attachments/assets/504648bf-ff78-4f71-85dc-e11613257b61" />

<img width="404" height="92" alt="Image" src="https://github.com/user-attachments/assets/ecf33948-121e-4fb7-b150-3e48089e8249" />

View original on GitHub ↗

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