[Feature Request] Add graceful deferred exit option to wait for current turn completion
Feature Request
Add a "finish current turn, then exit" option (graceful/deferred exit)
Description:
Currently, "exit" terminates the CLI immediately, even if Claude is mid-task. The only ways to avoid losing in-progress work are:
- Wait for the turn to finish before exiting, or
- Use /background to detach and let it keep running, or
- Ctrl+C to hard-interrupt (which stops the turn early)
There's no way to say "let the current turn complete, then stop" without babysitting the session until it's done.
Requested behavior:
A way to queue an exit that takes effect only after the in-progress turn completes — e.g.:
- /exit --after-turn or a new command like /exit-when-done
- Or: typing "exit" or /exit while a turn is running shows a prompt/status like "Exit queued — will quit after this turn finishes" instead of quitting immediately, with an option to cancel the queued exit.
Why this matters:
For longer-running or multi-step tasks, I want to step away without either (a) manually watching for completion to type /exit at the right moment, or (b) risking a mid-task interruption by exiting too early. /background is a decent workaround for "let it keep running," but doesn't help when the intent is specifically to end the session cleanly once the current work is done.
- Feedback ID: 37a2a2e4-a482-4cf0-9b08-2e9c1c075242
Errors
[]