fix(delegate-task): default run_in_background to false when orchestrator intent is detected (#2375)

This commit is contained in:
MoerAI
2026-03-10 16:57:47 +09:00
parent b7731f5520
commit 49b7e695ce
+5 -1
View File
@@ -123,7 +123,11 @@ export function createDelegateTask(options: DelegateTaskToolOptions): ToolDefini
})
if (args.run_in_background === undefined) {
throw new Error(`Invalid arguments: 'run_in_background' parameter is REQUIRED. Use run_in_background=false for task delegation, run_in_background=true only for parallel exploration.`)
if (args.category || args.subagent_type || args.session_id) {
args.run_in_background = false
} else {
throw new Error(`Invalid arguments: 'run_in_background' parameter is REQUIRED. Use run_in_background=false for task delegation, run_in_background=true only for parallel exploration.`)
}
}
if (typeof args.load_skills === "string") {
try {