From 593890c8db03ad96f7284b46ce132eab6ab2dd68 Mon Sep 17 00:00:00 2001 From: Daniel Smolsky Date: Wed, 3 Dec 2025 15:38:03 -0500 Subject: [PATCH] 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. --- lib/pruning-tool.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pruning-tool.ts b/lib/pruning-tool.ts index b75901da..957361de 100644 --- a/lib/pruning-tool.ts +++ b/lib/pruning-tool.ts @@ -45,7 +45,7 @@ export function createPruningTool( const sessionId = toolCtx.sessionID if (await isSubagentSession(client, sessionId)) { - return "Pruning is unavailable in subagent sessions. Do not call this tool again. Continue with your current task." + 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." } if (!args.ids || args.ids.length === 0) {