[Bug] Session state lost when working directory is deleted while active
Resolved 💬 3 comments Opened Feb 14, 2026 by ryanlyn Closed Feb 17, 2026
Bug Description
Sessions are not recoverable if claude deletes a folder while having said folder as the working directory. Reproducible via prompt:
create an empty folder called ~/dev/test. cd into ~/dev/test. delete ~/dev/test while you're in ~/dev/test. try to use the bash tool to create ~/dev/test again
Environment Info
- Platform: darwin
- Terminal: ghostty
- Version: 2.1.42
- Feedback ID: f2ac67ab-670f-4b16-85d0-b770622b859a
Errors
[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/ryan/.local/share/claude/versions/2.1.42 (expected in multi-process scenarios)\n at ZwR (/$bunfs/root/claude:3483:2098)\n at ESA (/$bunfs/root/claude:3483:1209)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-14T06:48:16.895Z"},{"error":"Error: Plugin pyright-lsp has an invalid manifest file at /Users/ryan/.claude/plugins/cache/claude-plugins-official/pyright-lsp/1.0.0/.claude-plugin/plugin.json.\n\nValidation errors: : Unrecognized keys: \"source\", \"category\", \"strict\"\n\nPlease fix the manifest or remove it. The plugin cannot load with an invalid manifest.\n at rQR (/$bunfs/root/claude:1514:10353)\n at Iv_ (/$bunfs/root/claude:1522:379)\n at xf7 (/$bunfs/root/claude:1522:7631)\n at async Sf7 (/$bunfs/root/claude:1522:5875)\n at async <anonymous> (/$bunfs/root/claude:1522:14936)\n at async <anonymous> (/$bunfs/root/claude:1462:390)\n at async <anonymous> (/$bunfs/root/claude:2082:1535)\n at async <anonymous> (/$bunfs/root/claude:7467:2571)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-14T06:48:16.932Z"}]This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗