fix(tui): hide off think/verbose in footer

This commit is contained in:
Peter Steinberger
2026-01-23 07:02:56 +00:00
parent 8598e906ef
commit 6779ba2367

View File

@@ -452,11 +452,16 @@ export async function runTui(opts: TuiOptions) {
const reasoning = sessionInfo.reasoningLevel ?? "off"; const reasoning = sessionInfo.reasoningLevel ?? "off";
const reasoningLabel = const reasoningLabel =
reasoning === "on" ? "reasoning" : reasoning === "stream" ? "reasoning:stream" : null; reasoning === "on" ? "reasoning" : reasoning === "stream" ? "reasoning:stream" : null;
footer.setText( const footerParts = [
theme.dim( `agent ${agentLabel}`,
`agent ${agentLabel} | session ${sessionLabel} | ${modelLabel} | think ${think} | verbose ${verbose}${reasoningLabel ? ` | ${reasoningLabel}` : ""} | ${tokens}`, `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); const { openOverlay, closeOverlay } = createOverlayHandlers(tui, editor);