Skip to content

Private AI meeting notes that stay on your computer. No meeting bot. Free and open source for Mac, Windows and Linux. An alternative to Granola, Otter and Fireflies.

fix summary streaming jank and the waiting copy

Eric Brownroutee01637b6480
diff --git a/app/e2e/modelRecovery.spec.ts b/app/e2e/modelRecovery.spec.ts
index e704e8fa..cd24807c 100644
--- a/app/e2e/modelRecovery.spec.ts
+++ b/app/e2e/modelRecovery.spec.ts
@@ -72,7 +72,7 @@ test('a failed notes-model download explains waiting notes and answers, and retr
await expect(chatError).toBeVisible()
await chatError.getByTestId('notes-model-retry').click()
await expect(page.getByTestId('notes-model-error')).toHaveCount(0)
- await expect(page.getByTestId('note-enhanced-waiting')).toContainText('Getting ready to generate your summary')
+ await expect(page.getByTestId('note-enhanced-waiting')).toContainText('Reading the meeting')
await expect(page.getByTestId('note-enhanced')).toHaveAttribute('data-status', 'done', { timeout: 45_000 })
await expect(page.getByTestId('chat-turn').last()).toContainText('Tuesday', { timeout: 30_000 })
await expect(page.getByTestId('chat-turn').first()).toHaveAttribute('data-status', 'stopped')
diff --git a/app/e2e/onboarding.spec.ts b/app/e2e/onboarding.spec.ts
index fc686571..e20557f9 100644
--- a/app/e2e/onboarding.spec.ts
+++ b/app/e2e/onboarding.spec.ts
@@ -52,7 +52,7 @@ test('first run records as soon as speech and speakers are in; notes say they ar
await expect.poll(async () => (await page.evaluate((id) => window.yogurt.transcript.get(id), id)).length, { timeout: 30_000 }).toBeGreaterThanOrEqual(2)
await page.getByTestId('note-stop').click()
await page.getByRole('tab', { name: 'Summary', exact: true }).click()
- await expect(page.getByTestId('note-enhanced-waiting')).toContainText('Getting ready to generate your summary')
+ await expect(page.getByTestId('note-enhanced-waiting')).toContainText('Reading the meeting')
// a question waits too, and says why
await page.getByTestId('chat-open').click()
await page.getByTestId('chat-input').fill('What was decided?')
diff --git a/app/e2e/recordEverywhere.spec.ts b/app/e2e/recordEverywhere.spec.ts
index 76e11430..191b6721 100644
--- a/app/e2e/recordEverywhere.spec.ts
+++ b/app/e2e/recordEverywhere.spec.ts
@@ -78,7 +78,7 @@ test('a Mac waiting for the notes model shows what it always did (no download li
await expect(page.getByTestId('home')).toBeVisible({ timeout: 15_000 })
await record(page)
await page.getByTestId('note-stop').click()
- await expect(page.getByTestId('note-enhanced-waiting')).toContainText('Getting ready to generate your summary')
+ await expect(page.getByTestId('note-enhanced-waiting')).toContainText('Reading the meeting')
await expect(page.getByTestId('note-enhanced-model-download')).toHaveCount(0)
} finally { await app.close() }
})
diff --git a/app/src/renderer/src/screens/Note.tsx b/app/src/renderer/src/screens/Note.tsx
index 682a6737..dce55b09 100644
--- a/app/src/renderer/src/screens/Note.tsx
+++ b/app/src/renderer/src/screens/Note.tsx
@@ -499,7 +499,7 @@ function Enhanced({ notes, disabled, onChange, onBlur, onRetry, focus }: { focus
<p data-testid="note-enhanced-model-download" role="status" className="text-[15px] text-muted">{t('Your summary will be written once the notes model finishes downloading: {percent}', { percent })}</p>
)}>
<div data-testid="note-enhanced-waiting" aria-live="polite">
- <p className="writing-label mb-5 text-[15px] text-muted">{status === 'waiting' ? (notes.step === 'loading' ? t('Loading the notes model…') : t('Getting ready to generate your summary…')) : notes.part ? t('Reading a long meeting, part {part} of {of}…', { part: notes.part.part, of: notes.part.of }) : t('Generating your summary…')}</p>
+ <p className="writing-label mb-5 text-[15px] text-muted">{status === 'waiting' ? (notes.step === 'loading' ? t('Loading the notes model…') : t('Reading the meeting…')) : notes.part ? t('Reading a long meeting, part {part} of {of}…', { part: notes.part.part, of: notes.part.of }) : t('Generating your summary…')}</p>
<div className="flex flex-col gap-3" aria-hidden="true">
{[42, 88, 76, 64, 0, 36, 82, 70].map((w, i) => (w ? <span key={i} className="skeleton h-3 rounded-md" style={{ width: `${w}%`, animationDelay: `${i * 90}ms` }} /> : <span key={i} className="h-3" />))}
</div>
@@ -514,7 +514,8 @@ function Enhanced({ notes, disabled, onChange, onBlur, onRetry, focus }: { focus
<button onClick={onRetry} className="inline-error-action">{t('Try again')}</button>
</InlineError>}
<Editor focus={focus} testId="note-enhanced-editor" label={t('Summary')} className="enhanced" markdown={writing ? draft : notes.enhanced ?? ''} streaming={writing} editable={!writing && !disabled} onChange={onChange} onBlur={onBlur} />
- {writing && <p className="writing-label mt-4 text-xs text-muted" aria-live="polite">{t('Generating your summary…')}</p>}
+ {/* the caret dot and the Summarizing pill show progress; a visible label here would ride the end of the text up and down */}
+ {writing && <p className="sr-only" aria-live="polite">{t('Generating your summary…')}</p>}
</div>
)
}
diff --git a/app/src/renderer/src/styles.css b/app/src/renderer/src/styles.css
index c4fd91a4..f2827620 100644
--- a/app/src/renderer/src/styles.css
+++ b/app/src/renderer/src/styles.css
@@ -300,6 +300,8 @@ html.widget { --pill:#232326;--pill-ink:#F7F7FA;--accent:#B780FF;--pill-accent:v
animation: caret-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes caret-pulse { 50% { opacity: 0.35; } }
+/* before the first word the summary is one empty paragraph, whose placeholder line break would push the dot down a line */
+.streaming .note-prose > :last-child > br.ProseMirror-trailingBreak:only-child { display: none; }
.chat-answer > * + * { margin-top: 0.45em; }
@media (prefers-reduced-motion: reduce) { .chat-in, .fw { animation: none; transition: none; } .stream-caret::after, .stream-caret *::after, .streaming .note-prose::after, .streaming .note-prose *::after { animation: none; } }
@@ -503,7 +505,8 @@ input::selection, textarea::selection, .note-prose ::selection { background: var
.note-layout[data-tab-pointer=true] .note-tab-indicator { transition:transform 180ms cubic-bezier(.23,1,.32,1),width 180ms cubic-bezier(.23,1,.32,1); }
}
.note-content { min-height:0;min-width:0;flex:1; }
-.note-notes-pane { overflow-y:auto; }
+/* The summary grows past the fold while it streams; with a classic scrollbar, a gutter that appears mid-stream would shift the centred text sideways. */
+.main-window .note-notes-pane { overflow-y:auto;scrollbar-gutter:stable both-edges; }
.note-notes-pane[hidden] { display:none; }
.note-notes-body { padding-top:22px;padding-bottom:40px; }
.note-transcript-pane { display:flex;contain:layout style;--transcript-inset:calc(max(0px,(100% - 860px)/2) + clamp(20px,calc(10cqw - 42px),48px)); }
diff --git a/app/src/shared/locales/ar.json b/app/src/shared/locales/ar.json
index 93f715eb..8e60b644 100644
--- a/app/src/shared/locales/ar.json
+++ b/app/src/shared/locales/ar.json
@@ -172,7 +172,7 @@
"Generating your summary…": "جارٍ إنشاء ملخصك…",
"Get started": "لنبدأ",
"Getting ready to answer. Yogurt is still setting up.": "جارٍ التجهيز للإجابة. لا يزال Yogurt قيد الإعداد.",
- "Getting ready to generate your summary…": "جارٍ التجهيز لإنشاء ملخصك…",
+ "Reading the meeting…": "جارٍ قراءة الاجتماع…",
"Go to": "الانتقال إلى",
"Graduation cap": "قبعة تخرج",
"Great. Who is writing the copy?": "رائع. من سيكتب النص؟",
diff --git a/app/src/shared/locales/bn.json b/app/src/shared/locales/bn.json
index 15764612..4adff248 100644
--- a/app/src/shared/locales/bn.json
+++ b/app/src/shared/locales/bn.json
@@ -164,7 +164,7 @@
"Generating your summary…": "আপনার সারাংশ তৈরি হচ্ছে…",
"Get started": "শুরু করুন",
"Getting ready to answer. Yogurt is still setting up.": "উত্তরের প্রস্তুতি চলছে। Yogurt এখনও সেট আপ হচ্ছে।",
- "Getting ready to generate your summary…": "আপনার সারাংশ তৈরির প্রস্তুতি চলছে…",
+ "Reading the meeting…": "মিটিং পড়া হচ্ছে…",
"Go to": "এখানে যান",
"Graduation cap": "স্নাতকের টুপি",
"Great. Who is writing the copy?": "দারুণ। কপি কে লিখছে?",
diff --git a/app/src/shared/locales/cs.json b/app/src/shared/locales/cs.json
index f49c7674..1cd7bf8e 100644
--- a/app/src/shared/locales/cs.json
+++ b/app/src/shared/locales/cs.json
@@ -168,7 +168,7 @@
"Generating your summary…": "Vytváření souhrnu…",
"Get started": "Začít",
"Getting ready to answer. Yogurt is still setting up.": "Příprava odpovědi. Yogurt se ještě nastavuje.",
- "Getting ready to generate your summary…": "Příprava souhrnu…",
+ "Reading the meeting…": "Čtení schůzky…",
"Go to": "Přejít na",
"Graduation cap": "Absolventská čepice",
"Great. Who is writing the copy?": "Super. Kdo píše text?",
diff --git a/app/src/shared/locales/da.json b/app/src/shared/locales/da.json
index 601c45a6..1ccaa39c 100644
--- a/app/src/shared/locales/da.json
+++ b/app/src/shared/locales/da.json
@@ -164,7 +164,7 @@
"Generating your summary…": "Laver dit resumé…",
"Get started": "Kom i gang",
"Getting ready to answer. Yogurt is still setting up.": "Gør klar til at svare. Yogurt er stadig ved at blive sat op.",
- "Getting ready to generate your summary…": "Gør klar til at lave dit resumé…",
+ "Reading the meeting…": "Læser mødet…",
"Go to": "Gå til",
"Graduation cap": "Studenterhue",
"Great. Who is writing the copy?": "Super. Hvem skriver teksten?",
diff --git a/app/src/shared/locales/de.json b/app/src/shared/locales/de.json
index d6531b15..b0d0e472 100644
--- a/app/src/shared/locales/de.json
+++ b/app/src/shared/locales/de.json
@@ -164,7 +164,7 @@
"Generating your summary…": "Deine Zusammenfassung wird erstellt …",
"Get started": "Los geht’s",
"Getting ready to answer. Yogurt is still setting up.": "Antwort wird vorbereitet. Yogurt wird noch eingerichtet.",
- "Getting ready to generate your summary…": "Zusammenfassung wird vorbereitet …",
+ "Reading the meeting…": "Meeting wird gelesen …",
"Go to": "Gehe zu",
"Graduation cap": "Absolventenhut",
"Great. Who is writing the copy?": "Super. Wer schreibt den Text?",
diff --git a/app/src/shared/locales/el.json b/app/src/shared/locales/el.json
index e8f0156e..05a708f6 100644
--- a/app/src/shared/locales/el.json
+++ b/app/src/shared/locales/el.json
@@ -164,7 +164,7 @@
"Generating your summary…": "Δημιουργείται η σύνοψή σας…",
"Get started": "Ξεκινήστε",
"Getting ready to answer. Yogurt is still setting up.": "Προετοιμάζεται η απάντηση. Το Yogurt ρυθμίζεται ακόμα.",
- "Getting ready to generate your summary…": "Προετοιμάζεται η σύνοψή σας…",
+ "Reading the meeting…": "Ανάγνωση της σύσκεψης…",
"Go to": "Μετάβαση",
"Graduation cap": "Καπέλο αποφοίτησης",
"Great. Who is writing the copy?": "Τέλεια. Ποιος γράφει το κείμενο;",
diff --git a/app/src/shared/locales/es.json b/app/src/shared/locales/es.json
index b6615589..10e1d96b 100644
--- a/app/src/shared/locales/es.json
+++ b/app/src/shared/locales/es.json
@@ -166,7 +166,7 @@
"Generating your summary…": "Generando tu resumen…",
"Get started": "Empezar",
"Getting ready to answer. Yogurt is still setting up.": "Preparando la respuesta. Yogurt aún se está configurando.",
- "Getting ready to generate your summary…": "Preparando tu resumen…",
+ "Reading the meeting…": "Leyendo la reunión…",
"Go to": "Ir a",
"Graduation cap": "Birrete",
"Great. Who is writing the copy?": "Genial. ¿Quién escribe el texto?",
diff --git a/app/src/shared/locales/fi.json b/app/src/shared/locales/fi.json
index 5111d957..113a5f7d 100644
--- a/app/src/shared/locales/fi.json
+++ b/app/src/shared/locales/fi.json
@@ -164,7 +164,7 @@
"Generating your summary…": "Luodaan yhteenvetoa…",
"Get started": "Aloita",
"Getting ready to answer. Yogurt is still setting up.": "Valmistellaan vastausta. Yogurtin käyttöönotto on vielä kesken.",
- "Getting ready to generate your summary…": "Valmistellaan yhteenvetoa…",
+ "Reading the meeting…": "Luetaan kokousta…",
"Go to": "Siirry",
"Graduation cap": "Valmistujaislakki",
"Great. Who is writing the copy?": "Hienoa. Kuka kirjoittaa tekstin?",
diff --git a/app/src/shared/locales/fil.json b/app/src/shared/locales/fil.json
index 452c3b54..09364edb 100644
--- a/app/src/shared/locales/fil.json
+++ b/app/src/shared/locales/fil.json
@@ -164,7 +164,7 @@
"Generating your summary…": "Ginagawa ang buod mo…",
"Get started": "Magsimula",
"Getting ready to answer. Yogurt is still setting up.": "Naghahandang sumagot. Sine-set up pa ang Yogurt.",
- "Getting ready to generate your summary…": "Naghahandang gawin ang buod mo…",
+ "Reading the meeting…": "Binabasa ang meeting…",
"Go to": "Pumunta sa",
"Graduation cap": "Toga cap",
"Great. Who is writing the copy?": "Ayos. Sino ang sumusulat ng copy?",
diff --git a/app/src/shared/locales/fr.json b/app/src/shared/locales/fr.json
index 1f915c23..eda6a4dc 100644
--- a/app/src/shared/locales/fr.json
+++ b/app/src/shared/locales/fr.json
@@ -166,7 +166,7 @@
"Generating your summary…": "Génération de votre résumé…",
"Get started": "C’est parti",
"Getting ready to answer. Yogurt is still setting up.": "Préparation de la réponse. Yogurt est encore en cours de configuration.",
- "Getting ready to generate your summary…": "Préparation de votre résumé…",
+ "Reading the meeting…": "Lecture de la réunion…",
"Go to": "Aller à",
"Graduation cap": "Toque de diplômé",
"Great. Who is writing the copy?": "Super. Qui écrit le texte ?",
diff --git a/app/src/shared/locales/he.json b/app/src/shared/locales/he.json
index ec34b073..ced40094 100644
--- a/app/src/shared/locales/he.json
+++ b/app/src/shared/locales/he.json
@@ -166,7 +166,7 @@
"Generating your summary…": "יוצר את הסיכום…",
"Get started": "מתחילים",
"Getting ready to answer. Yogurt is still setting up.": "מתכונן לענות. Yogurt עדיין בהגדרה.",
- "Getting ready to generate your summary…": "מתכונן ליצור את הסיכום…",
+ "Reading the meeting…": "קורא את הפגישה…",
"Go to": "מעבר אל",
"Graduation cap": "כובע סיום לימודים",
"Great. Who is writing the copy?": "מעולה. מי כותב את הטקסט?",
diff --git a/app/src/shared/locales/hi.json b/app/src/shared/locales/hi.json
index f550956e..d54aa9ca 100644
--- a/app/src/shared/locales/hi.json
+++ b/app/src/shared/locales/hi.json
@@ -164,7 +164,7 @@
"Generating your summary…": "आपका सारांश बन रहा है…",
"Get started": "शुरू करें",
"Getting ready to answer. Yogurt is still setting up.": "जवाब की तैयारी हो रही है। Yogurt अभी भी सेट हो रहा है।",
- "Getting ready to generate your summary…": "आपका सारांश बनाने की तैयारी हो रही है…",
+ "Reading the meeting…": "मीटिंग पढ़ी जा रही है…",
"Go to": "यहाँ जाएँ",
"Graduation cap": "स्नातक टोपी",
"Great. Who is writing the copy?": "बढ़िया। कॉपी कौन लिख रहा है?",
diff --git a/app/src/shared/locales/hu.json b/app/src/shared/locales/hu.json
index 9ee07cb5..b3bd68fe 100644
--- a/app/src/shared/locales/hu.json
+++ b/app/src/shared/locales/hu.json
@@ -164,7 +164,7 @@
"Generating your summary…": "Készül az összefoglaló…",
"Get started": "Kezdjük",
"Getting ready to answer. Yogurt is still setting up.": "Készül a válasz. A Yogurt beállítása még tart.",
- "Getting ready to generate your summary…": "Készülődik az összefoglaló…",
+ "Reading the meeting…": "A megbeszélés olvasása…",
"Go to": "Ugrás",
"Graduation cap": "Diplomás sapka",
"Great. Who is writing the copy?": "Szuper. Ki írja a szöveget?",
diff --git a/app/src/shared/locales/id.json b/app/src/shared/locales/id.json
index 18f41feb..435f51ac 100644
--- a/app/src/shared/locales/id.json
+++ b/app/src/shared/locales/id.json
@@ -158,7 +158,7 @@
"Generating your summary…": "Membuat ringkasan Anda…",
"Get started": "Mulai",
"Getting ready to answer. Yogurt is still setting up.": "Bersiap menjawab. Yogurt masih disiapkan.",
- "Getting ready to generate your summary…": "Bersiap membuat ringkasan Anda…",
+ "Reading the meeting…": "Membaca rapat…",
"Go to": "Buka",
"Graduation cap": "Topi wisuda",
"Great. Who is writing the copy?": "Bagus. Siapa yang menulis teksnya?",
diff --git a/app/src/shared/locales/it.json b/app/src/shared/locales/it.json
index e50a474b..cd346915 100644
--- a/app/src/shared/locales/it.json
+++ b/app/src/shared/locales/it.json
@@ -166,7 +166,7 @@
"Generating your summary…": "Creazione del riepilogo…",
"Get started": "Inizia",
"Getting ready to answer. Yogurt is still setting up.": "Preparazione della risposta. Yogurt è ancora in configurazione.",
- "Getting ready to generate your summary…": "Preparazione del riepilogo…",
+ "Reading the meeting…": "Lettura della riunione…",
"Go to": "Vai a",
"Graduation cap": "Tocco di laurea",
"Great. Who is writing the copy?": "Ottimo. Chi scrive i testi?",
diff --git a/app/src/shared/locales/ja.json b/app/src/shared/locales/ja.json
index a9e431c2..24524d9b 100644
--- a/app/src/shared/locales/ja.json
+++ b/app/src/shared/locales/ja.json
@@ -158,7 +158,7 @@
"Generating your summary…": "要約を作成しています…",
"Get started": "はじめる",
"Getting ready to answer. Yogurt is still setting up.": "回答の準備中です。Yogurtはまだセットアップ中です。",
- "Getting ready to generate your summary…": "要約を作成する準備をしています…",
+ "Reading the meeting…": "ミーティングを読んでいます…",
"Go to": "移動",
"Graduation cap": "卒業帽",
"Great. Who is writing the copy?": "いいですね。コピーは誰が書きますか?",
diff --git a/app/src/shared/locales/ko.json b/app/src/shared/locales/ko.json
index def46975..98e08d57 100644
--- a/app/src/shared/locales/ko.json
+++ b/app/src/shared/locales/ko.json
@@ -158,7 +158,7 @@
"Generating your summary…": "요약을 만드는 중…",
"Get started": "시작하기",
"Getting ready to answer. Yogurt is still setting up.": "답변을 준비하는 중이에요. Yogurt를 아직 설정하고 있어요.",
- "Getting ready to generate your summary…": "요약 만들 준비를 하는 중…",
+ "Reading the meeting…": "회의를 읽는 중…",
"Go to": "이동",
"Graduation cap": "학사모",
"Great. Who is writing the copy?": "좋아요. 문구는 누가 쓰나요?",
diff --git a/app/src/shared/locales/ms.json b/app/src/shared/locales/ms.json
index 6aed2374..ace69e29 100644
--- a/app/src/shared/locales/ms.json
+++ b/app/src/shared/locales/ms.json
@@ -158,7 +158,7 @@
"Generating your summary…": "Menjana ringkasan anda…",
"Get started": "Mula",
"Getting ready to answer. Yogurt is still setting up.": "Bersedia untuk menjawab. Yogurt masih disediakan.",
- "Getting ready to generate your summary…": "Bersedia untuk menjana ringkasan anda…",
+ "Reading the meeting…": "Membaca mesyuarat…",
"Go to": "Pergi ke",
"Graduation cap": "Topi graduasi",
"Great. Who is writing the copy?": "Bagus. Siapa yang menulis teks?",
diff --git a/app/src/shared/locales/nb.json b/app/src/shared/locales/nb.json
index 5288a5cc..8f1e9b50 100644
--- a/app/src/shared/locales/nb.json
+++ b/app/src/shared/locales/nb.json
@@ -164,7 +164,7 @@
"Generating your summary…": "Lager sammendraget ditt…",
"Get started": "Kom i gang",
"Getting ready to answer. Yogurt is still setting up.": "Gjør klar til å svare. Yogurt settes fortsatt opp.",
- "Getting ready to generate your summary…": "Gjør klar til å lage sammendraget ditt…",
+ "Reading the meeting…": "Leser møtet…",
"Go to": "Gå til",
"Graduation cap": "Eksamenhatt",
"Great. Who is writing the copy?": "Supert. Hvem skriver teksten?",
diff --git a/app/src/shared/locales/nl.json b/app/src/shared/locales/nl.json
index 9bfa3e54..781ea23e 100644
--- a/app/src/shared/locales/nl.json
+++ b/app/src/shared/locales/nl.json
@@ -164,7 +164,7 @@
"Generating your summary…": "Je samenvatting wordt gemaakt…",
"Get started": "Aan de slag",
"Getting ready to answer. Yogurt is still setting up.": "Antwoord wordt voorbereid. Yogurt wordt nog ingesteld.",
- "Getting ready to generate your summary…": "Je samenvatting wordt voorbereid…",
+ "Reading the meeting…": "Meeting lezen…",
"Go to": "Ga naar",
"Graduation cap": "Afstudeerhoed",
"Great. Who is writing the copy?": "Top. Wie schrijft de tekst?",
diff --git a/app/src/shared/locales/pl.json b/app/src/shared/locales/pl.json
index da9582ad..60cfe07b 100644
--- a/app/src/shared/locales/pl.json
+++ b/app/src/shared/locales/pl.json
@@ -168,7 +168,7 @@
"Generating your summary…": "Tworzenie podsumowania…",
"Get started": "Zaczynajmy",
"Getting ready to answer. Yogurt is still setting up.": "Przygotowywanie odpowiedzi. Yogurt wciąż się konfiguruje.",
- "Getting ready to generate your summary…": "Przygotowywanie podsumowania…",
+ "Reading the meeting…": "Czytanie spotkania…",
"Go to": "Przejdź do",
"Graduation cap": "Biret",
"Great. Who is writing the copy?": "Świetnie. Kto pisze tekst?",
diff --git a/app/src/shared/locales/pt-BR.json b/app/src/shared/locales/pt-BR.json
index 88854097..f8abcb4a 100644
--- a/app/src/shared/locales/pt-BR.json
+++ b/app/src/shared/locales/pt-BR.json
@@ -166,7 +166,7 @@
"Generating your summary…": "Gerando seu resumo…",
"Get started": "Começar",
"Getting ready to answer. Yogurt is still setting up.": "Preparando a resposta. O Yogurt ainda está sendo configurado.",
- "Getting ready to generate your summary…": "Preparando seu resumo…",
+ "Reading the meeting…": "Lendo a reunião…",
"Go to": "Ir para",
"Graduation cap": "Chapéu de formatura",
"Great. Who is writing the copy?": "Ótimo. Quem vai escrever o texto?",
diff --git a/app/src/shared/locales/ro.json b/app/src/shared/locales/ro.json
index 15169dc6..64d0fc1e 100644
--- a/app/src/shared/locales/ro.json
+++ b/app/src/shared/locales/ro.json
@@ -166,7 +166,7 @@
"Generating your summary…": "Se generează rezumatul…",
"Get started": "Să începem",
"Getting ready to answer. Yogurt is still setting up.": "Se pregătește răspunsul. Yogurt încă se configurează.",
- "Getting ready to generate your summary…": "Se pregătește rezumatul…",
+ "Reading the meeting…": "Se citește întâlnirea…",
"Go to": "Mergi la",
"Graduation cap": "Tocă de absolvire",
"Great. Who is writing the copy?": "Super. Cine scrie textul?",
diff --git a/app/src/shared/locales/ru.json b/app/src/shared/locales/ru.json
index 09c434f1..80b91206 100644
--- a/app/src/shared/locales/ru.json
+++ b/app/src/shared/locales/ru.json
@@ -168,7 +168,7 @@
"Generating your summary…": "Создаём сводку…",
"Get started": "Начать",
"Getting ready to answer. Yogurt is still setting up.": "Готовим ответ. Yogurt ещё настраивается.",
- "Getting ready to generate your summary…": "Готовимся создать сводку…",
+ "Reading the meeting…": "Читаем встречу…",
"Go to": "Перейти",
"Graduation cap": "Академическая шапочка",
"Great. Who is writing the copy?": "Отлично. Кто пишет текст?",
diff --git a/app/src/shared/locales/sv.json b/app/src/shared/locales/sv.json
index a17d5fe4..bf2f06a3 100644
--- a/app/src/shared/locales/sv.json
+++ b/app/src/shared/locales/sv.json
@@ -164,7 +164,7 @@
"Generating your summary…": "Skapar din sammanfattning…",
"Get started": "Kom igång",
"Getting ready to answer. Yogurt is still setting up.": "Förbereder svaret. Yogurt håller fortfarande på att konfigureras.",
- "Getting ready to generate your summary…": "Förbereder din sammanfattning…",
+ "Reading the meeting…": "Läser mötet…",
"Go to": "Gå till",
"Graduation cap": "Examensmössa",
"Great. Who is writing the copy?": "Toppen. Vem skriver texten?",
diff --git a/app/src/shared/locales/th.json b/app/src/shared/locales/th.json
index b13d74db..9ae2c27b 100644
--- a/app/src/shared/locales/th.json
+++ b/app/src/shared/locales/th.json
@@ -158,7 +158,7 @@
"Generating your summary…": "กำลังสร้างสรุป…",
"Get started": "เริ่มเลย",
"Getting ready to answer. Yogurt is still setting up.": "กำลังเตรียมตอบ Yogurt ยังตั้งค่าอยู่",
- "Getting ready to generate your summary…": "กำลังเตรียมสร้างสรุป…",
+ "Reading the meeting…": "กำลังอ่านการประชุม…",
"Go to": "ไปที่",
"Graduation cap": "หมวกรับปริญญา",
"Great. Who is writing the copy?": "เยี่ยม ใครเป็นคนเขียนข้อความ",
diff --git a/app/src/shared/locales/tr.json b/app/src/shared/locales/tr.json
index 909af17f..d10eb631 100644
--- a/app/src/shared/locales/tr.json
+++ b/app/src/shared/locales/tr.json
@@ -164,7 +164,7 @@
"Generating your summary…": "Özetiniz oluşturuluyor…",
"Get started": "Başlayalım",
"Getting ready to answer. Yogurt is still setting up.": "Yanıt hazırlanıyor. Yogurt hâlâ kuruluyor.",
- "Getting ready to generate your summary…": "Özetiniz hazırlanıyor…",
+ "Reading the meeting…": "Toplantı okunuyor…",
"Go to": "Git",
"Graduation cap": "Mezuniyet kepi",
"Great. Who is writing the copy?": "Harika. Metni kim yazıyor?",
diff --git a/app/src/shared/locales/uk.json b/app/src/shared/locales/uk.json
index cb105682..bd5d8375 100644
--- a/app/src/shared/locales/uk.json
+++ b/app/src/shared/locales/uk.json
@@ -168,7 +168,7 @@
"Generating your summary…": "Створюємо підсумок…",
"Get started": "Почати",
"Getting ready to answer. Yogurt is still setting up.": "Готуємо відповідь. Yogurt ще налаштовується.",
- "Getting ready to generate your summary…": "Готуємося створити підсумок…",
+ "Reading the meeting…": "Читаємо зустріч…",
"Go to": "Перейти",
"Graduation cap": "Академічна шапочка",
"Great. Who is writing the copy?": "Чудово. Хто пише текст?",
diff --git a/app/src/shared/locales/vi.json b/app/src/shared/locales/vi.json
index 1c1c2c84..905d6799 100644
--- a/app/src/shared/locales/vi.json
+++ b/app/src/shared/locales/vi.json
@@ -158,7 +158,7 @@
"Generating your summary…": "Đang tạo tóm tắt…",
"Get started": "Bắt đầu",
"Getting ready to answer. Yogurt is still setting up.": "Đang chuẩn bị trả lời. Yogurt vẫn đang được thiết lập.",
- "Getting ready to generate your summary…": "Đang chuẩn bị tạo tóm tắt…",
+ "Reading the meeting…": "Đang đọc cuộc họp…",
"Go to": "Đi đến",
"Graduation cap": "Mũ tốt nghiệp",
"Great. Who is writing the copy?": "Tuyệt. Ai viết nội dung?",
diff --git a/app/src/shared/locales/zh-CN.json b/app/src/shared/locales/zh-CN.json
index 016b6b47..c16943b3 100644
--- a/app/src/shared/locales/zh-CN.json
+++ b/app/src/shared/locales/zh-CN.json
@@ -158,7 +158,7 @@
"Generating your summary…": "正在生成摘要…",
"Get started": "开始使用",
"Getting ready to answer. Yogurt is still setting up.": "正在准备回答。Yogurt 仍在设置中。",
- "Getting ready to generate your summary…": "正在准备生成摘要…",
+ "Reading the meeting…": "正在读取会议…",
"Go to": "前往",
"Graduation cap": "毕业帽",
"Great. Who is writing the copy?": "好的。文案谁来写?",
diff --git a/app/src/shared/locales/zh-TW.json b/app/src/shared/locales/zh-TW.json
index 91c976df..972095fc 100644
--- a/app/src/shared/locales/zh-TW.json
+++ b/app/src/shared/locales/zh-TW.json
@@ -158,7 +158,7 @@
"Generating your summary…": "正在產生摘要…",
"Get started": "開始使用",
"Getting ready to answer. Yogurt is still setting up.": "正在準備回答。Yogurt 仍在設定中。",
- "Getting ready to generate your summary…": "正在準備產生摘要…",
+ "Reading the meeting…": "正在讀取會議…",
"Go to": "前往",
"Graduation cap": "畢業帽",
"Great. Who is writing the copy?": "好。文案誰來寫?",
diff --git a/app/src/shared/markdown.ts b/app/src/shared/markdown.ts
index fa1eca59..b8cd16ff 100644
--- a/app/src/shared/markdown.ts
+++ b/app/src/shared/markdown.ts
@@ -130,8 +130,9 @@ const para = (text: string, o: Opts): PMNode => {
// ---------- blocks ----------
export function mdToDoc(md: string, o: Opts = {}): PMNode {
- // A trailing list marker is still arriving; showing it as a paragraph makes the text flicker.
- if (o.streaming) md = md.replace(/(^|\n)[\t ]*(?:[-*+]|\d+[.)])[\t ]*$/, '')
+ // While streaming, nothing shows until it has a character to show: a trailing blank line or a bare list or
+ // heading marker would open an empty block, and the caret dot would drop to it and back up as text arrives.
+ if (o.streaming) md = md.trimEnd().replace(/(^|\n)[\t ]*(?:[-*+]|\d+[.)]|#{1,6})$/, '').trimEnd()
const content: PMNode[] = []
// open lists, outermost first: the indent their items start at, and the list node
let stack: Array<{ indent: number; list: PMNode }> = []
@@ -166,9 +167,18 @@ export function mdToDoc(md: string, o: Opts = {}): PMNode {
}
content.push(para(raw, o))
}
+ if (o.streaming) withoutEmptyEnd(content)
return { type: 'doc', content: content.length ? content : [{ type: 'paragraph' }] }
}
+const hasText = (n: PMNode): boolean => !!n.text?.trim() || !!n.content?.some(hasText)
+/** while streaming, a block at the end with no text yet (a bullet whose bold has only just opened) waits for its text, so the dot doesn't drop to it and back */
+function withoutEmptyEnd(nodes: PMNode[]) {
+ while (nodes.length && !hasText(nodes.at(-1)!)) nodes.pop()
+ const last = nodes.at(-1)
+ if (last?.content && /List$|^listItem$/.test(last.type)) withoutEmptyEnd(last.content)
+}
+
// ---------- back to Markdown ----------
const OPEN: Record<string, (m: Mark) => string> = { link: () => '[', mine: () => '<mine>', bold: () => '**', italic: () => '*' }
diff --git a/app/test/markdown.test.ts b/app/test/markdown.test.ts
index 4e9c7487..03375cb4 100644
--- a/app/test/markdown.test.ts
+++ b/app/test/markdown.test.ts
@@ -82,6 +82,19 @@ describe('markdown', () => {
}
expect(mdToDoc('Plan\n-\nDone', { streaming: true }).content).toHaveLength(3)
})
+ it('while streaming, opens no empty block for a blank line or a bare heading marker', () => {
+ for (const tail of ['\n', '\n\n', ' ', '\n\n#', '\n\n## ', '\n###'])
+ expect(mdToDoc(`Plan${tail}`, { streaming: true })).toEqual(mdToDoc('Plan'))
+ expect(mdToDoc('Plan\n\n## Next', { streaming: true }).content!.at(-1)!.type).toBe('heading')
+ expect(mdToDoc('Plan\n\n')).not.toEqual(mdToDoc('Plan'))
+ })
+ it('while streaming, a block at the end with no text yet waits for its text', () => {
+ for (const tail of ['\n- **', '\n## **', '\n- [', '\n- <mi'])
+ expect(mdToDoc(`Plan${tail}`, { streaming: true })).toEqual(mdToDoc('Plan'))
+ expect(mdToDoc('- one\n - **', { streaming: true })).toEqual(mdToDoc('- one'))
+ expect(mdToDoc('- one\n- **Chr', { streaming: true }).content![0].content).toHaveLength(2)
+ expect(mdToDoc('**', { streaming: true })).toEqual(mdToDoc(''))
+ })
it('while streaming, a mark still open runs to the end and a half-written tag is hidden', () => {
const doc = mdToDoc('- **Maya', { streaming: true })