feat(delegate-task): preserve raw subagent_type across metadata

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
YeonGyu-Kim
2026-04-20 14:50:40 +09:00
parent 8a2a11b210
commit f486df71ae
7 changed files with 8 additions and 0 deletions
@@ -125,6 +125,7 @@ export async function executeBackgroundTask(
prompt: args.prompt,
agent: task.agent,
category: args.category,
...(args.requested_subagent_type !== undefined ? { requested_subagent_type: args.requested_subagent_type } : {}),
load_skills: args.load_skills,
description: args.description,
run_in_background: args.run_in_background,