The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 22, 18:15 UTC
fix(mobile): Live Activity stops shouting the running-agent count (#24329)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Julius Marminge committed
Oct 23, 2026 at 20:47 UTC
d14ace8233ad3cf7856b6b834824f888240d67a1
1 file changed
+18
-25
apps/mobile/src/widgets/AgentActivity.tsx
+18
-25
@@ -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";
2
import type { ComponentProps } from "react";
3
import {
4
accessibilityElement,
@@ -152,8 +152,7 @@ export function AgentActivity(
152
: environment.isStale
153
? "Out of date"
154
: `${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;
156
const summary = attentionSuffix || activeLabel;
157
158
// Any registered scheme variant routes back to this app; taps are delivered
@@ -182,7 +181,8 @@ export function AgentActivity(
181
return "clock.arrow.circlepath";
182
case "running":
183
default:
185
- return "arrow.triangle.2.circlepath";
184
+ // Matches the thread list's Working indicator.
185
+ return "circle.dashed";
186
}
187
};
188
@@ -331,28 +331,20 @@ export function AgentActivity(
331
</VStack>
332
),
333
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
339
modifiers={[
337
- frame({ width: 28, height: 28 }),
340
+ padding({ trailing: 2 }),
341
accessibilityElement("ignore"),
342
accessibilityLabel(agentsLabel),
343
...linkModifiers,
344
]}
345
>
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>
348
) : (
349
<Text
350
modifiers={[
@@ -367,13 +359,14 @@ export function AgentActivity(
359
? attentionRow.phase === "waiting_for_approval"
360
? "Approval"
361
: "Input"
370
- : activeLabel}
362
+ : failedRow
363
+ ? "Failed"
364
+ : activeLabel}
365
</Text>
366
),
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),
370
expandedLeading: (
371
<HStack spacing={5} alignment="center" modifiers={[padding({ leading: 4, vertical: 4 })]}>
372
{renderLogo(15, tint)}