From edcd679765c359b5224268eea85e545f6f0afafb Mon Sep 17 00:00:00 2001 From: alpaylan Date: Tue, 27 Jan 2026 18:29:39 -0500 Subject: [PATCH] Fix the off-by-3 bug in some of the command options. --- packages/opencode/src/cli/cmd/tui/ui/dialog-select.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/opencode/src/cli/cmd/tui/ui/dialog-select.tsx b/packages/opencode/src/cli/cmd/tui/ui/dialog-select.tsx index b6c5b5f8b9..e4c01a16ce 100644 --- a/packages/opencode/src/cli/cmd/tui/ui/dialog-select.tsx +++ b/packages/opencode/src/cli/cmd/tui/ui/dialog-select.tsx @@ -234,7 +234,7 @@ export function DialogSelect(props: DialogSelectProps) { props.onSelect?.(option) }} onMouseOver={() => { - const index = filtered().findIndex((x) => isDeepEqual(x.value, option.value)) + const index = flat().findIndex((x) => isDeepEqual(x.value, option.value)) if (index === -1) return moveTo(index) }}