fix(mobile): running threads open at the latest message (#13530)

This commit is contained in:
AKolenda authored and GitHub committed 2026-09-25 22:38:16 -05:00
1 parent 3b0a495b0e
commit ecd3237b18
1 file changed
+4 -1
@@ -2477,7 +2477,10 @@ export const ThreadFeed = memo(function ThreadFeed(props: ThreadFeedProps) {
// content-inset override. Seed the fresh instance synchronously with the
// current overlay height before the scroll integration's next reaction;
// on Android the declarative contentInset floor covers this same window.
const listMountKey = `${feedThreadKey}:${presentedFeed.length === 0 ? "empty" : "filled"}`;
// The thinking row a running thread shows while its messages load is not
// content: the list must still remount, and so open at the end, when they
// arrive.
const listMountKey = `${feedThreadKey}:${presentedFeed.some((entry) => entry.type !== "thinking") ? "filled" : "empty"}`;
useLayoutEffect(() => {
const bottom = props.contentInsetEndAdjustment.value;
if (bottom > 0) {