Skip to content

Split transcription Finish and Cancel for AuralKit 3.0 - #57

Merged
rudrankriyam merged 15 commits into
mainfrom
auralkit-3.0-lifecycle-pr
Nov 13, 2026
Merged

rudrankriyam merged 15 commits into
mainfrom
auralkit-3.0-lifecycle-pr

Conversation

@rudrankriyam

@rudrankriyam rudrankriyam commented Nov 13, 2026 •

Copy link
Copy Markdown
Member

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 with CancellationError. 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.

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

@rudrankriyam
rudrankriyam changed the base branch from auralkit-3.0-audio-converter to main November 13, 2026 13:24
@rudrankriyam
rudrankriyam marked this pull request as ready for review November 13, 2026 13:24
@rudrankriyam
rudrankriyam merged commit af625dc into main Nov 13, 2026
3 checks passed

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ 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 = ""

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 8ee6983. Configure here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant