Skip to content

Commit d14ace8

Browse files
fix(mobile): Live Activity stops shouting the running-agent count (#24329)
Co-authored-by: Claude Opus 5.5 <[email protected]>
1 parent 3f3a1bf commit d14ace8

1 file changed

Lines changed: 18 additions & 25 deletions

File tree

‎apps/mobile/src/widgets/AgentActivity.tsx‎

Lines changed: 18 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Circle, HStack, Image, Spacer, Text, VStack, ZStack } from "@expo/ui/swift-ui";
1+
import { HStack, Image, Spacer, Text, VStack, ZStack } from "@expo/ui/swift-ui";
22
import type { ComponentProps } from "react";
33
import {
44
accessibilityElement,
@@ -152,8 +152,7 @@ export function AgentActivity(
152152
: environment.isStale
153153
? "Out of date"
154154
: `${props.activeCount} active`;
155-
const showCompactCount = !attentionRow && !allDone && !environment.isStale;
156-
const compactCountLabel = props.activeCount > 99 ? "99+" : `${props.activeCount}`;
155+
const showCompactGlyph = !attentionRow && !failedRow && !allDone && !environment.isStale;
157156
const summary = attentionSuffix || activeLabel;
158157

159158
// Any registered scheme variant routes back to this app; taps are delivered
@@ -182,7 +181,8 @@ export function AgentActivity(
182181
return "clock.arrow.circlepath";
183182
case "running":
184183
default:
185-
return "arrow.triangle.2.circlepath";
184+
// Matches the thread list's Working indicator.
185+
return "circle.dashed";
186186
}
187187
};
188188

@@ -331,28 +331,20 @@ export function AgentActivity(
331331
</VStack>
332332
),
333333
compactLeading: renderLogo(14, tint, linkModifiers),
334-
compactTrailing: showCompactCount ? (
335-
<ZStack
334+
// While agents are only working, stay quiet: the thread list's Working
335+
// glyph marks the activity without a count. Labels appear only for
336+
// attention or outcomes.
337+
compactTrailing: showCompactGlyph ? (
338+
<HStack
336339
modifiers={[
337-
frame({ width: 28, height: 28 }),
340+
padding({ trailing: 2 }),
338341
accessibilityElement("ignore"),
339342
accessibilityLabel(agentsLabel),
340343
...linkModifiers,
341344
]}
342345
>
343-
<Circle modifiers={[foregroundStyle(tint)]} />
344-
<Text
345-
modifiers={[
346-
font({ weight: "bold", size: 14 }),
347-
foregroundStyle("#000000"),
348-
lineLimit(1),
349-
minimumScaleFactor(0.75),
350-
frame({ width: 24, height: 28 }),
351-
]}
352-
>
353-
{compactCountLabel}
354-
</Text>
355-
</ZStack>
346+
{renderGlyph(phaseSymbol(heroRow?.phase ?? "running"), 14, tint)}
347+
</HStack>
356348
) : (
357349
<Text
358350
modifiers={[
@@ -367,13 +359,14 @@ export function AgentActivity(
367359
? attentionRow.phase === "waiting_for_approval"
368360
? "Approval"
369361
: "Input"
370-
: activeLabel}
362+
: failedRow
363+
? "Failed"
364+
: activeLabel}
371365
</Text>
372366
),
373-
minimal:
374-
(attentionRow || failedRow || allDone) && heroRow
375-
? renderGlyph(phaseSymbol(heroRow.phase), 13, phaseTint(heroRow.phase), linkModifiers)
376-
: renderLogo(11, tint, linkModifiers),
367+
minimal: heroRow
368+
? renderGlyph(phaseSymbol(heroRow.phase), 13, phaseTint(heroRow.phase), linkModifiers)
369+
: renderLogo(11, tint, linkModifiers),
377370
expandedLeading: (
378371
<HStack spacing={5} alignment="center" modifiers={[padding({ leading: 4, vertical: 4 })]}>
379372
{renderLogo(15, tint)}

0 commit comments

Comments
 (0)