summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx8
1 files changed, 5 insertions, 3 deletions
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 145fa9da0..d61fbcfdd 100644
--- a/packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx
+++ b/packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx
@@ -1065,9 +1065,11 @@ export function Prompt(props: PromptProps) {
<box gap={2} flexDirection="row">
<Switch>
<Match when={store.mode === "normal"}>
- <text fg={theme.text}>
- {keybind.print("variant_cycle")} <span style={{ fg: theme.textMuted }}>variants</span>
- </text>
+ <Show when={local.model.variant.list().length > 0}>
+ <text fg={theme.text}>
+ {keybind.print("variant_cycle")} <span style={{ fg: theme.textMuted }}>variants</span>
+ </text>
+ </Show>
<text fg={theme.text}>
{keybind.print("agent_cycle")} <span style={{ fg: theme.textMuted }}>agents</span>
</text>