fix(tui): hide off think/verbose in footer
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user