Quitting no longer hangs; Claude Code force-kills itself and also handles hangup signals.
What's wrong with this entry?
If the normal exit fails, Claude Code now kills its own process outright rather than sitting there. Shutdown also handles SIGHUP alongside SIGINT and SIGTERM, the UI teardown resolves or rejects the exit promise so anything waiting on it is released, and pending events are flushed before the internal event channel closes.
process.kill(process.pid, "SIGKILL")
Strings lifted out of the shipped bundle, so the claim above can be checked against them.
Related
Other releases about the same thing. Found by shared names or similar wording; neither means one caused the other.
-
v2.1.232
Shutdown waits up to 1000ms for pending work to flush
Both mention shutdown
-
v2.1.238
Pending writes get a chance to finish before exit
Both mention shutdown
-
v2.1.247
Metrics opt-out check no longer triggers a second sign-in refresh
Both mention shutdown