Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/pruning-tool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down