Skip to content

Commit bda7944

Browse files
committed
fix: add 'do not call this tool again' to subagent skip message
1 parent d456306 commit bda7944

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
@@ -25,7 +25,7 @@ export function createPruningTool(client: any, janitor: Janitor, config: PluginC
2525
// Skip pruning in subagent sessions, but guide the model to continue its work
2626
// TODO: remove this workaround when PR 4913 is merged (primary_tools config)
2727
if (await isSubagentSession(client, ctx.sessionID)) {
28-
return "Pruning is unavailable in subagent sessions. 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."
28+
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."
2929
}
3030

3131
const result = await janitor.runForTool(

0 commit comments

Comments
 (0)