make variant modal less annoying (#19998)

This commit is contained in:
Luke Parker
2026-03-30 15:42:38 +10:00
committed by GitHub
parent 6926fe1c74
commit 186af2723d
4 changed files with 46 additions and 12 deletions
+13 -1
View File
@@ -581,10 +581,22 @@ function App(props: { onSnapshot?: () => Promise<string[]> }) {
},
},
{
title: "Switch model variant",
title: "Variant cycle",
value: "variant.cycle",
keybind: "variant_cycle",
category: "Agent",
onSelect: () => {
local.model.variant.cycle()
},
},
{
title: "Switch model variant",
value: "variant.list",
category: "Agent",
hidden: local.model.variant.list().length === 0,
slash: {
name: "variants",
},
onSelect: () => {
dialog.replace(() => <DialogVariant />)
},