diff --git a/app/lib/runtime/enhanced-message-parser.ts b/app/lib/runtime/enhanced-message-parser.ts index 0c96313687..a07a323769 100644 --- a/app/lib/runtime/enhanced-message-parser.ts +++ b/app/lib/runtime/enhanced-message-parser.ts @@ -41,8 +41,8 @@ export class EnhancedStreamingMessageParser extends StreamingMessageParser { const enhancedInput = this._detectAndWrapCodeBlocks(messageId, input); if (enhancedInput !== input) { - // Reset and reparse with enhanced input - this.reset(); + // Reset only this message's state and reparse with enhanced input + this.resetMessage(messageId); output = super.parse(messageId, enhancedInput); } } @@ -524,4 +524,9 @@ ${content.trim()} this._processedCodeBlocks.clear(); this._artifactCounter = 0; } + + resetMessage(messageId: string) { + super.resetMessage(messageId); + this._processedCodeBlocks.delete(messageId); + } } diff --git a/app/lib/runtime/message-parser.ts b/app/lib/runtime/message-parser.ts index 47769e2589..976ae2011f 100644 --- a/app/lib/runtime/message-parser.ts +++ b/app/lib/runtime/message-parser.ts @@ -335,6 +335,10 @@ export class StreamingMessageParser { this.#messages.clear(); } + resetMessage(messageId: string) { + this.#messages.delete(messageId); + } + #parseActionTag(input: string, actionOpenIndex: number, actionEndIndex: number) { const actionTag = input.slice(actionOpenIndex, actionEndIndex + 1); diff --git a/wrangler.toml b/wrangler.toml deleted file mode 100644 index 72fdc2f4cb..0000000000 --- a/wrangler.toml +++ /dev/null @@ -1,6 +0,0 @@ -#:schema node_modules/wrangler/config-schema.json -name = "bolt" -compatibility_flags = ["nodejs_compat"] -compatibility_date = "2025-03-28" -pages_build_output_dir = "./build/client" -send_metrics = false