Skip to content

fix(web): release comment capture after browser recorder failures - #3466

Open
vedanth-jadhav wants to merge 1 commit into
CapSoftware:mainfrom
vedanth-jadhav:fix/web-comment-recorder-errors
Open

vedanth-jadhav wants to merge 1 commit into
CapSoftware:mainfrom
vedanth-jadhav:fix/web-comment-recorder-errors

Conversation

@vedanth-jadhav

@vedanth-jadhav vedanth-jadhav commented Oct 27, 2026 •

Copy link
Copy Markdown

When a browser encoder errors or stops unexpectedly, the voice and video comment recorders can continue displaying an active recording while retaining microphone or camera capture. An encoder failure during a requested stop is also only logged, leaving no user-facing explanation.

Observe the existing recorder error state, release capture and timers, discard the failed take, and offer a retry. Video comments display an error; voice comments display an explicit interrupted-recording message. Errors during a requested stop also surface instead of producing a partial comment.

Validation: 19 focused tests pass, including voice/video browser error and unexpected-stop cases, errors during a requested stop, the visible voice retry UI and existing recorder setup tests. Four new unexpected-stop cases fail on main 97c8d63; the two stop-in-progress cases fail before their follow-up fix. Tests use mounted React hooks and controlled MediaRecorder events; physical capture devices were not tested. Scoped strict TypeScript for both hooks and their lifecycle tests, Biome, CI YAML parsing and git diff --check pass; full web build/typecheck was not run.

Combined with #3464, 27 hook/setup tests pass. Both PRs touch the voice recorder and require the stop-handler hunks to be combined if either merges first. #3464 handles take ownership and synchronous start failures; this PR handles asynchronous browser recorder errors.

RetriggerView in GreptileConfidence Score: 5/5

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

Summary

Releases voice and video comment capture after unexpected browser recorder stops and gives users a retry path.

  • Failed comment recordings stop capture and give people a way to try again.

No actionable issues found. Tests and physical capture were not run during this review.

Reviews (1) · Last reviewed commit: "fix(web): release comment capture after ..." · Reviewed by Greptile

@vercel

vercel Bot commented Oct 27, 2026

Copy link
Copy Markdown
Contributor

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

A member of the Team first needs to authorize it.

This branch has not been deployed

No deployments
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