{"version":"2.1.302","anchor":"enterworktree-result-message-uses-a-shortened-path","canonical_anchor":"enterworktree-result-message-uses-a-shortened-path","heading":"Worktree tool messages now format paths and names through a helper","tier":"notice","area":"Worktrees","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.302\/e\/enterworktree-result-message-uses-a-shortened-path","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.302","markdown":"### Worktree tool messages now format paths and names through a helper\n\n`EnterWorktree` and `ExitWorktree` messages no longer insert raw paths, branch names and tmux session names; the tmux reattach hint is reworded\n\n**What**\n\n`EnterWorktree` and `ExitWorktree` are the tools that move a session into and out of a git worktree, an extra working copy of a repository. Their messages no longer insert paths and names exactly as they are.\n\n- `EnterWorktree` shows the worktree path through a display helper that shortens it, instead of the raw path.\n\n- `ExitWorktree` passes paths, branch names and the tmux session name through a helper. tmux is a tool that keeps terminal sessions running in the background.\n\n- The tmux hint now reads \"reattach with `tmux attach -t` and that name\", instead of putting the session name directly into the command.\n\n**Why**\n\nPaths and names in these messages are no longer copied in raw, which may guard against unusual text in a folder or branch name ending up in what Claude reads.\n\n- Area: Worktrees\n- Tier: You'll notice\n- Useful: 1\/5\n- Signal: 0\/5\n- Scope: individual\n- Heads-up: no"}