[FEATURE] Pre-restart message instead of just dying
Preflight Checklist
- [x] I have searched existing requests and this feature hasn't been requested yet
- [x] This is a single feature request (not multiple features)
Problem Statement
The restart pattern matches Claude Code's auto-update mechanism — when a new binary is deployed, running sessions detect the version mismatch and restart to pick up the new version. I verified that this was not caused by:
- OOMs
- Disk out of space
- System reboot
- Kernel issues
Specifically, an auto-update to Claude Code 2.1.78 killed all sessions simultaneously. This appears to be expected behavior when a new version is deployed via RPM. I expect that my sessions should be auto-resumed with
--resume when that thing happens.
Getting dumped out of multiple active sessions with no explanation and no "run claude --resume <session> to pick up where you left off" message is a terrible experience — especially when in the middle of work across several terminals.
Proposed Solution
So my feature asks: please add the following:
- Pre-restart message: "Restarting to pick up Claude Code v2.1.78. Your session will auto-resume." (instead of just dying)
- Auto-resume actually working (or at minimum, printing the resume command before exiting)
- Session ID visible so I don't have to hunt for it
Alternative Solutions
_No response_
Priority
High - Significant impact on productivity
Feature Category
CLI commands and flags
Use Case Example
_No response_
Additional Context
_No response_
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗