[Bug] Shell enters broken state when CWD is deleted by rm -rf
Resolved 💬 5 comments Opened Mar 21, 2026 by vika2603 Closed Apr 21, 2026
Bug Description
Shell enters broken state ("Not logged in") after rm -rf deletes the current working directory. Steps: 1) Run a chained Bash command that cd's into a subdirectory, e.g. cd test-dir && git init 2) Later run rm -rf
test-dir to delete that directory 3) Shell CWD now points to a deleted path 4) All subsequent operations show "Not logged in - Please run /login". Expected: Shell should recover gracefully or show a meaningful error. Actual:
Session enters broken state with misleading "Not logged in" messages. Even /feedback itself fails with the same error.
Environment Info
- Platform: darwin
- Terminal: ghostty
- Version: 2.1.81
- Feedback ID: 785db30e-977b-48e8-af50-f95708d3d6af
Errors
[]This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗