Re-add reasoning placeholder check to prompt build - Was removed because placeholder is not needed anymore. But for compatibility with old saved chats from staging that might have this, we should keep it for a while (or forever)

c2377f0c13d54d0c530aaefccacf517c7d993bc0

Wolfsblvt <wolfsblvt@gmail.com>

1 files changed, +3 -3Ignore whitespace
public/scripts/reasoning.js+3 -3
@@ -406,7 +406,7 @@ export class ReasoningHandler {
406 * Keeps track of the number of reasoning additions.406 * Keeps track of the number of reasoning additions.
407 */407 */
408export class PromptReasoning {408export class PromptReasoning {
409 static REASONING_UI_PLACEHOLDER = '\u200B';409 static REASONING_PLACEHOLDER = '\u200B';
410410
411 constructor() {411 constructor() {
412 this.counter = 0;412 this.counter = 0;
@@ -437,8 +437,8 @@ export class PromptReasoning {
437 return content;437 return content;
438 }438 }
439439
440 // No reasoning provided440 // No reasoning provided or a legacy placeholder
441 if (!reasoning) {441 if (!reasoning || reasoning === PromptReasoning.REASONING_PLACEHOLDER) {
442 return content;442 return content;
443 }443 }
444444