The best way to control Claude Code, Codex and more from any computer or phone
fix(mobile): the thread feed re-wraps once when an iOS column resizes (#33459)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Julius Marminge committed
Nov 9, 2026 at 10:48 UTC
d7c52f9f86a63f023f5b84b182ffcd497bd7cd2c
4 files changed
+94
-10
apps/mobile/src/features/threads/ThreadFeed.tsx
+8
-7
@@ -3649,13 +3649,14 @@ export const ThreadFeed = memo(function ThreadFeed(props: ThreadFeedProps) {
3649
3650
return (
3651
<PresentationSource identifier={fileShareSourceIdentifier} style={{ flex: 1 }}>
3652
- {/* While the pane tracks a sliding sidebar, rows keep its settled width and re-wrap once. */}
3653
- <View
3654
- className="flex-1"
3655
- style={settledPaneWidth !== null ? { width: settledPaneWidth } : undefined}
3656
- onLayout={handleViewportLayout}
3657
- >
3658
- <View className="flex-1">
3652
+ <View className="flex-1" onLayout={handleViewportLayout}>
3653
+ {/* In a split, rows only re-wrap in the render that hands the list its new width. A native
3654
+ column resize would re-wrap them first, and the list would place the taller or shorter
3655
+ rows at their old offsets until their measurements came back. */}
3656
+ <View
3657
+ className="flex-1"
3658
+ style={splitLayout && viewportWidth > 0 ? { width: viewportWidth } : undefined}
3659
+ >
3660
{/* oxlint-disable-next-line t3code/require-registered-list-scroll -- ThreadFeedScrollView is passed through the iOS-only spread below; the prop rejects undefined. */}
3661
<KeyboardAwareLegendList
3662
ref={attachList}
patches/@legendapp__list@3.7.2.patch
new
+80
@@ -0,0 +1,80 @@
1
+diff --git a/react-native.js b/react-native.js
2
+index 4af685dfb961eb0c8a4bf1ae9132c9304cf4fa4d..df4ead7ae4f03cd0fbcd99a3df7d95e15b1852b1 100644
3
+--- a/react-native.js
4
++++ b/react-native.js
5
+@@ -1795,7 +1795,35 @@ function resolvePendingNativeMVCPAdjust(ctx, newScroll) {
6
+ }
7
+ return false;
8
+ }
9
++// T3 patch: while following the end, a size-only change keeps the end in the same pass that
10
++// repositions the items. Native end following otherwise runs a frame later, after MVCP has
11
++// anchored the top row, so the feed visibly jumps twice.
12
++function shouldHoldEndOnSizeChange(ctx, dataChanged) {
13
++ const state = ctx.state;
14
++ return !dataChanged && !!state.props.maintainScrollAtEnd && !!state.didFinishInitialScroll && !state.endFollowInterrupted && !state.visibleContentAnchor && state.scrollingTo === void 0 && !state.isDragging && state.userScrollContentSize === void 0 && !!peek$(ctx, "isFollowingEnd");
15
++}
16
+ function prepareMVCP(ctx, dataChanged, adjustmentSource) {
17
++ const restore = prepareDefaultMVCP(ctx, dataChanged, adjustmentSource);
18
++ if (!shouldHoldEndOnSizeChange(ctx, dataChanged)) {
19
++ return restore;
20
++ }
21
++ return () => {
22
++ if (!shouldHoldEndOnSizeChange(ctx, dataChanged)) {
23
++ restore == null ? void 0 : restore();
24
++ return;
25
++ }
26
++ // Content that shrinks under an offset past its new end pulls the native offset back by itself.
27
++ const endOffset = getScrollRangeEnd(ctx);
28
++ if (ctx.state.scroll > endOffset) {
29
++ ctx.state.scroll = endOffset;
30
++ }
31
++ const positionDiff = endOffset - ctx.state.scroll;
32
++ if (Math.abs(positionDiff) > MVCP_POSITION_EPSILON) {
33
++ requestAdjust(ctx, positionDiff, adjustmentSource);
34
++ }
35
++ };
36
++}
37
++function prepareDefaultMVCP(ctx, dataChanged, adjustmentSource) {
38
+ var _a3, _b, _c;
39
+ const state = ctx.state;
40
+ const { idsInView, positions, props } = state;
41
+diff --git a/react-native.mjs b/react-native.mjs
42
+index 9ebfddc183a9b202d35c990a387c9b628feeb185..c414a49e866ecab1393645101fb67d55530a7d00 100644
43
+--- a/react-native.mjs
44
++++ b/react-native.mjs
45
+@@ -1774,7 +1774,35 @@ function resolvePendingNativeMVCPAdjust(ctx, newScroll) {
46
+ }
47
+ return false;
48
+ }
49
++// T3 patch: while following the end, a size-only change keeps the end in the same pass that
50
++// repositions the items. Native end following otherwise runs a frame later, after MVCP has
51
++// anchored the top row, so the feed visibly jumps twice.
52
++function shouldHoldEndOnSizeChange(ctx, dataChanged) {
53
++ const state = ctx.state;
54
++ return !dataChanged && !!state.props.maintainScrollAtEnd && !!state.didFinishInitialScroll && !state.endFollowInterrupted && !state.visibleContentAnchor && state.scrollingTo === void 0 && !state.isDragging && state.userScrollContentSize === void 0 && !!peek$(ctx, "isFollowingEnd");
55
++}
56
+ function prepareMVCP(ctx, dataChanged, adjustmentSource) {
57
++ const restore = prepareDefaultMVCP(ctx, dataChanged, adjustmentSource);
58
++ if (!shouldHoldEndOnSizeChange(ctx, dataChanged)) {
59
++ return restore;
60
++ }
61
++ return () => {
62
++ if (!shouldHoldEndOnSizeChange(ctx, dataChanged)) {
63
++ restore == null ? void 0 : restore();
64
++ return;
65
++ }
66
++ // Content that shrinks under an offset past its new end pulls the native offset back by itself.
67
++ const endOffset = getScrollRangeEnd(ctx);
68
++ if (ctx.state.scroll > endOffset) {
69
++ ctx.state.scroll = endOffset;
70
++ }
71
++ const positionDiff = endOffset - ctx.state.scroll;
72
++ if (Math.abs(positionDiff) > MVCP_POSITION_EPSILON) {
73
++ requestAdjust(ctx, positionDiff, adjustmentSource);
74
++ }
75
++ };
76
++}
77
++function prepareDefaultMVCP(ctx, dataChanged, adjustmentSource) {
78
+ var _a3, _b, _c;
79
+ const state = ctx.state;
80
+ const { idsInView, positions, props } = state;
pnpm-lock.yaml
+4
-3
@@ -359,6 +359,7 @@ patchedDependencies:
359
'@clerk/expo-native-components@0.4.4': 7a808b92da8460750b85818552e13be3fb73d111691c7db76965970351e124e4
360
'@effect/vitest@4.1.2': 299510b71c36537a832a67e9d160a5f112a5f326a29e95c41cb45fc8234e47c7
361
'@ff-labs/fff-node@0.11.0': cc71fcec015f4d39bc96ae2e2bf6b0ca678124c722c66a7841efce9d34b5983c
362
+ '@legendapp/list@3.7.2': 3c68607b8bb7a531873bcbe0b197d163ef1fdb4d4cf52a4ddf9d2b3804671658
363
'@muse-code/sdk@1.4.6': 7b495b607fc5d76b444c7c4d58821e839726a30e6f3c53564f0d59f2d5b42101
364
'@pierre/diffs@1.6.1': 322ac5f5db8b5715189c010802047f8235c3a45d8ed5ca0ba60fac266e2eba34
365
'@react-native-ai/apple@0.12.0': 2d09870c2848d185cb05b53ed823a46e12dba519324d8dd8e584e28731990f9d
@@ -542,7 +543,7 @@ importers:
543
version: 58.0.27(@babel/core@7.29.7(supports-color@8.1.1))(expo@58.0.23)(react-dom@19.3.0(react@19.3.0))(react-native-worklets@0.13.1(@babel/core@7.29.7(supports-color@8.1.1))(@react-native/metro-config@0.88.1(@babel/core@7.29.7(supports-color@8.1.1))(bufferutil@4.1.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(react-native@0.88.1(@babel/core@7.29.7(supports-color@8.1.1))(@react-native/metro-config@0.88.1(@babel/core@7.29.7(supports-color@8.1.1))(bufferutil@4.1.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(@types/react@19.3.0)(bufferutil@4.1.0)(react@19.3.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(react@19.3.0)(supports-color@8.1.1))(react-native@0.88.1(@babel/core@7.29.7(supports-color@8.1.1))(@react-native/metro-config@0.88.1(@babel/core@7.29.7(supports-color@8.1.1))(bufferutil@4.1.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(@types/react@19.3.0)(bufferutil@4.1.0)(react@19.3.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(react@19.3.0)
544
'@legendapp/list':
545
specifier: 3.7.2
545
- version: 3.7.2(react-dom@19.3.0(react@19.3.0))(react-native@0.88.1(@babel/core@7.29.7(supports-color@8.1.1))(@react-native/metro-config@0.88.1(@babel/core@7.29.7(supports-color@8.1.1))(bufferutil@4.1.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(@types/react@19.3.0)(bufferutil@4.1.0)(react@19.3.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(react@19.3.0)
546
+ version: 3.7.2(patch_hash=3c68607b8bb7a531873bcbe0b197d163ef1fdb4d4cf52a4ddf9d2b3804671658)(react-dom@19.3.0(react@19.3.0))(react-native@0.88.1(@babel/core@7.29.7(supports-color@8.1.1))(@react-native/metro-config@0.88.1(@babel/core@7.29.7(supports-color@8.1.1))(bufferutil@4.1.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(@types/react@19.3.0)(bufferutil@4.1.0)(react@19.3.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(react@19.3.0)
547
'@material/material-color-utilities':
548
specifier: 0.3.0
549
version: 0.3.0
@@ -1060,7 +1061,7 @@ importers:
1061
version: 5.3.0
1062
'@legendapp/list':
1063
specifier: 3.7.2
1063
- version: 3.7.2(react-dom@19.3.0(react@19.3.0))(react-native@0.88.1(@babel/core@7.29.7(supports-color@8.1.1))(@react-native/metro-config@0.88.1(@babel/core@7.29.7(supports-color@8.1.1))(bufferutil@4.1.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(@types/react@19.3.0)(bufferutil@4.1.0)(react@19.3.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(react@19.3.0)
1064
+ version: 3.7.2(patch_hash=3c68607b8bb7a531873bcbe0b197d163ef1fdb4d4cf52a4ddf9d2b3804671658)(react-dom@19.3.0(react@19.3.0))(react-native@0.88.1(@babel/core@7.29.7(supports-color@8.1.1))(@react-native/metro-config@0.88.1(@babel/core@7.29.7(supports-color@8.1.1))(bufferutil@4.1.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(@types/react@19.3.0)(bufferutil@4.1.0)(react@19.3.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(react@19.3.0)
1065
'@noble/hashes':
1066
specifier: 'catalog:'
1067
version: 1.8.0
@@ -14684,7 +14685,7 @@ snapshots:
14685
'@koromix/koffi-win32-x64@3.3.6':
14686
optional: true
14687
14687
- '@legendapp/list@3.7.2(react-dom@19.3.0(react@19.3.0))(react-native@0.88.1(@babel/core@7.29.7(supports-color@8.1.1))(@react-native/metro-config@0.88.1(@babel/core@7.29.7(supports-color@8.1.1))(bufferutil@4.1.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(@types/react@19.3.0)(bufferutil@4.1.0)(react@19.3.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(react@19.3.0)':
14688
+ '@legendapp/list@3.7.2(patch_hash=3c68607b8bb7a531873bcbe0b197d163ef1fdb4d4cf52a4ddf9d2b3804671658)(react-dom@19.3.0(react@19.3.0))(react-native@0.88.1(@babel/core@7.29.7(supports-color@8.1.1))(@react-native/metro-config@0.88.1(@babel/core@7.29.7(supports-color@8.1.1))(bufferutil@4.1.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(@types/react@19.3.0)(bufferutil@4.1.0)(react@19.3.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(react@19.3.0)':
14689
dependencies:
14690
react: 19.3.0
14691
use-sync-external-store: 1.7.0(react@19.3.0)
pnpm-workspace.yaml
+2
@@ -259,6 +259,8 @@ patchedDependencies:
259
alchemy@2.0.0-beta.85: patches/alchemy@2.0.0-beta.85.patch
260
# Android: a marker orient other than "auto" or a number (auto-start-reverse) no longer throws.
261
react-native-svg@15.16.1: patches/react-native-svg@15.16.1.patch
262
+ # iOS: a feed following its end keeps the end through a size-only reflow in one pass.
263
+ "@legendapp/list@3.7.2": patches/@legendapp__list@3.7.2.patch
264
265
# Unmet peers fail resolution, so a pin outside a dependency's peer range is
266
# caught when the lockfile changes instead of scrolling past as a warning.