diff --git a/src/ui/App.tsx b/src/ui/App.tsx index 912ab12..1a34ccb 100644 --- a/src/ui/App.tsx +++ b/src/ui/App.tsx @@ -41,6 +41,7 @@ import { useWorkspace } from "./useWorkspace.ts"; import { usePullRequests } from "./usePullRequests.ts"; import { copyText, desktopNotify, ring } from "./terminalOut.ts"; import { colors, statusColor } from "./theme.ts"; +import { BAR, NO_BORDER } from "./edges.ts"; import { ThreadList } from "./ThreadList.tsx"; import { useTurns } from "./useTurns.ts"; import { ThreadView, type ConversationMouse, type ConversationTarget } from "./ThreadView.tsx"; @@ -969,6 +970,7 @@ export function App(props: { readonly session: T3Session; readonly config: Tui3C const listWidth = attached ? 0 : clampListWidth(listWidthPref ?? Math.min(46, Math.max(28, Math.floor(width * 0.3))), width); const detailsColumn = panel.show && width - listWidth - DETAILS_WIDTH >= MIN_CONVERSATION_WIDTH; const detailsInPlace = panel.show && !detailsColumn; + // The block's height: a row of padding on top, the text, then the model line inside it. const composerHeight = Math.min(MAX_COMPOSER_LINES, composerLines) + 2; const placeholder = mode !== "input" @@ -989,16 +991,16 @@ export function App(props: { readonly session: T3Session; readonly config: Tui3C : "Steer the agent (alt+enter to queue instead)" : "Ask anything"; // The model with its options, then the mode when it isn't full access; click or m to change. + // The name reads quiet; the effort and mode after it are the parts worth a colour. const pendingModel = draft ? undefined : models.pendingFor(threadShell?.id); - const footer = - currentModel && runtimeMode - ? [ - providerConfig ? modelSummary(providerConfig, currentModel) : currentModel.model === "default" ? "" : currentModel.model, - runtimeMode === "full-access" ? "" : (RUNTIME_MODE_LABELS[runtimeMode] ?? runtimeMode), - ] - .filter(Boolean) - .join(" · ") - : ""; + const footerParts = ((): { readonly name: string; readonly rest: string } => { + if (!currentModel || !runtimeMode) return { name: "", rest: "" }; + const summary = providerConfig ? modelSummary(providerConfig, currentModel) : currentModel.model === "default" ? "" : currentModel.model; + const [name = "", ...options] = summary.split(" · "); + const mode = runtimeMode === "full-access" ? "" : (RUNTIME_MODE_LABELS[runtimeMode] ?? runtimeMode); + return { name, rest: [...options, mode].filter(Boolean).join(" · ") }; + })(); + const composerBarColor = mode === "input" ? colors.accent : colors.border; const detailsPanel = (inPlace: boolean) => ( ) : null} {threadId || draft ? ( - setMode("input")} - > -