diff --git a/assets/javascripts/discourse/lib/ai-streamer/progress-handlers.js b/assets/javascripts/discourse/lib/ai-streamer/progress-handlers.js index b06c525c..b4cbcb2c 100644 --- a/assets/javascripts/discourse/lib/ai-streamer/progress-handlers.js +++ b/assets/javascripts/discourse/lib/ai-streamer/progress-handlers.js @@ -113,6 +113,10 @@ export async function applyProgress(status, updater) { if (status.cooked) { await updater.setCooked(status.cooked); } + // Ensure the final summary is set + if (status.raw !== undefined) { + await updater.setRaw(status.raw, true); + } updater.streaming = false; }