fix(delegate-task): default run_in_background to false when orchestrator intent is detected (#2375)
This commit is contained in:
@@ -123,7 +123,11 @@ export function createDelegateTask(options: DelegateTaskToolOptions): ToolDefini
|
|||||||
})
|
})
|
||||||
|
|
||||||
if (args.run_in_background === undefined) {
|
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") {
|
if (typeof args.load_skills === "string") {
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user