Skip to content

Commit 2b86b36

Browse files
authored
feat: open dialog for model variant selection instead of cycling (anomalyco#19534)
1 parent 8ac2fbb commit 2b86b36

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

  • packages/opencode/src/cli/cmd/tui

packages/opencode/src/cli/cmd/tui/app.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ async function getTerminalBackgroundColor(): Promise<"dark" | "light"> {
121121
}
122122

123123
import type { EventSource } from "./context/sdk"
124+
import { DialogVariant } from "./component/dialog-variant"
124125

125126
function rendererConfig(_config: TuiConfig.Info): CliRendererConfig {
126127
return {
@@ -580,12 +581,12 @@ function App(props: { onSnapshot?: () => Promise<string[]> }) {
580581
},
581582
},
582583
{
583-
title: "Variant cycle",
584+
title: "Switch model variant",
584585
value: "variant.cycle",
585586
keybind: "variant_cycle",
586587
category: "Agent",
587588
onSelect: () => {
588-
local.model.variant.cycle()
589+
dialog.replace(() => <DialogVariant />)
589590
},
590591
},
591592
{

0 commit comments

Comments
 (0)