feat: open dialog for model variant selection instead of cycling (#19534)

pull/19526/head^2
Dax 2026-03-28 11:37:20 -04:00 committed by GitHub
parent 8ac2fbbd12
commit 2b86b36c8c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 2 deletions

View File

@ -121,6 +121,7 @@ async function getTerminalBackgroundColor(): Promise<"dark" | "light"> {
}
import type { EventSource } from "./context/sdk"
import { DialogVariant } from "./component/dialog-variant"
function rendererConfig(_config: TuiConfig.Info): CliRendererConfig {
return {
@ -580,12 +581,12 @@ function App(props: { onSnapshot?: () => Promise<string[]> }) {
},
},
{
title: "Variant cycle",
title: "Switch model variant",
value: "variant.cycle",
keybind: "variant_cycle",
category: "Agent",
onSelect: () => {
local.model.variant.cycle()
dialog.replace(() => <DialogVariant />)
},
},
{