You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
SessionsArea: what it touches
ImprovementsKind: in v2.1.327,
ImprovementsSection of the release
What
When a remote session stops, Claude Code turns the reason it was given into an exit code, the number a program reports when it finishes. The reason session_ended is now handled the same way as tool_host_ended and idle_released, with exit code 0, which means a normal, successful exit.
Why
Scripts that start remote or headless sessions see a clean exit in this case rather than a failure.