diff options
| author | Shanjai Raj <[email protected]> | 2025-11-07 01:59:39 +0530 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-11-06 14:29:39 -0600 |
| commit | b8c51e307f1e26c4cbc962fca742338fba3c9fe9 (patch) | |
| tree | 6be51709a886583a385076aff0b95624f41a2075 | |
| parent | 6791233ca0c2334d7b32c61740c0fb5ba825bba6 (diff) | |
| download | opencode-b8c51e307f1e26c4cbc962fca742338fba3c9fe9.tar.gz opencode-b8c51e307f1e26c4cbc962fca742338fba3c9fe9.zip | |
Fix: Auto-scroll to bottom when selecting session from list (#3988)
Co-authored-by: shanjairaj7 <[email protected]>
Co-authored-by: Aiden Cline <[email protected]>
| -rw-r--r-- | packages/opencode/src/cli/cmd/tui/routes/session/index.tsx | 4 |
1 files changed, 4 insertions, 0 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 7aa8ab2f4..b0d98b088 100644 --- a/packages/opencode/src/cli/cmd/tui/routes/session/index.tsx +++ b/packages/opencode/src/cli/cmd/tui/routes/session/index.tsx @@ -5,6 +5,7 @@ import { createSignal, For, Match, + on, Show, Switch, useContext, @@ -162,6 +163,9 @@ export function Session() { return session()?.revert?.messageID }) + // snap to bottom when session changes + createEffect(on(() => route.sessionID, toBottom)) + const local = useLocal() function moveChild(direction: number) { |
