Repository navigation
Conversation
size-limit report 📦
|
jxiwang
marked this pull request as ready for review
November 11, 2026 21:16
Session Replay Browser E2E ResultsDetails
Flaky testschromium › e2e/shadow-dom.spec.ts › captureAdoptedStyleSheets option › SDK initializes without error and captures shadow host with captureAdoptedStyleSheets=false |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
There are 2 total unresolved issues (including 1 from previous review).
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit b0e7cc0. Configure here.
This branch has not been 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.

Summary
amp-semantic/resource-errorfor failed image, stylesheet, script, and font loads, grouped over 500 ms with a compact count.Stack
Base: #2154. Merge after #2128 and #2150–#2154.
Validation
pnpm --filter @amplitude/amp-semantic... buildpnpm --filter @amplitude/session-replay-browser... buildpnpm --filter @amplitude/amp-semantic test: 149 passed, 100% coveragepnpm --filter @amplitude/session-replay-browser test: 1,183 passed, 100% coveragepnpm --filter @amplitude/amp-semantic test:playwright: 13 passedpnpm lint,pnpm lint:deps,pnpm test:examplesThe full workspace build stalls in the unchanged Segment Session Replay Rollup step, and the full workspace test run has two existing
analytics-react-nativefailures, as documented in earlier stack drafts.Linear: SRAI-82.
Note
Medium Risk
Introduces new global DOM/font listeners and URL path templating at emission time; behavior is bounded and privacy-conscious but affects every opted-in replay session.
Overview
Adds a new
amp-semantic/resource-errorsemantic family that records failed image, stylesheet, script, and font loads without patching the network or scanning the DOM.A
resourceErrorRecorderlistens for capture-phaseerroronimg/script/stylesheetlinkelements anddocument.fontsloadingerror, batches matching failures for 500 ms (with flush on pagehide / hidden), and emits compact payloads: resource typert,count, and optional sanitized path (no origin/query) plus privacy-safe container when the element is still connected and not blocked. It is wired intodefaultRecordersandSEMANTIC_CAPS(200/session), withfamilies: { 'resource-error': false }to opt out.Schema, README, local inspector copy, broad unit tests, and a Playwright failed-image replay test complete the surface; capture-gate e2e now includes
resource-errorin the disabled-families list.Reviewed by Cursor Bugbot for commit cca2b5b. Bugbot is set up for automated code reviews on this repo. Configure here.