Skip to content

Commit 9ebf1c5

Browse files
authored
Merge pull request #63 from Tarquinen/fix/subagent-prune-message
fix: restore full subagent prune rejection message
2 parents 377919b + 593890c commit 9ebf1c5

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)