Skip to content
This repository was archived by the owner on Apr 1, 2026. It is now read-only.

Commit 3ace854

Browse files
committed
tui: auto-scroll to bottom when switching between sessions
1 parent eb855e1 commit 3ace854

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • packages/opencode/src/cli/cmd/tui/routes/session

packages/opencode/src/cli/cmd/tui/routes/session/index.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -626,6 +626,9 @@ export function Session() {
626626
const dialog = useDialog()
627627
const renderer = useRenderer()
628628

629+
// snap to bottom when session changes
630+
createEffect(on(() => route.sessionID, toBottom))
631+
629632
return (
630633
<context.Provider
631634
value={{

0 commit comments

Comments
 (0)