Skip to content

Preserve process cancellation after leader exit - #611

Merged
SaladDay merged 1 commit into
aos/cutoverfrom
aos/preserve-process-cancellation-after-leader-exit
Oct 9, 2026
Merged

SaladDay merged 1 commit into
aos/cutoverfrom
aos/preserve-process-cancellation-after-leader-exit

Conversation

@SaladDay

@SaladDay SaladDay commented Oct 9, 2026 •

Copy link
Copy Markdown
Collaborator

When shim loss or an unrecoverable stdin failure selects cancellation, a concurrent leader exit could suppress the remote Cancel request and leave descendants running. Preserve the already-selected cancellation; an exit observed before the loss still leaves normal Session background work running.

Validation: deterministic regressions fail on the old code for both cancellation callers and pass after the fix, with exit-first and live-leader controls; package tests, focused race tests repeated 50 times, build/vet and repository hygiene pass. This fixes cancellation delivery only; remote scope enforcement and public cancellation settlement are separate work.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

@SaladDay
SaladDay merged commit 1d6dc8f into aos/cutover Oct 9, 2026
1 check passed
@SaladDay
SaladDay deleted the aos/preserve-process-cancellation-after-leader-exit branch October 9, 2026 07:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant