Repository navigation
fix(recorder): cancel pending multipart control requests - #3353
Open
vedanth-jadhav wants to merge 1 commit into
Open
vedanth-jadhav wants to merge 1 commit into
vedanth-jadhav wants to merge 1 commit into
Conversation
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Canceling a browser recording currently aborts PUTs but leaves presign and completion fetches running. A hung presign holds
cancel()until the API timeout (60 seconds by default); canceling during completion backoff can send another completion request afterward. This affects the shared uploader used by web recording, extension recording and comment media.Tie presign/completion fetches to an uploader-owned abort signal while retaining their existing timeouts. Reuse the cancelable retry wait for completion, check cancellation before dispatch, and prevent late completion responses from publishing success. The remote multipart-abort request keeps its independent timeout/signal. Interrupted completion still reports
MultipartCompletionUncertainError, since the server may already have committed the recording. No public API, upload ordering, retry limits, payload format or dependency changes.Validation on Linux x86_64 / Node 24.19.0:
git diff --checkpass. The final suite was rerun after updating the branch to current main.Reproduce with
bun run --cwd packages/recorder-core test. Local checks used Vitest 3.2.0 and Biome 2.2.0 installed outside the checkout; no workspace lockfile changes. Network order is controlled in tests; physical browser capture and authenticated storage were not exercised. This is a cancellation correctness fix, with no throughput claim. Checked current main/open PRs; native GPUI presign optimization #3352 changes a separate implementation.

Confidence Score: 5/5
The PR appears safe to merge; no actionable issues were found.Summary
The PR lets
InstantRecordingUploaderstop pending presign and completion requests while keeping their existing timeouts.No actionable issues found. Tests were inspected but not run during this review.
Reviews (1) · Last reviewed commit: "fix(recorder): cancel pending multipart ..." · Reviewed by Greptile