Skip to content

Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.

fix(web): prevent expanded tool calls from hiding thread content (#8052)

Theo Browne643daa51616d
diff --git a/patches/@[email protected] b/patches/@[email protected]
index 60a5954d8..7086b51d2 100644
--- a/patches/@[email protected]
+++ b/patches/@[email protected]
@@ -204,7 +204,7 @@ index ce1fe00001c9e5aee6c6ea8bb2d4757d4586d002..3ccf6f16067152dfcb0c143371e2ec6a
* Number of columns to render items in.
* @default 1
diff --git a/react-native.js b/react-native.js
-index b3c5a306b293f797a8b338adfca3060c0f6db22b..89077be4d6833cfaabf9d6d6205d9551505e32b4 100644
+index b3c5a306b293f797a8b338adfca3060c0f6db22b..4227ed22da8865b7493f47f199f4d8f4a5493efb 100644
--- a/react-native.js
+++ b/react-native.js
@@ -954,7 +954,7 @@ function setInitialRenderState(ctx, {
@@ -513,14 +513,6 @@ index b3c5a306b293f797a8b338adfca3060c0f6db22b..89077be4d6833cfaabf9d6d6205d9551
estimatedItemSize = 100,
estimatedListSize,
extraData,
-@@ -7105,6 +7260,7 @@ var LegendListInner = typedForwardRef(function LegendListInner2(props, forwarded
- onLayout: onLayoutProp,
- onLoad,
- onMomentumScrollEnd,
-+ onScrollBeginDrag,
- onRefresh,
- onScroll: onScrollProp,
- onScrollBeginDrag,
@@ -7200,7 +7356,7 @@ var LegendListInner = typedForwardRef(function LegendListInner2(props, forwarded
const combinedRef = useCombinedRef(refScroller, refScrollView);
const keyExtractor = keyExtractorProp != null ? keyExtractorProp : ((_item, index) => index.toString());
@@ -925,6 +917,62 @@ index 40e87cda8c9bc79a889e5542f29af429a24b24d4..2d556eecb0bafe2f54084c809f82144c
onScroll: onScrollHandler,
recycleItems,
refreshControl: refreshControlElement ? stylePaddingTopState > 0 ? React2.cloneElement(refreshControlElement, {
+diff --git a/react.js b/react.js
+index 914d2dafaafa001c9ab6791a0a0581659295e333..06466096ceb96ef8773f7f7e202a19c9b774d49b 100644
+--- a/react.js
++++ b/react.js
+@@ -4702,7 +4702,8 @@ function maybeUpdateAnchoredEndSpace(ctx) {
+ contentBelowAnchor = Math.max(0, contentBelowAnchor - ctx.scrollAxisGap);
+ contentBelowAnchor += (ctx.values.get("footerSize") || 0) + getStylePaddingEnd(state.props);
+ isReady = !hasUnknownTailSize;
+- nextSize = hasUnknownTailSize ? previousSize || 0 : Math.max(0, state.scrollLength - contentBelowAnchor - anchorOffset);
++ const knownSizeBound = Math.max(0, state.scrollLength - contentBelowAnchor - anchorOffset);
++ nextSize = hasUnknownTailSize ? Math.min(previousSize || 0, knownSizeBound) : knownSizeBound;
+ } else if (anchorIndex >= 0) {
+ isReady = false;
+ }
+@@ -4721,7 +4722,13 @@ function maybeUpdateAnchoredEndSpace(ctx) {
+ updateContentMetricsState(ctx);
+ updateScroll(ctx, state.scroll, true, { markHasScrolled: false });
+ }
+ (_b = anchoredEndSpace == null ? void 0 : anchoredEndSpace.onReady) == null ? void 0 : _b.call(anchoredEndSpace, { anchorIndex: nextAnchorIndex, anchorKey: nextAnchorKey, size: nextSize });
++ } else if (!isReady && didSizeChange && nextSize < (previousSize || 0)) {
++ set$(ctx, "anchoredEndSpaceSize", nextSize);
++ (_a3 = anchoredEndSpace == null ? void 0 : anchoredEndSpace.onSizeChanged) == null ? void 0 : _a3.call(anchoredEndSpace, nextSize);
++ if (anchoredEndSpace == null ? void 0 : anchoredEndSpace.includeInEndInset) {
++ updateScroll(ctx, state.scroll, true, { markHasScrolled: false });
++ }
+ }
+ return nextSize;
+ }
+diff --git a/react.mjs b/react.mjs
+index 95465f2ab89ce41a10553f58af83618f7310e83c..4b5f06c60f1e8bbd9035a49980d9e86820262da4 100644
+--- a/react.mjs
++++ b/react.mjs
+@@ -4681,7 +4681,8 @@ function maybeUpdateAnchoredEndSpace(ctx) {
+ contentBelowAnchor = Math.max(0, contentBelowAnchor - ctx.scrollAxisGap);
+ contentBelowAnchor += (ctx.values.get("footerSize") || 0) + getStylePaddingEnd(state.props);
+ isReady = !hasUnknownTailSize;
+- nextSize = hasUnknownTailSize ? previousSize || 0 : Math.max(0, state.scrollLength - contentBelowAnchor - anchorOffset);
++ const knownSizeBound = Math.max(0, state.scrollLength - contentBelowAnchor - anchorOffset);
++ nextSize = hasUnknownTailSize ? Math.min(previousSize || 0, knownSizeBound) : knownSizeBound;
+ } else if (anchorIndex >= 0) {
+ isReady = false;
+ }
+@@ -4700,7 +4701,13 @@ function maybeUpdateAnchoredEndSpace(ctx) {
+ updateContentMetricsState(ctx);
+ updateScroll(ctx, state.scroll, true, { markHasScrolled: false });
+ }
+ (_b = anchoredEndSpace == null ? void 0 : anchoredEndSpace.onReady) == null ? void 0 : _b.call(anchoredEndSpace, { anchorIndex: nextAnchorIndex, anchorKey: nextAnchorKey, size: nextSize });
++ } else if (!isReady && didSizeChange && nextSize < (previousSize || 0)) {
++ set$(ctx, "anchoredEndSpaceSize", nextSize);
++ (_a3 = anchoredEndSpace == null ? void 0 : anchoredEndSpace.onSizeChanged) == null ? void 0 : _a3.call(anchoredEndSpace, nextSize);
++ if (anchoredEndSpace == null ? void 0 : anchoredEndSpace.includeInEndInset) {
++ updateScroll(ctx, state.scroll, true, { markHasScrolled: false });
++ }
+ }
+ return nextSize;
+ }
diff --git a/reanimated.d.ts b/reanimated.d.ts
index e5043320700b12f34f4c0babbc341f85ca8135c1..2ce63830a28636b21937a0741fd0e613dae950fe 100644
--- a/reanimated.d.ts
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 4b550bebb..111de8c60 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -84,7 +84,7 @@ patchedDependencies:
'@effect/[email protected]': a16b1e870d8c29e4a98b17cc4c638a4ff471753d8ca3487f78a22b759caf951b
'@expo/[email protected]': 8cb08b5bb7051ed9d2dbe46a2c293c5a1e17f1bd6ddf30de27909e18c921ff46
'@ff-labs/[email protected]': ab9ff544009e1891cfe3930105862d3699007f38922a79f3c98d90018deca368
- '@legendapp/[email protected]': 6befc76c7f590a0b0915b531386ce7e3bbb364612868e1f04e4ac84f60a39ab5
+ '@legendapp/[email protected]': 3362284f1fca70407e7c594cb8db04086bfebff5de10568f85c08661d405deee
'@pierre/[email protected]': 7ef7cb0cbabb17c15cdb137554068b36f15f6f5265e73fb51452aa3380db91aa
'@react-native-menu/[email protected]': c7f66d121c726ade4f5c4e1aed11a691e5711d244c544084e289ac26132a0045
'@react-native/[email protected]': c1b594a16e682d621b6a960926f8ce13fc92edfb397884cfe7fcb0518996a784
@@ -224,7 +224,7 @@ importers:
version: 56.0.18(3cdc0dde9f93166d952f1e1bd0cb25c0)
'@legendapp/list':
specifier: 'catalog:'
'@noble/curves':
specifier: 'catalog:'
version: 1.9.1
@@ -553,7 +553,7 @@ importers:
version: 0.9.0
'@legendapp/list':
specifier: 'catalog:'
- version: 3.3.5(patch_hash=6befc76c7f590a0b0915b531386ce7e3bbb364612868e1f04e4ac84f60a39ab5)([email protected]([email protected]))([email protected])
+ version: 3.3.5(patch_hash=3362284f1fca70407e7c594cb8db04086bfebff5de10568f85c08661d405deee)([email protected]([email protected]))([email protected])
'@lexical/react':
specifier: ^0.41.0
@@ -12946,7 +12946,7 @@ snapshots:
dependencies:
jsbi: 4.3.2
dependencies:
react: 19.2.3
use-sync-external-store: 1.6.0([email protected])
@@ -12954,7 +12954,7 @@ snapshots:
react-dom: 19.2.3([email protected])
- '@legendapp/[email protected](patch_hash=6befc76c7f590a0b0915b531386ce7e3bbb364612868e1f04e4ac84f60a39ab5)([email protected]([email protected]))([email protected])':
+ '@legendapp/[email protected](patch_hash=3362284f1fca70407e7c594cb8db04086bfebff5de10568f85c08661d405deee)([email protected]([email protected]))([email protected])':
dependencies:
react: 19.2.6
use-sync-external-store: 1.6.0([email protected])