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

@@ -88,13 +88,14 @@ const AgentRow = memo(({ agent, isLast, expanded }: AgentRowProps) => {
return (
<Box flexDirection="column">
{/* Main row: tree char + description + type + stats */}
{/* Main row: tree char + description + type + model + stats */}
<Box flexDirection="row">
<Text color={colors.subagent.treeChar}>{treeChar} </Text>
{getDotElement()}
<Text> {agent.description}</Text>
<Text dimColor> · {agent.type.toLowerCase()}</Text>
<Text color={colors.subagent.stats}> · {stats}</Text>
{agent.model && <Text dimColor> · {agent.model}</Text>}
<Text dimColor> · {stats}</Text>
</Box>
{/* Subagent URL */}

View File

@@ -31,6 +31,7 @@ export interface StaticSubagent {
totalTokens: number;
agentURL: string | null;
error?: string;
model?: string;
}
interface SubagentGroupStaticProps {
@@ -58,13 +59,14 @@ const AgentRow = memo(({ agent, isLast }: AgentRowProps) => {
return (
<Box flexDirection="column">
{/* Main row: tree char + description + type + stats */}
{/* Main row: tree char + description + type + model + stats */}
<Box flexDirection="row">
<Text color={colors.subagent.treeChar}>{treeChar} </Text>
<Text color={dotColor}></Text>
<Text> {agent.description}</Text>
<Text dimColor> · {agent.type.toLowerCase()}</Text>
<Text color={colors.subagent.stats}> · {stats}</Text>
{agent.model && <Text dimColor> · {agent.model}</Text>}
<Text dimColor> · {stats}</Text>
</Box>
{/* Subagent URL */}

View File

@@ -120,7 +120,6 @@ export const colors = {
completed: brandColors.statusSuccess,
error: brandColors.statusError,
treeChar: brandColors.textDisabled,
stats: brandColors.textSecondary,
hint: brandColors.textDisabled,
},