We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a2cdc79 commit 330d0dfCopy full SHA for 330d0df
1 file changed
cli/src/components/message-with-agents.tsx
@@ -49,6 +49,11 @@ const AgentChildrenGrid = memo(
49
[depth],
50
)
51
52
+ const subGroups = useMemo(
53
+ () => splitByAgentSize(agentChildren, (m) => m.agent?.agentType ?? ''),
54
+ [agentChildren],
55
+ )
56
+
57
if (agentChildren.length === 0) return null
58
59
if (depth >= MAX_AGENT_DEPTH) {
@@ -70,11 +75,6 @@ const AgentChildrenGrid = memo(
70
75
<text fg={theme?.error}>Error rendering agent children</text>
71
76
72
77
73
- const subGroups = useMemo(
74
- () => splitByAgentSize(agentChildren, (m) => m.agent?.agentType ?? ''),
- [agentChildren],
- )
-
78
return (
79
<ErrorBoundary fallback={errorFallback} componentName="AgentChildrenGrid">
80
<box style={{ flexDirection: 'column', gap: 0, width: '100%' }}>
0 commit comments