diff --git a/NucleicRemote/NucleicRemote/Views/Transcript/TranscriptProjection.swift b/NucleicRemote/NucleicRemote/Views/Transcript/TranscriptProjection.swift index f31ca2f..5ffe54c 100644 --- a/NucleicRemote/NucleicRemote/Views/Transcript/TranscriptProjection.swift +++ b/NucleicRemote/NucleicRemote/Views/Transcript/TranscriptProjection.swift @@ -146,9 +146,8 @@ enum TranscriptProjection { var locksByCall: [String: [NoteLock]] = [:] var folded = Set() for (i, item) in flat.enumerated() { - guard case .note(_, _, true) = item.kind, - case .note(let note) = noteEvent(item)?.kind ?? .turnCompleted(TurnCompleted()), - let lock = note.lock, !lock.paths.isEmpty else { continue } + guard case .note(_, _, true, let noteLock) = item.kind, + let lock = noteLock, !lock.paths.isEmpty else { continue } // Route each path to the nearest preceding edit card that touches it, so a multi-file // note brackets each file's own card. Fold only when *every* path lands on a card; a // partial match stays a single standalone row rather than splitting across cards.