When deacon patrol molecules completed, their child step wisps were not being closed automatically. This caused orphan wisp accumulation - 143+ orphaned wisps were found in one cleanup session. The fix ensures that when a molecule completes (via gt done or gt mol step done), all descendant step issues are recursively closed before the molecule itself. Changes: - done.go: Added closeDescendants() call in updateAgentStateOnDone before closing the attached molecule - molecule_step.go: Added closeDescendants() call in handleMoleculeComplete for all roles (not just polecats) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
30 KiB
30 KiB