A finished background subagent can resume and keep editing the tree
Symptom#
An old subagent edits files while a newer agent works on the same files.
Cause#
A finished background subagent can notify again and resume on its own when its own background work completes.
Fix#
Before launching an overlapping agent, check pgrep -fl for stray test or build runs. When the old agent's work is already reviewed, stop it with TaskStop so only one agent edits the tree.
Evidence#
Observed note, 2026-10-04.
Later case: A subagent that already delivered its report can stay listed as running (shown as 'waiting on its own background work' with a stale step label such as 'Reading memory-debug sites'), because it waits on a background job it started itself. It looks hung for 30+ minutes. Check that its report arrived and its jobs are gone, then stop it; stopping loses nothing.
Also found by searching
- finished background subagent keeps editing the tree
- subagent notifies again and resumes on its own
- two agents edit the same files after launching an overlapping agent