From 6779ba23679653fb6e8cdc160fce348fe8fcfd7b Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Fri, 23 Jan 2026 07:02:56 +0000 Subject: [PATCH] fix(tui): hide off think/verbose in footer --- src/tui/tui.ts | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/tui/tui.ts b/src/tui/tui.ts index 69f6e779c..37e5752e8 100644 --- a/src/tui/tui.ts +++ b/src/tui/tui.ts @@ -452,11 +452,16 @@ export async function runTui(opts: TuiOptions) { const reasoning = sessionInfo.reasoningLevel ?? "off"; const reasoningLabel = reasoning === "on" ? "reasoning" : reasoning === "stream" ? "reasoning:stream" : null; - footer.setText( - theme.dim( - `agent ${agentLabel} | session ${sessionLabel} | ${modelLabel} | think ${think} | verbose ${verbose}${reasoningLabel ? ` | ${reasoningLabel}` : ""} | ${tokens}`, - ), - ); + const footerParts = [ + `agent ${agentLabel}`, + `session ${sessionLabel}`, + modelLabel, + think !== "off" ? `think ${think}` : null, + verbose !== "off" ? `verbose ${verbose}` : null, + reasoningLabel, + tokens, + ].filter(Boolean); + footer.setText(theme.dim(footerParts.join(" | "))); }; const { openOverlay, closeOverlay } = createOverlayHandlers(tui, editor);