summaryrefslogtreecommitdiffhomepage
path: root/packages
diff options
context:
space:
mode:
authorAiden Cline <[email protected]>2025-12-30 12:33:50 -0600
committerAiden Cline <[email protected]>2025-12-30 12:33:50 -0600
commitc88c2da9be9bf98f2a2d585e5b1ae47afcd2a37f (patch)
tree2786541a737cb2a8cf2f32248b1bd6d5b0a0aa8f /packages
parent9b04081ae0515facfaca56f22c315abcd69a797e (diff)
downloadopencode-c88c2da9be9bf98f2a2d585e5b1ae47afcd2a37f.tar.gz
opencode-c88c2da9be9bf98f2a2d585e5b1ae47afcd2a37f.zip
fix: move variant toggle to command bar
Diffstat (limited to 'packages')
-rw-r--r--packages/opencode/src/cli/cmd/tui/app.tsx9
-rw-r--r--packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx6
2 files changed, 9 insertions, 6 deletions
diff --git a/packages/opencode/src/cli/cmd/tui/app.tsx b/packages/opencode/src/cli/cmd/tui/app.tsx
index 5214b0c1a..8b7b68273 100644
--- a/packages/opencode/src/cli/cmd/tui/app.tsx
+++ b/packages/opencode/src/cli/cmd/tui/app.tsx
@@ -373,6 +373,15 @@ function App() {
},
},
{
+ title: "Variant cycle",
+ value: "variant.cycle",
+ keybind: "variant_cycle",
+ category: "Agent",
+ onSelect: () => {
+ local.model.variant.cycle()
+ },
+ },
+ {
title: "Agent cycle reverse",
value: "agent.cycle.reverse",
keybind: "agent_cycle_reverse",
diff --git a/packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx b/packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx
index 70eba3ef8..2a0ac8461 100644
--- a/packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx
+++ b/packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx
@@ -877,12 +877,6 @@ export function Prompt(props: PromptProps) {
return
}
}
- if (keybind.match("variant_cycle", e)) {
- e.preventDefault()
- if (local.model.variant.list().length === 0) return
- local.model.variant.cycle()
- return
- }
if (store.mode === "normal") autocomplete.onKeyDown(e)
if (!autocomplete.visible) {
if (