Skip to content

fix(extension): cancel startup when screen capture ends - #3168

Merged
richiemcilroy merged 1 commit into
CapSoftware:mainfrom
AksharP5:screen-start-cancel
Oct 25, 2026
Merged

richiemcilroy merged 1 commit into
CapSoftware:mainfrom
AksharP5:screen-start-cancel

Conversation

@AksharP5

@AksharP5 AksharP5 commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

Ending screen sharing during the extension countdown could still start a microphone-only recording. The badge stayed active, and Stop uploaded audio with no video.

Check that captured video tracks are still live at the final start boundary, after asynchronous setup. Install the existing track-end handler there too. An ended source follows the existing canceled-start cleanup.

Closes #3167.

Same source ending before startup completes Before After
Recorder state Recording without live video Canceled, idle
Microphone Keeps recording Stopped
Native fixture upload after Stop 499 bytes, Opus audio only No chunks or upload
Normal Stop or source ending after startup Valid VP9/Opus recording Same valid recording

Three regressions fail on baseline. All nine recorder checks pass after the fix, covering countdown, recording-creation and manifest-persistence boundaries, cleanup, normal track-end handling and existing microphone modes. Independent Astra HIGH review approved the focused patch with no blockers, reran the nine tests and verified the retained media files.

Native Chromium evidence uses the production offscreen recorder and recorder-core with synthetic muted tracks, real MediaRecorder/IndexedDB and intercepted HTTP. Both startup-ending cases cancel with the patch; normal Stop and later source end retain matching 17,751-byte VP9/Opus recordings. Physical capture, packaged MV3 integration and authenticated backend processing were not tested. Local checks used cached Vite 6.4.2 rather than pinned 6.3.5. Current-head locked CI passes all 37 extension tests, 227 web tests, the full repository typecheck including the extension, and Biome formatting and lint. Greptile rates this head 5/5.

RetriggerView in GreptileConfidence Score: 5/5

The PR appears safe to merge; no actionable issues were found.

Summary

The extension now cancels startup when captured video tracks end during setup.

  • Screen sharing ending during setup cancels the recording start.

Review was based on source inspection. Tests were not run during this review.

Reviews (1) · Last reviewed commit: "fix: cancel extension startup when captu..." · Reviewed by Greptile

@vercel

vercel Bot commented Oct 25, 2026

Copy link
Copy Markdown
Contributor

@AksharP5 is attempting to deploy a commit to the Cap Software Inc Team on Vercel.

A member of the Team first needs to authorize it.

@richiemcilroy
richiemcilroy merged commit 08a15f2 into CapSoftware:main Oct 25, 2026
28 of 30 checks passed
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.

Ending screen sharing during extension startup starts a microphone-only recording

2 participants