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)
| @@ -406,7 +406,7 @@ export class ReasoningHandler { | ||
| 406 | 406 | * Keeps track of the number of reasoning additions. |
| 407 | 407 | */ |
| 408 | 408 | export class PromptReasoning { |
| 409 | 409 | static REASONING_UI_PLACEHOLDERREASONING_PLACEHOLDER = '\u200B'; |
| 410 | 410 | |
| 411 | 411 | constructor() { |
| 412 | 412 | this.counter = 0; |
| @@ -437,8 +437,8 @@ export class PromptReasoning { | ||
| 437 | 437 | return content; |
| 438 | 438 | } |
| 439 | 439 | |
| 440 | 440 | // No reasoning provided or a legacy placeholder |
| 441 | 441 | if (!reasoning || reasoning === PromptReasoning.REASONING_PLACEHOLDER) { |
| 442 | 442 | return content; |
| 443 | 443 | } |
| 444 | 444 | |