Skip to content

Commit 2398a0b

Browse files
AKolendaclaude
andcommitted
fix(mobile): running threads open at the latest message
The synthetic thinking row a running thread shows while its messages load counted as content, so the thread list never remounted when the messages arrived and they landed at the top before jumping to the end. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
1 parent 720490a commit 2398a0b

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎apps/mobile/src/features/threads/ThreadFeed.tsx‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2477,7 +2477,10 @@ export const ThreadFeed = memo(function ThreadFeed(props: ThreadFeedProps) {
24772477
// content-inset override. Seed the fresh instance synchronously with the
24782478
// current overlay height before the scroll integration's next reaction;
24792479
// on Android the declarative contentInset floor covers this same window.
2480-
const listMountKey = `${feedThreadKey}:${presentedFeed.length === 0 ? "empty" : "filled"}`;
2480+
// The thinking row a running thread shows while its messages load is not
2481+
// content: the list must still remount, and so open at the end, when they
2482+
// arrive.
2483+
const listMountKey = `${feedThreadKey}:${presentedFeed.some((entry) => entry.type !== "thinking") ? "filled" : "empty"}`;
24812484
useLayoutEffect(() => {
24822485
const bottom = props.contentInsetEndAdjustment.value;
24832486
if (bottom > 0) {

0 commit comments

Comments
 (0)