fix(athena): guide callers to background_wait when athena-junior is force-backgrounded

When athena-junior is force-backgrounded (caller passed run_in_background=false),
the response now instructs the caller to use background_wait instead of
background_output, preventing repeated polling loops.
This commit is contained in:
ismeth
2026-03-03 18:17:24 +01:00
committed by YeonGyu-Kim
parent 513a5c90b1
commit 4d3cbda8ce
2 changed files with 12 additions and 4 deletions
+2 -1
View File
@@ -263,7 +263,8 @@ export function createDelegateTask(options: DelegateTaskToolOptions): ToolDefini
})
if (effectiveRunInBackground) {
return executeBackgroundTask(args, ctx, options, parentContext, agentToUse, categoryModel, systemContent, fallbackChain)
const wasForced = isAthenaJunior && !runInBackground
return executeBackgroundTask(args, ctx, options, parentContext, agentToUse, categoryModel, systemContent, fallbackChain, wasForced)
}
return executeSyncTask(args, ctx, options, parentContext, agentToUse, categoryModel, systemContent, modelInfo, fallbackChain)