tractor/ai/prompt-io/opencode/20260824T225356Z_2f86dd1a_p...

540 B

Implement the approved PR #481 review refactor in _try_cancel_then_kill() without changing debugger behavior.

git diff HEAD~1..HEAD -- tractor/runtime/_supervise.py

Compute the child/tree debugger predicate once, reuse it in the broader hard-kill protection predicate, and pass it directly to debug.maybe_wait_for_debugger().

Run focused debugger/cancellation coverage and lint after the edit.