fix: hide tui reasoning label when off
This commit is contained in:
@@ -237,10 +237,16 @@ export async function runTui(opts: TuiOptions) {
|
|||||||
const think = sessionInfo.thinkingLevel ?? "off";
|
const think = sessionInfo.thinkingLevel ?? "off";
|
||||||
const verbose = sessionInfo.verboseLevel ?? "off";
|
const verbose = sessionInfo.verboseLevel ?? "off";
|
||||||
const reasoning = sessionInfo.reasoningLevel ?? "off";
|
const reasoning = sessionInfo.reasoningLevel ?? "off";
|
||||||
|
const reasoningLabel =
|
||||||
|
reasoning === "on"
|
||||||
|
? "reasoning"
|
||||||
|
: reasoning === "stream"
|
||||||
|
? "reasoning:stream"
|
||||||
|
: null;
|
||||||
const deliver = deliverDefault ? "on" : "off";
|
const deliver = deliverDefault ? "on" : "off";
|
||||||
footer.setText(
|
footer.setText(
|
||||||
theme.dim(
|
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}`,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user