Skip to content

Commit 4fabc40

Browse files
committed
fix: restore full subagent prune rejection message
Restore the helpful guidance that was shortened in PR #61, telling subagents to continue with their work or provide final summary.
1 parent 377919b commit 4fabc40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/pruning-tool.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export function createPruningTool(
4545
const sessionId = toolCtx.sessionID
4646

4747
if (await isSubagentSession(client, sessionId)) {
48-
return "Pruning is unavailable in subagent sessions. Do not call this tool again. Continue with your current task."
48+
return "Pruning is unavailable in subagent sessions. Do not call this tool again. Continue with your current task - if you were in the middle of work, proceed with your next step. If you had just finished, provide your final summary/findings to return to the main agent."
4949
}
5050

5151
if (!args.ids || args.ids.length === 0) {

0 commit comments

Comments
 (0)