[Bug] EnterWorktree creates nested worktrees when invoked from existing worktree
Resolved 💬 3 comments Opened Feb 23, 2026 by yrichardson-talvy Closed Feb 27, 2026
Bug Description
- Title: EnterWorktree nests worktrees when invoked from inside an existing
worktree
- Root cause: Uses git rev-parse --show-toplevel (returns worktree root)
instead of git rev-parse --git-common-dir
- Repro: Open a worktree in VS Code → use EnterWorktree → new worktree is
nested inside the current one
Environment Info
- Platform: darwin
- Terminal: windsurf
- Version: 2.1.49
- Feedback ID: d8ef5c59-0e88-45b0-b968-623113f694ac
Errors
[{"error":"Error: ENOENT: no such file or directory, open '/Users/yaatehr-talvy/.claude/remote-settings.json'\n at openSync (unknown)\n at readSync (/$bunfs/root/claude:12:1441)\n at I2 (/$bunfs/root/claude:6070:113)\n at k5 (/$bunfs/root/claude:6072:226)\n at dZA (/$bunfs/root/claude:2058:49788)\n at aLR (/$bunfs/root/claude:2058:49951)\n at AY8 (/$bunfs/root/claude:6057:1234)\n at Z$T (/$bunfs/root/claude:6057:2112)\n at IB (/$bunfs/root/claude:6057:2039)\n at xT0 (/$bunfs/root/claude:6089:5361)","timestamp":"2026-02-21T23:56:10.265Z"},{"error":"Error: ENOENT: no such file or directory, open '/Users/yaatehr-talvy/.claude/remote-settings.json'\n at openSync (unknown)\n at readSync (/$bunfs/root/claude:12:1441)\n at I2 (/$bunfs/root/claude:6070:113)\n at k5 (/$bunfs/root/claude:6072:226)\n at dZA (/$bunfs/root/claude:2058:49788)\n at rZA (/$bunfs/root/claude:2058:53056)\n at jAB (/$bunfs/root/claude:2058:53961)\n at <anonymous> (/$bunfs/root/claude:11359:510)\n at <anonymous> (/$bunfs/root/claude:6105:1974)\n at forEach (native:1:11)","timestamp":"2026-02-21T23:56:10.280Z"},{"error":"Error: ENOENT: no such file or directory, open '/Users/yaatehr-talvy/.claude/remote-settings.json'\n at openSync (unknown)\n at readSync (/$bunfs/root/claude:12:1441)\n at I2 (/$bunfs/root/claude:6070:113)\n at k5 (/$bunfs/root/claude:6072:226)\n at dZA (/$bunfs/root/claude:2058:49788)\n at aLR (/$bunfs/root/claude:2058:49951)\n at B_ (/$bunfs/root/claude:6056:6721)\n at JPT (/$bunfs/root/claude:262:20610)\n at W4R (/$bunfs/root/claude:262:21105)\n at psB (/$bunfs/root/claude:5713:11993)","timestamp":"2026-02-21T23:56:10.280Z"},{"error":"Error: ENOENT: no such file or directory, open '/Users/yaatehr-talvy/.claude/remote-settings.json'\n at openSync (unknown)\n at readSync (/$bunfs/root/claude:12:1441)\n at I2 (/$bunfs/root/claude:6070:113)\n at k5 (/$bunfs/root/claude:6072:226)\n at dZA (/$bunfs/root/claude:2058:49788)\n at aLR (/$bunfs/root/claude:2058:49951)\n at B_ (/$bunfs/root/claude:6056:6721)\n at CPT (/$bunfs/root/claude:262:21215)\n at W4R (/$bunfs/root/claude:262:21177)\n at psB (/$bunfs/root/claude:5713:11993)","timestamp":"2026-02-21T23:56:10.281Z"},{"error":"Error: ENOENT: no such file or directory, open '/Users/yaatehr-talvy/.claude/remote-settings.json'\n at openSync (unknown)\n at readSync (/$bunfs/root/claude:12:1441)\n at I2 (/$bunfs/root/claude:6070:113)\n at k5 (/$bunfs/root/claude:6072:226)\n at dZA (/$bunfs/root/claude:2058:49788)\n at aLR (/$bunfs/root/claude:2058:49951)\n at B_ (/$bunfs/root/claude:6056:6721)\n at ggA (/$bunfs/root/claude:6026:36337)\n at mgA (/$bunfs/root/claude:6026:37070)\n at ZV8 (/$bunfs/root/claude:10971:4348)\n at async <anonymous> (/$bunfs/root/claude:11384:2312)","timestamp":"2026-02-21T23:56:10.286Z"},{"error":"Error: ENOENT: no such file or directory, open '/Users/yaatehr-talvy/.claude/remote-settings.json'\n at openSync (unknown)\n at readSync (/$bunfs/root/claude:12:1441)\n at I2 (/$bunfs/root/claude:6070:113)\n at k5 (/$bunfs/root/claude:6072:226)\n at dZA (/$bunfs/root/claude:2058:49788)\n at aLR (/$bunfs/root/claude:2058:49951)\n at AY8 (/$bunfs/root/claude:6057:1234)\n at Z$T (/$bunfs/root/claude:6057:2112)\n at IB (/$bunfs/root/claude:6057:2039)\n at yb (/$bunfs/root/claude:6064:4297)\n at async <anonymous> (/$bunfs/root/claude:1823:1266)\n at async <anonymous> (/$bunfs/root/claude:11384:2597)","timestamp":"2026-02-21T23:56:10.290Z"},{"error":"Error: ENOENT: no such file or directory, open '/Users/yaatehr-talvy/.claude/remote-settings.json'\n at openSync (unknown)\n at readSync (/$bunfs/root/claude:12:1441)\n at I2 (/$bunfs/root/claude:6070:113)\n at k5 (/$bunfs/root/claude:6072:226)\n at dZA (/$bunfs/root/claude:2058:49788)\n at aLR (/$bunfs/root/claude:2058:49951)\n at B_ (/$bunfs/root/claude:6056:6721)\n at Tp (/$bunfs/root/claude:6026…
Note: Content was truncated.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗