From 38e83b509e024c5e8f355a339262bad658d3d74e Mon Sep 17 00:00:00 2001 From: Dax Raad Date: Sun, 28 Sep 2025 03:57:55 -0400 Subject: [PATCH] sync --- .../opencode/src/cli/cmd/tui/routes/session/index.tsx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/packages/opencode/src/cli/cmd/tui/routes/session/index.tsx b/packages/opencode/src/cli/cmd/tui/routes/session/index.tsx index 97484ae82..f0b86cea5 100644 --- a/packages/opencode/src/cli/cmd/tui/routes/session/index.tsx +++ b/packages/opencode/src/cli/cmd/tui/routes/session/index.tsx @@ -49,7 +49,9 @@ export function Session() { }) function toBottom() { - scroll.scrollTo(scroll.scrollHeight) + setTimeout(() => { + scroll.scrollTo(scroll.scrollHeight) + }, 50) } const local = useLocal() @@ -122,7 +124,7 @@ export function Session() { messageID: message.id, }, }) - .then(() => setTimeout(() => toBottom(), 100)) + .then(toBottom) dialog.clear() }, }, @@ -142,7 +144,7 @@ export function Session() { id: route.sessionID, }, }) - .then(() => setTimeout(() => toBottom(), 100)) + .then(toBottom) return } sdk.session @@ -154,7 +156,7 @@ export function Session() { messageID: message.id, }, }) - .then(() => setTimeout(() => toBottom(), 100)) + .then(toBottom) }, }, ])