You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
ElsewhereArea: what it touches
Internal ChangesKind: in v2.1.275,
Bug FixesSection of the release
What
When a session is being torn down, any pending human-facing request, such as an AskUserQuestion prompt or a permission prompt, is now forcibly rejected with the error "the session is being torn down", instead of hanging indefinitely or being silently dropped.
New internal state (leftStanding, leaveQuestionsStanding(), questionsFrozen(), questionsLeftStanding()) tracks this, and new dialog requests are cancelled immediately once a process is shutting down.
Replies meant for a process that is shutting down are now counted separately (repliesLeftStanding) from replies meant for the process taking over (repliesLeftForNextProcess).
Why
This prevents a session from getting stuck waiting on a user response that will never arrive once shutdown has started, replacing an indefinite hang with a clear error.