diff --git a/packages/app/src/components/prompt-input.tsx b/packages/app/src/components/prompt-input.tsx index 56f5296a8968..e6f933f0f769 100644 --- a/packages/app/src/components/prompt-input.tsx +++ b/packages/app/src/components/prompt-input.tsx @@ -35,6 +35,8 @@ import { DockShellForm, DockTray } from "@opencode-ai/ui/dock-surface" import { Icon } from "@opencode-ai/ui/icon" import { ProviderIcon } from "@opencode-ai/ui/provider-icon" import { Tooltip, TooltipKeybind } from "@opencode-ai/ui/tooltip" +import { KeybindV2 } from "@opencode-ai/ui/v2/keybind-v2" +import { TooltipV2 } from "@opencode-ai/ui/v2/tooltip-v2" import { IconButton } from "@opencode-ai/ui/icon-button" import { Select } from "@opencode-ai/ui/select" import { useDialog } from "@opencode-ai/ui/context/dialog" @@ -1362,7 +1364,7 @@ export const PromptInput: Component = (props) => { shouldAnimate: providersShouldFadeIn(), paid: props.controls.model.paid, title: language.t("command.model.choose"), - keybind: command.keybind("model.choose"), + keybind: command.keybindParts("model.choose"), model: props.controls.model.selection, providerID: props.controls.model.selection.current()?.provider?.id, modelName: props.controls.model.selection.current()?.name ?? language.t("dialog.model.select.title"), @@ -1379,7 +1381,7 @@ export const PromptInput: Component = (props) => { const showAgentControl = createMemo(() => props.controls.agents.visible && props.controls.agents.options.length > 0) const agentControlState = createMemo(() => ({ title: language.t("command.agent.cycle"), - keybind: command.keybind("agent.cycle"), + keybind: command.keybindParts("agent.cycle"), options: props.controls.agents.options, current: props.controls.agents.current, style: control(), @@ -1497,10 +1499,14 @@ export const PromptInput: Component = (props) => {
{fileAttachmentInput()} - + {language.t("prompt.action.attachFile")} + + + } > = (props) => { tabIndex={store.mode === "normal" ? undefined : -1} aria-label={language.t("prompt.action.attachFile")} /> - + @@ -1529,11 +1535,15 @@ export const PromptInput: Component = (props) => { !props.controls.model.selection.variant.current() && !store.variantOpen, }} > - + {language.t("command.model.variant.cycle")} + + + } > - +
) } @@ -1966,7 +1985,16 @@ function ComposerModelControl(props: { state: ComposerModelControlState }) { + + {props.state.title} + + + } + > - + } > - + + {props.state.title} + + + } + > - + )