From 426dcfa3b0cacc79abac6c6f61a03613b572ad64 Mon Sep 17 00:00:00 2001 From: David Hill Date: Sun, 8 Mar 2026 00:46:26 +0000 Subject: [PATCH] tui: keep model + thinking selectors beside Add file People change models and thinking settings while composing, so keeping those controls next to the Add file button avoids hunting in the footer and reduces context switching mid-message. --- packages/app/src/components/prompt-input.tsx | 193 +++++++++---------- 1 file changed, 94 insertions(+), 99 deletions(-) diff --git a/packages/app/src/components/prompt-input.tsx b/packages/app/src/components/prompt-input.tsx index 62b16cd7f..ab12af752 100644 --- a/packages/app/src/components/prompt-input.tsx +++ b/packages/app/src/components/prompt-input.tsx @@ -1291,8 +1291,7 @@ export const PromptInput: Component = (props) => {
0.5 ? "auto" : "none", }} @@ -1321,6 +1320,99 @@ export const PromptInput: Component = (props) => { + + 0} + fallback={ + + + + } + > + + + + + + + {local.model.current()?.name ?? language.t("dialog.model.select.title")} + + + + + + + + (x === "default" ? language.t("common.default") : x)} - onSelect={(x) => local.model.variant.set(x === "default" ? undefined : x)} - class="capitalize max-w-[160px]" - valueClass="truncate text-13-regular" - triggerStyle={{ - height: "28px", - opacity: buttonsSpring(), - transform: `scale(${0.95 + buttonsSpring() * 0.05})`, - filter: `blur(${(1 - buttonsSpring()) * 2}px)`, - "pointer-events": buttonsSpring() > 0.5 ? "auto" : "none", - }} - variant="ghost" - /> -