Skip to content

fix(stt): notify when batch transcription completes#5300

Merged
ComputelessComputer merged 3 commits into
mainfrom
fix/batch-completion-notification
May 22, 2026
Merged

fix(stt): notify when batch transcription completes#5300
ComputelessComputer merged 3 commits into
mainfrom
fix/batch-completion-notification

Conversation

@ComputelessComputer
Copy link
Copy Markdown
Collaborator

@ComputelessComputer ComputelessComputer commented May 22, 2026

Show a desktop notification after successful batch transcription when the app window is hidden or unfocused.


Note

Medium Risk
Adds new desktop notifications and new notification event handling paths (including stopping active sessions and opening sessions from notification keys), plus extends the notification source interface across TS/Rust/Swift; mistakes could lead to incorrect session navigation or unintended stops.

Overview
Adds a desktop notification when batch transcription completes, gated on the app window being unfocused/hidden (with a force override) and using a fresh per-notification key that still encodes the sessionId.

Extends notification handling so clicking notifications can directly open a specific session (via new NotificationSource.session or by parsing batch-completion keys), and adds an auto-stop “meeting ended?” prompt flow where accepting the notification stops the matching active session.

Refactors browser meeting auto-stop timing to use a single confirmation delay and introduces a scheduled-meeting early-end threshold that triggers the new prompt instead of auto-stopping. Adds a devtools Notifications panel to manually trigger these notifications, and updates Rust/Swift/TS notification source types plus tests for the new behaviors and key parsing/back-compat.

Reviewed by Cursor Bugbot for commit ce0e3b7. Bugbot is set up for automated code reviews on this repo. Configure here.

@netlify
Copy link
Copy Markdown

netlify Bot commented May 22, 2026

Deploy Preview for old-char canceled.

Name Link
🔨 Latest commit ce0e3b7
🔍 Latest deploy log https://app.netlify.com/projects/old-char/deploys/6a104a1a602a73000885d723

Comment thread apps/desktop/src/store/zustand/listener/general-batch.ts
@ComputelessComputer ComputelessComputer force-pushed the fix/batch-completion-notification branch 3 times, most recently from f50cb75 to 5a2943a Compare May 22, 2026 10:53
Comment thread apps/desktop/src/store/zustand/listener/general-batch.ts Outdated
Comment thread apps/desktop/src/services/event-listeners.tsx
Show a desktop notification after successful batch transcription when the app window is hidden or unfocused.
@ComputelessComputer ComputelessComputer force-pushed the fix/batch-completion-notification branch from 5a2943a to a9d5a5d Compare May 22, 2026 11:33
Copy link
Copy Markdown

@cursor cursor Bot left a comment

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 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 00c9c28. Configure here.

Comment thread apps/desktop/src/stt/contexts.tsx
* fix(stt): prompt before early browser auto-stop

Keep auto-stop confirmation at five seconds and ask users before stopping browser meetings that drop well before the scheduled end.

* fix(devtools): add auto-stop confirmation notification

Add a devtools button that previews the meeting-ended auto-stop prompt and uses the active live session when available.
Use unique batch completion notification keys and recover session IDs from notification keys when sources are missing.
@ComputelessComputer ComputelessComputer force-pushed the fix/batch-completion-notification branch from 00c9c28 to ce0e3b7 Compare May 22, 2026 12:20
@ComputelessComputer ComputelessComputer merged commit 5b418d4 into main May 22, 2026
15 checks passed
@ComputelessComputer ComputelessComputer deleted the fix/batch-completion-notification branch May 22, 2026 15:28
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