diff --git a/src/ipc/handlers/chat_stream_handlers.ts b/src/ipc/handlers/chat_stream_handlers.ts index 20cd20a..aa13092 100644 --- a/src/ipc/handlers/chat_stream_handlers.ts +++ b/src/ipc/handlers/chat_stream_handlers.ts @@ -733,7 +733,7 @@ ${problemReport.problems }), { role: "assistant", - content: originalFullResponse, + content: removeNonEssentialTags(originalFullResponse), }, ...previousAttempts, { role: "user", content: problemFixPrompt }, @@ -753,7 +753,7 @@ ${problemReport.problems fullResponse = result.fullResponse; previousAttempts.push({ role: "assistant", - content: result.incrementalResponse, + content: removeNonEssentialTags(result.incrementalResponse), }); problemReport = await generateProblemReport({