From c8b103a9e818ffac03d0e4f78966c94a0d045c12 Mon Sep 17 00:00:00 2001 From: Wolfsblvt Date: Tue, 11 Feb 2025 18:41:44 +0100 Subject: [PATCH] Make "Thinking..." default to fix weird flicker --- public/scripts/reasoning.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/public/scripts/reasoning.js b/public/scripts/reasoning.js index daae88545..d156d69e5 100644 --- a/public/scripts/reasoning.js +++ b/public/scripts/reasoning.js @@ -383,12 +383,12 @@ export class ReasoningHandler { element.textContent = t`Thought for `; element.appendChild(span); data = String(secondsStr); - } else if (this.state === ReasoningState.Thinking) { - element.textContent = t`Thinking...`; - data = null; - } else { + } else if ([ReasoningState.Done, ReasoningState.Hidden].includes(this.state)) { element.textContent = t`Thought for some time`; data = 'unknown'; + } else { + element.textContent = t`Thinking...`; + data = null; } this.messageReasoningDetailsDom.dataset.duration = data;