fix: output CREATE text immediately instead of accumulating in group

This commit is contained in:
catarrh committed 2026-08-02 00:40:08 +03:00
1 parent 444d7e592b
commit 061086e844
1 file changed
+4 -2
+4 -2
View File
@@ -384,8 +384,10 @@ export async function assembleService(
if (who) { if (who) {
if (who !== groupWho || headerHtml) flushGroup(); if (who !== groupWho || headerHtml) flushGroup();
if (headerHtml) html += headerHtml + '\n'; if (headerHtml) html += headerHtml + '\n';
groupWho = who; const br = opts.newLine ? '<br>' : '';
groupTexts.push(fmt); const whoLabel = `<span class="speaker-label">${who}:</span> `;
html += `${br}${whoLabel}<p>${fmt}</p>`;
if (whoRaw !== undefined) whoLast = who;
} else { } else {
flushGroup(); flushGroup();
const br = opts.newLine ? '<br>' : ''; const br = opts.newLine ? '<br>' : '';