fix(app): snap to bottom on prompt

This commit is contained in:
Adam 2026-01-22 05:45:53 -06:00
commit ae2693425e
No known key found for this signature in database
GPG key ID: 9CB48779AF150E75
2 changed files with 9 additions and 0 deletions

View file

@ -909,6 +909,11 @@ export default function Page() {
overflowAnchor: "dynamic",
})
const resumeScroll = () => {
setStore("messageId", undefined)
autoScroll.forceScrollToBottom()
}
// When the user returns to the bottom, treat the active message as "latest".
createEffect(
on(
@ -1535,6 +1540,7 @@ export default function Page() {
}}
newSessionWorktree={newSessionWorktree()}
onNewSessionWorktreeReset={() => setStore("newSessionWorktree", "main")}
onSubmit={resumeScroll}
/>
</Show>
</div>