chore: Use primary agent's model as fallback for subagents (#304)

This commit is contained in:
Devansh Jain
2025-12-18 15:32:54 -08:00
committed by GitHub
parent 26f2e5d305
commit 2a1f117502
7 changed files with 89 additions and 5 deletions

View File

@@ -108,6 +108,7 @@ export function createSubagentGroupItem(
totalTokens: subagent.totalTokens,
agentURL: subagent.agentURL,
error: subagent.error,
model: subagent.model,
});
}
}

View File

@@ -26,6 +26,7 @@ export interface SubagentState {
totalTokens: number;
durationMs: number;
error?: string;
model?: string;
startTime: number;
toolCallId?: string; // Links this subagent to its parent Task tool call
}