Skip to content

Recover from client chunk load failures#1255

Draft
cursor[bot] wants to merge 2 commits into
mainfrom
cursor/OUT-3776-automated-issue-triage-13fc
Draft

Recover from client chunk load failures#1255
cursor[bot] wants to merge 2 commits into
mainfrom
cursor/OUT-3776-automated-issue-triage-13fc

Conversation

@cursor
Copy link
Copy Markdown

@cursor cursor Bot commented May 24, 2026

Changes

  • Added production-only client recovery for chunk load failures that reloads the current page once per failed chunk cooldown.
  • Tagged chunk load Sentry events with chunk_load_recovery: attempted.
  • Suppressed the known React $RS parentNode follow-up error when it occurs immediately after a chunk load failure.
  • Added unit coverage for chunk load detection, reload cooldown behavior, and the React follow-up error matcher.

Testing Criteria

  • yarn test "src/utils/chunkLoadRecovery.test.ts" --runInBand
  • yarn lint:check (passes with existing warnings)
  • yarn tsc --noEmit currently fails on pre-existing missing SVG module declarations in src/icons/index.ts.

Notes

  • Root Sentry event: TASKS-8E / Linear OUT-3776.
  • No dependency or config changes required.

Impact & Surface Area of Change

  • Client Sentry instrumentation and production browser error handling for chunk load failures.
  • Expected behavior: a transient or stale chunk failure triggers a single reload attempt, preserving the URL, instead of leaving the user on a broken React stream resume state.
Open in Web View Automation 

cursoragent and others added 2 commits May 24, 2026 00:53
Co-authored-by: Neil Raina <makeitraina@users.noreply.github.com>
Co-authored-by: Neil Raina <makeitraina@users.noreply.github.com>
@linear-code
Copy link
Copy Markdown

linear-code Bot commented May 24, 2026

OUT-3776

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented May 24, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
tasks-app Ready Ready Preview, Comment May 24, 2026 12:56am

Request Review

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