feat(subagents): add dismiss tool for stale running entries#43
Open
interpreteragent wants to merge 1 commit into
Open
feat(subagents): add dismiss tool for stale running entries#43interpreteragent wants to merge 1 commit into
interpreteragent wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a
subagent_dismisstool for cleaning up stale subagent status entries from the parent session.This covers cases where the child pane/session is killed outside the normal lifecycle, or a child gets stuck in a non-standard waiting/stalled state and never produces the normal sentinel/result. Today the widget can keep showing that child forever, with no parent-side way to forget it.
The new tool:
runningSubagentssubagent_resultis emitted for the dismissed entryclosePane: trueI also added
subagent_dismissto thespawning: falsedenied tool set so child agents do not get parent-side subagent management tools.Example
Test plan
bun buildforpi-extension/subagents/index.tsandpi-extension/subagents/subagent-done.ts.bun buildfortest/test.ts.No package-lock changes included.