Worktree chip in desktop app shows origin repo name, not worktree folder name — confusing with same-named directories

Status Open
Maintainer reply None cached
Activity 0 comments · opened Sep 10, 2026

Environment: Claude Code desktop app (Code tab), Windows 11, working with git worktrees.

What happens

I have a git repo etl_capa_bronce checked out as multiple worktrees, each in its own folder:

  • Claude Code Proyectos/etl_capa_bronce (main checkout, branch main)
  • Claude Code Proyectos/etl-sap (worktree, branch feat/sap-cambios)
  • Claude Code Proyectos/etl-odoo (worktree, branch feat/odoo-cambios)
  • C:/wt-fracttal (worktree, branch fix/fracttal-duration-logging)

When the active working directory is switched to the etl-sap worktree (via "Cambiar directorio..."), the header chip still displays etl_capa_bronce — the name of the origin remote's repo — instead of the worktree's own folder name (etl-sap).

Since I also have a separate, unrelated directory literally named etl_capa_bronce on disk, seeing that exact label while actually working inside etl-sap is confusing: at a glance it looks like I'm in the wrong project.

Expected

The chip should reflect something that disambiguates worktrees — e.g. the worktree folder name, or at least pair the repo name with the branch/worktree name more prominently (right now the branch is shown very small/secondary next to the repo name).

Why it matters

With multiple worktrees of the same repo open across sessions, the current label makes it easy to misidentify which worktree a session is actually operating in, which is risky when running directory-scoped commands.

Happy to provide screenshots or more repro detail if useful.

View original on GitHub ↗