mirror of
https://github.com/bitbaum/dotfiles.git
synced 2026-12-04 12:27:35 +01:00
EnterWorktree(path=~/dev/<repo>/.claude/worktrees/<name>) from a session at ~ raises a 'permission-root relocation' prompt that the EnterWorktree allow rule does not silence. A PermissionRequest hook approves exactly that shape (resolved with realpath, so .. and symlinks cannot escape) and falls through to the normal prompt for anything else. Tested in both directions, wired into CI. Signed-off-by: Cato <41178744+catomean@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>