知了 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: a cause in a meeting's fishbone diagram is timed by the lines it cites, not a time past the meeting's end
wquguru316b9cace5a3
diff --git a/Sources/Cicada/Notes.swift b/Sources/Cicada/Notes.swiftindex ea88807..3c0ccb8 100644--- a/Sources/Cicada/Notes.swift+++ b/Sources/Cicada/Notes.swift@@ -682,7 +682,8 @@ final class NotesEngine: ObservableObject {if let f = t["fishbone"] as? [String: Any] {let branches = (f["branches"] as? [[String: Any]] ?? []).compactMap { b -> FishboneBranch? inlet label = str(b["label"])- return label.isEmpty ? nil : FishboneBranch(label: label, detail: str(b["detail"]), t: num(b["t"]),+ // From its lines, as a point's: the model's own "t" came back past the meeting's end.+ return label.isEmpty ? nil : FishboneBranch(label: label, detail: str(b["detail"]), t: time(b["evidence"]) ?? num(b["t"]),support: support(b["evidence"]))}if branches.count >= 2 { fish = Fishbone(question: str(f["question"]), branches: branches) }diff --git a/Tests/CicadaTests/NotesTests.swift b/Tests/CicadaTests/NotesTests.swiftindex 29bcb15..edbfa82 100644--- a/Tests/CicadaTests/NotesTests.swift+++ b/Tests/CicadaTests/NotesTests.swift@@ -14,6 +14,13 @@ import Testing/// A rewritten topic cites only its newest lines; its points keep when they were first said,/// and the topic starts no later than they do (a 35-minute replay showed 17:20 for points at 12:50).+ @Test func fishboneBranchTimeComesFromItsLines() {+ // The model's own "t" came back past the meeting's end (12300 s in a 9000 s meeting).+ let raw = #"{"topics":[{"title":"预算","evidence":["L1"],"points":[],"fishbone":{"question":"q","branches":[{"label":"a","t":12300,"evidence":["L2"]},{"label":"b","t":40}]}}]}"#+ let n = NotesEngine.parse(raw, times: [100, 200, 300], startedAt: 0)!+ #expect(n.topics[0].fishbone?.branches.map(\.t) == [200, 40])+ }+@Test func topicStartsNoLaterThanItsFirstPoint() {var old = MeetingNotes()old.topics = [topic(770, "油价", ["A", "B"], [678, 700])]