Repository navigation
Split transcription Finish and Cancel for AuralKit 3.0 - #57
Conversation
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 8ee6983. Configure here.
| } catch is CancellationError { | ||
| // expected when stopped | ||
| partialText = "" | ||
| currentTimeRange = "" |
There was a problem hiding this comment.
Finish leaves leftover partial transcript
Medium Severity
Successful finishTranscription() no longer clears partialText or currentTimeRange. The old stopTranscription() always reset both, but the split now does that only in the CancellationError path. If Finish ends without a final result replacing the last volatile chunk, the demo keeps showing stale partial text after the session is idle.
Additional Locations (1)
Reviewed by Cursor Bugbot for commit 8ee6983. Configure here.


AuralKit 3.0 replaces
stopTranscribing()with two explicit operations.finishTranscribing()closes live input, drains accepted audio, and delivers final results.cancelTranscribing()abandons the run and ends the result stream withCancellationError. The demo and README show both choices.This is stacked on the OS 27 screen-audio PR so native stop can drain pending conversion before Finish closes analyzer input. Tests exercise cancellation during cleanup, empty input, a failing native stop, a capture delegate error during Finish, analyzer failures while capture is active, and a source ending before picker setup completes. All 73 package tests and strict SwiftLint passed locally. The combined 2.2 and 3.0 changes passed 76 tests. Retarget after the screen-audio PR lands. Recheck with the 2.2 video PR after it lands because both change file teardown.