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 !== groupWho || headerHtml) flushGroup();
if (headerHtml) html += headerHtml + '\n';
groupWho = who;
groupTexts.push(fmt);
const br = opts.newLine ? '<br>' : '';
const whoLabel = `<span class="speaker-label">${who}:</span> `;
html += `${br}${whoLabel}<p>${fmt}</p>`;
if (whoRaw !== undefined) whoLast = who;
} else {
flushGroup();
const br = opts.newLine ? '<br>' : '';