Skip to content

Commit cb7de72

Browse files
committed
Show working... animation within subagents that are running
1 parent 95aa78b commit cb7de72

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

cli/src/components/blocks/agent-branch-item.tsx

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import { MAX_COLLAPSED_LINES, truncateToLines } from '../../utils/strings'
88
import { BORDER_CHARS } from '../../utils/ui-constants'
99
import { Button } from '../button'
1010
import { CollapseButton } from '../collapse-button'
11+
import { ShimmerText } from '../shimmer-text'
1112

1213
interface AgentBranchItemProps {
1314
name: string
@@ -286,6 +287,20 @@ export const AgentBranchItem = memo((props: AgentBranchItemProps) => {
286287
{onToggle && <CollapseButton onClick={onToggle} />}
287288
</box>
288289
)}
290+
{isStreaming && (
291+
<text
292+
style={{
293+
paddingLeft: 1,
294+
paddingBottom: 0,
295+
}}
296+
>
297+
<ShimmerText
298+
text="working..."
299+
interval={160}
300+
primaryColor={theme.secondary}
301+
/>
302+
</text>
303+
)}
289304
</box>
290305
</box>
291306
)

0 commit comments

Comments
 (0)