fix(subagent): discourage duplicate delegated work

This commit is contained in:
chengyongru authored and chengyongru committed 2026-11-12 11:47:53 +08:00
1 parent 8607b6445c
commit 9f7ae6fb7b
3 files changed
+8 -1

No files matched your search

+2 -1
View File
@@ -631,7 +631,8 @@ class SubagentManager:
except SubagentControlError as exc:
return ToolResult.error(f"Error: {exc}")
status = record.status
return f"Subagent [{status.label}] started (id: {status.task_id}). I'll notify you when it completes."
return (f"Subagent [{status.label}] started (id: {status.task_id}). "
"I'll notify you when it completes. Don't duplicate its work.")
async def run_inline(
self,