知了 Cicada · 任何会议和直播的实时字幕、同声传译、AI 会议纪要,Mac、Windows、Linux、Android 免费开源。Live subtitles, interpreting and meeting notes for any call or stream, on Mac, Windows, Linux and Android.
Swift androidlinuxlive-captionsmacosmeeting-notesmenubar-appsimultaneous-interpretationspeech-recognitionsubtitlesswiftswiftuitranslationwindows
fix(windows): quitting right after ending a meeting keeps its last sentences instead of leaving an empty record
wqugurue49db5c2186d
diff --git a/site/changelog.json b/site/changelog.jsonindex bad3c64..fb64f6f 100644--- a/site/changelog.json+++ b/site/changelog.json@@ -325,6 +325,14 @@],"title": "用自己的 AI 服务时,纪要窗里“字幕和纪要等它恢复”这一行写出服务的地址,不再写“其他(兼容 OpenAI)”。","text": "和 Mac 一样,写的是你填的地址,比如 openrouter.ai。"+ },+ {+ "kind": "fixed",+ "platforms": [+ "windows"+ ],+ "title": "结束会议后马上退出知了,最后几句话不再丢掉,也不会多出一条空的会议记录。",+ "text": "退出前会等这场会议收好尾:还在翻译的话记下来,会议正常结束。"}]},diff --git a/windows/src/Cicada/App.cs b/windows/src/Cicada/App.csindex eb1061c..a77b529 100644--- a/windows/src/Cicada/App.cs+++ b/windows/src/Cicada/App.cs@@ -580,7 +580,18 @@ sealed class ControllerShowNotes();}- public async Task StopListening(DateTimeOffset? endedAt = null, bool auto = false)+ /// The meeting being ended: Quit waits for it, or a meeting ended a moment before quitting+ /// (its last sentences still out at the AI service) was never closed and came back empty.+ Task stopping = Task.CompletedTask;++ public Task StopListening(DateTimeOffset? endedAt = null, bool auto = false)+ {+ var t = Stopping(endedAt, auto);+ if (!t.IsCompleted) stopping = t; // a second, empty stop mustn't hide the one still running+ return t;+ }++ async Task Stopping(DateTimeOffset? endedAt, bool auto){var id = Listen.SessionId;endWatch = null;@@ -1112,6 +1123,7 @@ sealed class Controllerpublic async Task Quit(){if (Listen.Listening) await StopListening();+ else await stopping;Store.Flush();hotkey?.Dispose();talk?.Dispose();