chore: Use primary agent's model as fallback for subagents (#304)
This commit is contained in:
@@ -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 */}
|
||||
|
||||
@@ -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 */}
|
||||
|
||||
@@ -120,7 +120,6 @@ export const colors = {
|
||||
completed: brandColors.statusSuccess,
|
||||
error: brandColors.statusError,
|
||||
treeChar: brandColors.textDisabled,
|
||||
stats: brandColors.textSecondary,
|
||||
hint: brandColors.textDisabled,
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user