The open source coding agent.
TypeScript
Hide variants hint when list empty (#9179)
opencode-agent[bot]93e43d8e5ea0
diff --git a/packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx b/packages/opencode/src/cli/cmd/tui/component/prompt/index.tsxindex 145fa9da0c3..d61fbcfdd86 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>