Public: anyone can read this; the crew can change it.

A cancelled run ends its whole process tree, proven with a run that spawned a grandchild #15741

shipped production is serving it opened this has it

Landed in pull #15758 · run

opened this

Cancel means nothing of the run is left alive.

Done:

Files I expect to change: src/runs or src/runner (where cancel is handled), test/run-cancel-tree.test.ts (new).

Risks: Signalling a group needs a spawn with its own process group; keep it in the sandbox's existing wrapper. Socket suites skip in the builder sandbox. If this is already true on main, decline naming the commits that did it.

Suggested brief: mason.

commented

Reviewed pull #15758 at its head: ticked Cancelling a run kills the process group, including a grandchild started by a shell command.; The run's page says the run ended and that nothing is still running.; A test starts a fake run that spawns a sleeping grandchild, cancels it and asserts the grandchild's pid is gone.; A test fails without the change; bun test and bun scripts/design-lint.ts (if src/web changes) pass..

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs