The best way to control Claude Code, Codex and more from any computer or phone
fix(clients): scroll truncated command output notice with logs (#34011)
Yash Singh committed
Nov 10, 2026 at 12:33 UTC
283fa1f1cd1f15f9e2fa3fffe49c4ece2dab8214
2 files changed
+24
-28
apps/mobile/src/features/threads/thread-command-output.tsx
+3
-3
@@ -53,9 +53,6 @@ export function ThreadCommandOutput(props: {
53
}
54
return (
55
<View className="pt-1.5">
56
- {data?.output.truncated ? (
57
- <Text className="pb-0.5 text-3xs text-foreground-subtle">Earlier output not shown</Text>
58
- ) : null}
56
<ScrollView
57
ref={scrollRef}
58
nestedScrollEnabled
@@ -73,6 +70,9 @@ export function ThreadCommandOutput(props: {
70
if (followRef.current) scrollRef.current?.scrollToEnd({ animated: false });
71
}}
72
>
73
+ {data?.output.truncated ? (
74
+ <Text className="pb-0.5 text-3xs text-foreground-subtle">Earlier output not shown</Text>
75
+ ) : null}
76
<Text selectable className="font-mono text-2xs leading-normal text-foreground-muted">
77
{spans.map((span, index) =>
78
span.style === null ? (
apps/web/src/components/chat/CommandOutputPanel.tsx
+21
-25
@@ -54,31 +54,27 @@ export function CommandOutputPanel(props: {
54
// Parse after all hooks to preserve the text/theme compiler cache.
55
const spans = terminalOutputSpans(text, TERMINAL_PALETTES[resolvedTheme]);
56
return (
57
- <div>
58
- {data?.output.truncated ? (
59
- <div className="text-muted-foreground italic">Earlier output not shown</div>
60
- ) : null}
61
- <div
62
- ref={scrollRef}
63
- onScroll={(event) => {
64
- const element = event.currentTarget;
65
- followRef.current =
66
- element.scrollHeight - element.scrollTop - element.clientHeight <= FOLLOW_SLACK_PX;
67
- }}
68
- className="max-h-80 overflow-auto text-muted-foreground"
69
- >
70
- {spans.map((span, index) =>
71
- span.style === null ? (
72
- span.text
73
- ) : (
74
- // Spans never reorder and are rebuilt on each update.
75
- // oxlint-disable-next-line react/no-array-index-key
76
- <span key={index} style={span.style}>
77
- {span.text}
78
- </span>
79
- ),
80
- )}
81
- </div>
57
+ <div
58
+ ref={scrollRef}
59
+ onScroll={(event) => {
60
+ const element = event.currentTarget;
61
+ followRef.current =
62
+ element.scrollHeight - element.scrollTop - element.clientHeight <= FOLLOW_SLACK_PX;
63
+ }}
64
+ className="max-h-80 overflow-auto text-muted-foreground"
65
+ >
66
+ {data?.output.truncated ? <div className="italic">Earlier output not shown</div> : null}
67
+ {spans.map((span, index) =>
68
+ span.style === null ? (
69
+ span.text
70
+ ) : (
71
+ // Spans never reorder and are rebuilt on each update.
72
+ // oxlint-disable-next-line react/no-array-index-key
73
+ <span key={index} style={span.style}>
74
+ {span.text}
75
+ </span>
76
+ ),
77
+ )}
78
</div>
79
);
80
}