Claude Desktop repo/branch chip doesn't update after EnterWorktree switches into a worktree

Open 💬 0 comments Opened Jul 15, 2026 by songsta

When a session uses the EnterWorktree tool to switch into an existing git worktree (e.g. a git worktree add-created directory on its own branch), the Claude Desktop UI's repo/branch indicator chip (shown near the composer, e.g. "ptnrkit main") does not update to reflect the new worktree/branch. It continues showing the original checkout's repo/branch even though the session's actual working directory and git state (confirmed via pwd / git branch --show-current) are correctly on the worktree.

This is misleading — a user glancing at the chip believes the session is still on main in the primary checkout, when it's actually operating in an isolated worktree on a feature branch. Given how Claude Desktop encourages worktree-based isolation for branch work, this chip should reflect the session's current directory/branch after any tool-driven directory change.

Repro:

  1. Start a session in the primary checkout (chip shows e.g. repo main).
  2. Use EnterWorktree (or equivalent) to switch the session into a worktree on a different branch.
  3. Observe the branch chip in the UI still shows the original repo/branch, not the worktree's.

Screenshot evidence available from the reporting session showing the chip stuck on ptnrkit main after the session had already switched into a sales-assistant-role worktree/branch.

View original on GitHub ↗