summaryrefslogtreecommitdiffhomepage
path: root/packages/ui/src
diff options
context:
space:
mode:
authorDax Raad <[email protected]>2025-10-24 15:45:26 -0400
committerDax Raad <[email protected]>2025-10-24 15:45:37 -0400
commit6ff0ce8bc52211d9df0242368872e3f04804a0f2 (patch)
tree29b72471327518d684c2c772fb02bdb0edd9b0ee /packages/ui/src
parente88b659545245888ee4091a0cc353f4d7bda7327 (diff)
downloadopencode-6ff0ce8bc52211d9df0242368872e3f04804a0f2.tar.gz
opencode-6ff0ce8bc52211d9df0242368872e3f04804a0f2.zip
ignore: improve session timeline debugging and message display functionality
Diffstat (limited to 'packages/ui/src')
-rw-r--r--packages/ui/src/components/list.tsx4
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/ui/src/components/list.tsx b/packages/ui/src/components/list.tsx
index cb212d1a8..aaba61fdf 100644
--- a/packages/ui/src/components/list.tsx
+++ b/packages/ui/src/components/list.tsx
@@ -23,6 +23,10 @@ export function List<T>(props: ListProps<T>) {
initialActive: props.current ? props.key(props.current) : undefined,
loop: true,
})
+
+ createEffect(() => {
+ if (props.current) list.setActive(props.key(props.current))
+ })
// const resetSelection = () => {
// if (props.data.length === 0) return
// list.setActive(props.key(props.data[0]))