mirror of
https://github.com/aljazceru/opencode.git
synced 2026-02-02 22:55:06 +01:00
tui: auto-scroll to bottom when switching between sessions
This commit is contained in:
@@ -626,6 +626,9 @@ export function Session() {
|
||||
const dialog = useDialog()
|
||||
const renderer = useRenderer()
|
||||
|
||||
// snap to bottom when session changes
|
||||
createEffect(on(() => route.sessionID, toBottom))
|
||||
|
||||
return (
|
||||
<context.Provider
|
||||
value={{
|
||||
|
||||
Reference in New Issue
Block a user