{"version":"2.1.128","anchor":"background-session-recovery-and-cleanup","canonical_anchor":"background-session-recovery-and-cleanup","heading":"Background Session Recovery and Cleanup","tier":null,"area":null,"scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.128\/e\/background-session-recovery-and-cleanup","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.128","markdown":"### Background Session Recovery and Cleanup\n\nClaude Code is better at recovering background sessions that stall, crash, or lose their supervisor connection.\n\n**Usage**\n\n`claude attach <id> claude respawn <id> claude respawn --all claude rm <id>` **Details** - `attach` now attempts to wake sessions that report `ENOJOB`, reconnects through a transient service when possible, and gives clearer messages when a session moved, exited, or cannot be reattached. - Startup stalls can now trigger an automatic worker restart before giving up. - `respawn` and `rm` now have explicit `--help` output. - `rm` keeps changed worktrees instead of blindly removing them when uncommitted changes are present. **Evidence** Background recovery messages (search for `\"Session not responding \u2014 restarting it\u2026\"`, `\"Usage: claude respawn <id>|--all\"`, and `\"Worktree has uncommitted changes \u2014 kept at\"`)"}