summaryrefslogtreecommitdiffhomepage
path: root/packages
diff options
context:
space:
mode:
authorAriane Emory <[email protected]>2026-04-07 15:46:04 -0400
committerGitHub <[email protected]>2026-04-07 14:46:04 -0500
commite945436b6f71afa4860e68558de17c6fba88a1f7 (patch)
tree71e48f8c4deb562cf31a2674cae02f8d19ab15b5 /packages
parent6bfa82de65a96f2587c73c5a9efd41a471fa1674 (diff)
downloadopencode-e945436b6f71afa4860e68558de17c6fba88a1f7.tar.gz
opencode-e945436b6f71afa4860e68558de17c6fba88a1f7.zip
feat(tui): allow variant_list keybind for the "Switch model variant" command (#21185)
Co-authored-by: Aiden Cline <[email protected]>
Diffstat (limited to 'packages')
-rw-r--r--packages/opencode/src/cli/cmd/tui/app.tsx1
-rw-r--r--packages/opencode/src/config/config.ts1
-rw-r--r--packages/web/src/content/docs/ar/keybinds.mdx1
-rw-r--r--packages/web/src/content/docs/bs/keybinds.mdx1
-rw-r--r--packages/web/src/content/docs/da/keybinds.mdx1
-rw-r--r--packages/web/src/content/docs/de/keybinds.mdx1
-rw-r--r--packages/web/src/content/docs/es/keybinds.mdx1
-rw-r--r--packages/web/src/content/docs/fr/keybinds.mdx1
-rw-r--r--packages/web/src/content/docs/it/keybinds.mdx1
-rw-r--r--packages/web/src/content/docs/ja/keybinds.mdx1
-rw-r--r--packages/web/src/content/docs/keybinds.mdx1
-rw-r--r--packages/web/src/content/docs/ko/keybinds.mdx1
-rw-r--r--packages/web/src/content/docs/nb/keybinds.mdx1
-rw-r--r--packages/web/src/content/docs/pl/keybinds.mdx1
-rw-r--r--packages/web/src/content/docs/pt-br/keybinds.mdx1
-rw-r--r--packages/web/src/content/docs/ru/keybinds.mdx1
-rw-r--r--packages/web/src/content/docs/th/keybinds.mdx1
-rw-r--r--packages/web/src/content/docs/tr/keybinds.mdx1
-rw-r--r--packages/web/src/content/docs/zh-cn/keybinds.mdx1
-rw-r--r--packages/web/src/content/docs/zh-tw/keybinds.mdx1
20 files changed, 20 insertions, 0 deletions
diff --git a/packages/opencode/src/cli/cmd/tui/app.tsx b/packages/opencode/src/cli/cmd/tui/app.tsx
index 7904e3b79..4161c025c 100644
--- a/packages/opencode/src/cli/cmd/tui/app.tsx
+++ b/packages/opencode/src/cli/cmd/tui/app.tsx
@@ -599,6 +599,7 @@ function App(props: { onSnapshot?: () => Promise<string[]> }) {
{
title: "Switch model variant",
value: "variant.list",
+ keybind: "variant_list",
category: "Agent",
hidden: local.model.variant.list().length === 0,
slash: {
diff --git a/packages/opencode/src/config/config.ts b/packages/opencode/src/config/config.ts
index b11ae8319..efae2ca55 100644
--- a/packages/opencode/src/config/config.ts
+++ b/packages/opencode/src/config/config.ts
@@ -669,6 +669,7 @@ export namespace Config {
agent_cycle: z.string().optional().default("tab").describe("Next agent"),
agent_cycle_reverse: z.string().optional().default("shift+tab").describe("Previous agent"),
variant_cycle: z.string().optional().default("ctrl+t").describe("Cycle model variants"),
+ variant_list: z.string().optional().default("none").describe("List model variants"),
input_clear: z.string().optional().default("ctrl+c").describe("Clear input field"),
input_paste: z.string().optional().default("ctrl+v").describe("Paste from clipboard"),
input_submit: z.string().optional().default("return").describe("Submit input"),
diff --git a/packages/web/src/content/docs/ar/keybinds.mdx b/packages/web/src/content/docs/ar/keybinds.mdx
index 986313a5b..d40d49729 100644
--- a/packages/web/src/content/docs/ar/keybinds.mdx
+++ b/packages/web/src/content/docs/ar/keybinds.mdx
@@ -53,6 +53,7 @@ description: خصّص اختصارات لوحة المفاتيح.
"model_cycle_favorite": "none",
"model_cycle_favorite_reverse": "none",
"variant_cycle": "ctrl+t",
+ "variant_list": "none",
"command_list": "ctrl+p",
"agent_list": "<leader>a",
"agent_cycle": "tab",
diff --git a/packages/web/src/content/docs/bs/keybinds.mdx b/packages/web/src/content/docs/bs/keybinds.mdx
index a70fdedae..31fed5900 100644
--- a/packages/web/src/content/docs/bs/keybinds.mdx
+++ b/packages/web/src/content/docs/bs/keybinds.mdx
@@ -53,6 +53,7 @@ OpenCode ima listu veza tipki koje možete prilagoditi putem `tui.json`.
"model_cycle_favorite": "none",
"model_cycle_favorite_reverse": "none",
"variant_cycle": "ctrl+t",
+ "variant_list": "none",
"command_list": "ctrl+p",
"agent_list": "<leader>a",
"agent_cycle": "tab",
diff --git a/packages/web/src/content/docs/da/keybinds.mdx b/packages/web/src/content/docs/da/keybinds.mdx
index 237c36f77..7b2f2a7f3 100644
--- a/packages/web/src/content/docs/da/keybinds.mdx
+++ b/packages/web/src/content/docs/da/keybinds.mdx
@@ -53,6 +53,7 @@ OpenCode har en liste over nøglebindinger, som du kan tilpasse gennem `tui.json
"model_cycle_favorite": "none",
"model_cycle_favorite_reverse": "none",
"variant_cycle": "ctrl+t",
+ "variant_list": "none",
"command_list": "ctrl+p",
"agent_list": "<leader>a",
"agent_cycle": "tab",
diff --git a/packages/web/src/content/docs/de/keybinds.mdx b/packages/web/src/content/docs/de/keybinds.mdx
index 628c65006..26edf9bdb 100644
--- a/packages/web/src/content/docs/de/keybinds.mdx
+++ b/packages/web/src/content/docs/de/keybinds.mdx
@@ -53,6 +53,7 @@ OpenCode verfügt über eine Liste von Tastenkombinationen, die Sie über `tui.j
"model_cycle_favorite": "none",
"model_cycle_favorite_reverse": "none",
"variant_cycle": "ctrl+t",
+ "variant_list": "none",
"command_list": "ctrl+p",
"agent_list": "<leader>a",
"agent_cycle": "tab",
diff --git a/packages/web/src/content/docs/es/keybinds.mdx b/packages/web/src/content/docs/es/keybinds.mdx
index 4c1f7e1a8..2fc57fa69 100644
--- a/packages/web/src/content/docs/es/keybinds.mdx
+++ b/packages/web/src/content/docs/es/keybinds.mdx
@@ -53,6 +53,7 @@ OpenCode tiene una lista de combinaciones de teclas que puede personalizar a tra
"model_cycle_favorite": "none",
"model_cycle_favorite_reverse": "none",
"variant_cycle": "ctrl+t",
+ "variant_list": "none",
"command_list": "ctrl+p",
"agent_list": "<leader>a",
"agent_cycle": "tab",
diff --git a/packages/web/src/content/docs/fr/keybinds.mdx b/packages/web/src/content/docs/fr/keybinds.mdx
index 281e5df74..feb4ba37f 100644
--- a/packages/web/src/content/docs/fr/keybinds.mdx
+++ b/packages/web/src/content/docs/fr/keybinds.mdx
@@ -53,6 +53,7 @@ OpenCode a une liste de raccourcis clavier que vous pouvez personnaliser via la
"model_cycle_favorite": "none",
"model_cycle_favorite_reverse": "none",
"variant_cycle": "ctrl+t",
+ "variant_list": "none",
"command_list": "ctrl+p",
"agent_list": "<leader>a",
"agent_cycle": "tab",
diff --git a/packages/web/src/content/docs/it/keybinds.mdx b/packages/web/src/content/docs/it/keybinds.mdx
index e599f4e41..aef0a4c93 100644
--- a/packages/web/src/content/docs/it/keybinds.mdx
+++ b/packages/web/src/content/docs/it/keybinds.mdx
@@ -53,6 +53,7 @@ OpenCode ha una lista di scorciatoie che puoi personalizzare tramite `tui.json`.
"model_cycle_favorite": "none",
"model_cycle_favorite_reverse": "none",
"variant_cycle": "ctrl+t",
+ "variant_list": "none",
"command_list": "ctrl+p",
"agent_list": "<leader>a",
"agent_cycle": "tab",
diff --git a/packages/web/src/content/docs/ja/keybinds.mdx b/packages/web/src/content/docs/ja/keybinds.mdx
index 3ec9ca94d..8d2de3ba9 100644
--- a/packages/web/src/content/docs/ja/keybinds.mdx
+++ b/packages/web/src/content/docs/ja/keybinds.mdx
@@ -53,6 +53,7 @@ OpenCode には、`tui.json` を通じてカスタマイズできるキーバイ
"model_cycle_favorite": "none",
"model_cycle_favorite_reverse": "none",
"variant_cycle": "ctrl+t",
+ "variant_list": "none",
"command_list": "ctrl+p",
"agent_list": "<leader>a",
"agent_cycle": "tab",
diff --git a/packages/web/src/content/docs/keybinds.mdx b/packages/web/src/content/docs/keybinds.mdx
index 74ef30577..5488aaf81 100644
--- a/packages/web/src/content/docs/keybinds.mdx
+++ b/packages/web/src/content/docs/keybinds.mdx
@@ -53,6 +53,7 @@ OpenCode has a list of keybinds that you can customize through `tui.json`.
"model_cycle_favorite": "none",
"model_cycle_favorite_reverse": "none",
"variant_cycle": "ctrl+t",
+ "variant_list": "none",
"command_list": "ctrl+p",
"agent_list": "<leader>a",
"agent_cycle": "tab",
diff --git a/packages/web/src/content/docs/ko/keybinds.mdx b/packages/web/src/content/docs/ko/keybinds.mdx
index fa8b4e9bd..b6a605f2e 100644
--- a/packages/web/src/content/docs/ko/keybinds.mdx
+++ b/packages/web/src/content/docs/ko/keybinds.mdx
@@ -53,6 +53,7 @@ OpenCode에는 `tui.json`을 통해 커스터마이즈할 수 있는 키바인�
"model_cycle_favorite": "none",
"model_cycle_favorite_reverse": "none",
"variant_cycle": "ctrl+t",
+ "variant_list": "none",
"command_list": "ctrl+p",
"agent_list": "<leader>a",
"agent_cycle": "tab",
diff --git a/packages/web/src/content/docs/nb/keybinds.mdx b/packages/web/src/content/docs/nb/keybinds.mdx
index f9837480d..623f7aa24 100644
--- a/packages/web/src/content/docs/nb/keybinds.mdx
+++ b/packages/web/src/content/docs/nb/keybinds.mdx
@@ -53,6 +53,7 @@ OpenCode har en liste over tastebindinger som du kan tilpasse gjennom `tui.json`
"model_cycle_favorite": "none",
"model_cycle_favorite_reverse": "none",
"variant_cycle": "ctrl+t",
+ "variant_list": "none",
"command_list": "ctrl+p",
"agent_list": "<leader>a",
"agent_cycle": "tab",
diff --git a/packages/web/src/content/docs/pl/keybinds.mdx b/packages/web/src/content/docs/pl/keybinds.mdx
index 4744ffc78..0d3068fea 100644
--- a/packages/web/src/content/docs/pl/keybinds.mdx
+++ b/packages/web/src/content/docs/pl/keybinds.mdx
@@ -53,6 +53,7 @@ OpenCode zawiera listę skrótów klawiszowych, które można dostosować za pom
"model_cycle_favorite": "none",
"model_cycle_favorite_reverse": "none",
"variant_cycle": "ctrl+t",
+ "variant_list": "none",
"command_list": "ctrl+p",
"agent_list": "<leader>a",
"agent_cycle": "tab",
diff --git a/packages/web/src/content/docs/pt-br/keybinds.mdx b/packages/web/src/content/docs/pt-br/keybinds.mdx
index 6c7fcd208..e1f0f8e7c 100644
--- a/packages/web/src/content/docs/pt-br/keybinds.mdx
+++ b/packages/web/src/content/docs/pt-br/keybinds.mdx
@@ -53,6 +53,7 @@ O opencode tem uma lista de atalhos de teclado que você pode personalizar atrav
"model_cycle_favorite": "none",
"model_cycle_favorite_reverse": "none",
"variant_cycle": "ctrl+t",
+ "variant_list": "none",
"command_list": "ctrl+p",
"agent_list": "<leader>a",
"agent_cycle": "tab",
diff --git a/packages/web/src/content/docs/ru/keybinds.mdx b/packages/web/src/content/docs/ru/keybinds.mdx
index bfd4bf0c2..bde4e1553 100644
--- a/packages/web/src/content/docs/ru/keybinds.mdx
+++ b/packages/web/src/content/docs/ru/keybinds.mdx
@@ -53,6 +53,7 @@ opencode имеет список сочетаний клавиш, которые
"model_cycle_favorite": "none",
"model_cycle_favorite_reverse": "none",
"variant_cycle": "ctrl+t",
+ "variant_list": "none",
"command_list": "ctrl+p",
"agent_list": "<leader>a",
"agent_cycle": "tab",
diff --git a/packages/web/src/content/docs/th/keybinds.mdx b/packages/web/src/content/docs/th/keybinds.mdx
index ce3234a04..2f5bcc5d7 100644
--- a/packages/web/src/content/docs/th/keybinds.mdx
+++ b/packages/web/src/content/docs/th/keybinds.mdx
@@ -53,6 +53,7 @@ OpenCode มีรายการปุ่มลัดที่คุณปร�
"model_cycle_favorite": "none",
"model_cycle_favorite_reverse": "none",
"variant_cycle": "ctrl+t",
+ "variant_list": "none",
"command_list": "ctrl+p",
"agent_list": "<leader>a",
"agent_cycle": "tab",
diff --git a/packages/web/src/content/docs/tr/keybinds.mdx b/packages/web/src/content/docs/tr/keybinds.mdx
index 7d3142bf3..bbf8c3bfa 100644
--- a/packages/web/src/content/docs/tr/keybinds.mdx
+++ b/packages/web/src/content/docs/tr/keybinds.mdx
@@ -53,6 +53,7 @@ opencode, `tui.json` aracılığıyla özelleştirebileceğiniz bir tuş bağlan
"model_cycle_favorite": "none",
"model_cycle_favorite_reverse": "none",
"variant_cycle": "ctrl+t",
+ "variant_list": "none",
"command_list": "ctrl+p",
"agent_list": "<leader>a",
"agent_cycle": "tab",
diff --git a/packages/web/src/content/docs/zh-cn/keybinds.mdx b/packages/web/src/content/docs/zh-cn/keybinds.mdx
index 33f75c6dc..0989a30f5 100644
--- a/packages/web/src/content/docs/zh-cn/keybinds.mdx
+++ b/packages/web/src/content/docs/zh-cn/keybinds.mdx
@@ -53,6 +53,7 @@ OpenCode 提供了一系列快捷键,您可以通过 `tui.json` 进行自定�
"model_cycle_favorite": "none",
"model_cycle_favorite_reverse": "none",
"variant_cycle": "ctrl+t",
+ "variant_list": "none",
"command_list": "ctrl+p",
"agent_list": "<leader>a",
"agent_cycle": "tab",
diff --git a/packages/web/src/content/docs/zh-tw/keybinds.mdx b/packages/web/src/content/docs/zh-tw/keybinds.mdx
index 574404b2f..61d902141 100644
--- a/packages/web/src/content/docs/zh-tw/keybinds.mdx
+++ b/packages/web/src/content/docs/zh-tw/keybinds.mdx
@@ -53,6 +53,7 @@ OpenCode 提供了一系列快捷鍵,您可以透過 `tui.json` 進行自訂�
"model_cycle_favorite": "none",
"model_cycle_favorite_reverse": "none",
"variant_cycle": "ctrl+t",
+ "variant_list": "none",
"command_list": "ctrl+p",
"agent_list": "<leader>a",
"agent_cycle": "tab",