[Bug] Claude Code worktrees lack lifecycle management, causing excessive disk space accumulation
Resolved 💬 2 comments Opened May 14, 2026 by thewesjohnson Closed May 14, 2026
Bug Description
Claude Code worktrees have no built-in lifecycle management. Lost ~30gb disk space in two consecutive sessions. Can't stop it without a chron job or plist
Environment Info
- Platform: darwin
- Terminal: Apple_Terminal
- Version: 2.1.126
- Feedback ID: 174f87f4-3d5f-4cef-9401-347384575967
Errors
[{"error":"Error: console.error: [bun] Warning: ws.WebSocket 'unexpected-response' event is not implemented in bun\n at K (/$bunfs/root/src/entrypoints/cli.js:545:12024)\n at emitWarning (ws:43:42)\n at #onOrOnce (ws:170:18)\n at SY6 (/$bunfs/root/src/entrypoints/cli.js:7607:4503)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-14T02:56:48.803Z"}]This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗