Don't show 'Thinking: off' in footer when thinking is disabled

This commit is contained in:
Mario Zechner 2025-11-20 12:37:17 +01:00
parent cfcdcf055d
commit 23d6746bb9

View file

@ -88,11 +88,13 @@ export class FooterComponent {
// Add model name on the right side, plus thinking level if model supports it
const modelName = this.state.model?.id || "no-model";
// Add thinking level hint if model supports reasoning
// Add thinking level hint if model supports reasoning and thinking is enabled
let rightSide = modelName;
if (this.state.model?.reasoning) {
const thinkingLevel = this.state.thinkingLevel || "off";
rightSide = `${modelName} • Thinking: ${thinkingLevel}`;
if (thinkingLevel !== "off") {
rightSide = `${modelName} • Thinking: ${thinkingLevel}`;
}
}
const statsLeftWidth = visibleWidth(statsLeft);