diff --git a/packages/opencode/src/cli/cmd/tui/component/dialog-model.tsx b/packages/opencode/src/cli/cmd/tui/component/dialog-model.tsx
index b35339da..04f2f652 100644
--- a/packages/opencode/src/cli/cmd/tui/component/dialog-model.tsx
+++ b/packages/opencode/src/cli/cmd/tui/component/dialog-model.tsx
@@ -4,19 +4,12 @@ import { useSync } from "@tui/context/sync"
import { map, pipe, flatMap, entries, filter, isDeepEqual, sortBy } from "remeda"
import { DialogSelect, type DialogSelectRef } from "@tui/ui/dialog-select"
import { useDialog } from "@tui/ui/dialog"
-import { useTheme } from "../context/theme"
-
-function Free() {
- const { theme } = useTheme()
- return Free
-}
export function DialogModel() {
const local = useLocal()
const sync = useSync()
const dialog = useDialog()
const [ref, setRef] = createSignal>()
- const { theme } = useTheme()
const options = createMemo(() => {
return [
@@ -36,7 +29,6 @@ export function DialogModel() {
title: model.name ?? item.modelID,
description: provider.name,
category: "Recent",
- footer: model.cost.input === 0 && provider.id === "opencode" ? : undefined,
},
]
})
@@ -59,7 +51,6 @@ export function DialogModel() {
title: info.name ?? model,
description: provider.name,
category: provider.name,
- footer: info.cost.input === 0 && provider.id === "opencode" ? : undefined,
})),
filter((x) => Boolean(ref()?.filter) || !local.model.recent().find((y) => isDeepEqual(y, x.value))),
),
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 bc9b78dc..10651067 100644
--- a/packages/opencode/src/cli/cmd/tui/ui/dialog-select.tsx
+++ b/packages/opencode/src/cli/cmd/tui/ui/dialog-select.tsx
@@ -30,7 +30,7 @@ export interface DialogSelectOption {
title: string
value: T
description?: string
- footer?: JSX.Element | string
+ footer?: string
category?: string
disabled?: boolean
bg?: RGBA
@@ -172,6 +172,7 @@ export function DialogSelect(props: DialogSelectProps) {
props.onFilter?.(e)
})
}}
+ onKeyDown={(e) => {}}
focusedBackgroundColor={theme.backgroundPanel}
cursorColor={theme.primary}
focusedTextColor={theme.textMuted}
@@ -255,7 +256,7 @@ function Option(props: {
description?: string
active?: boolean
current?: boolean
- footer?: JSX.Element | string
+ footer?: string
onMouseOver?: () => void
}) {
const { theme } = useTheme()