From 2485701835bd406bc17f6d9ba05b8caaf05bdd90 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sat, 10 Jan 2026 01:24:59 +0000 Subject: [PATCH] fix: hide tui reasoning label when off --- src/tui/tui.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/tui/tui.ts b/src/tui/tui.ts index 1852dba8b..5da4d942a 100644 --- a/src/tui/tui.ts +++ b/src/tui/tui.ts @@ -237,10 +237,16 @@ export async function runTui(opts: TuiOptions) { const think = sessionInfo.thinkingLevel ?? "off"; const verbose = sessionInfo.verboseLevel ?? "off"; const reasoning = sessionInfo.reasoningLevel ?? "off"; + const reasoningLabel = + reasoning === "on" + ? "reasoning" + : reasoning === "stream" + ? "reasoning:stream" + : null; const deliver = deliverDefault ? "on" : "off"; footer.setText( theme.dim( - `${connection} | agent ${agentLabel} | session ${sessionLabel} | model ${modelLabel} | think ${think} | verbose ${verbose} | reasoning ${reasoning} | ${tokens} | deliver ${deliver}`, + `${connection} | agent ${agentLabel} | session ${sessionLabel} | model ${modelLabel} | think ${think} | verbose ${verbose}${reasoningLabel ? ` | ${reasoningLabel}` : ""} | ${tokens} | deliver ${deliver}`, ), ); };