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 24, 07:45 UTC
fix(mobile): restore assistant message bottom padding (#10491)
Julius Marminge committed
Sep 7, 2026 at 03:01 UTC
b7175371d9f32f3b759a922cdbf727a3214c99a2
1 file changed
+9
-7
apps/mobile/src/features/threads/ThreadFeed.tsx
+9
-7
@@ -2260,11 +2260,18 @@ export const ThreadFeed = memo(function ThreadFeed(props: ThreadFeedProps) {
2260
);
2261
const markdownStyles = useMarkdownStyles(onMarkdownLinkPress, renderMarkdownImage);
2262
const reviewCommentColors = useReviewCommentColors();
2263
+ const unsettledTurnId =
2264
+ props.latestTurn &&
2265
+ (props.latestTurn.completedAt === null || props.latestTurn.state === "running")
2266
+ ? props.latestTurn.turnId
2267
+ : null;
2268
// LegendList does not invalidate visible rows when only the renderItem closure changes.
2264
- // Keep row-local interaction props in extraData so disclosures and copy feedback repaint.
2269
+ // Include turn completion so unchanged message rows reveal their footer and spacing
2270
+ // even when the final message update arrives before the turn settles.
2271
const listAppearanceData = useMemo(
2272
() => ({
2273
dispatchingMessageId: props.dispatchingMessageId,
2274
+ unsettledTurnId,
2275
copiedRowId,
2276
expandedWorkRows,
2277
workRowSizing,
@@ -2277,6 +2284,7 @@ export const ThreadFeed = memo(function ThreadFeed(props: ThreadFeedProps) {
2284
}),
2285
[
2286
props.dispatchingMessageId,
2287
+ unsettledTurnId,
2288
copiedRowId,
2289
expandedWorkRows,
2290
workRowSizing,
@@ -2472,12 +2480,6 @@ export const ThreadFeed = memo(function ThreadFeed(props: ThreadFeedProps) {
2480
}
2481
return new Set(terminalIdsByTurn.values());
2482
}, [props.feed]);
2475
- const unsettledTurnId =
2476
- props.latestTurn &&
2477
- (props.latestTurn.completedAt === null || props.latestTurn.state === "running")
2478
- ? props.latestTurn.turnId
2479
- : null;
2480
-
2483
useEffect(() => {
2484
const previous = previousLatestTurnRef.current;
2485
previousLatestTurnRef.current = props.latestTurn;