Skip to content

fix(OUT-4107): await SWR mutate refetches and enrich fetcher errors - #1436

Closed
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/out-4107-cursor-automated-triage-response-2424
Closed

fix(OUT-4107): await SWR mutate refetches and enrich fetcher errors#1436
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/out-4107-cursor-automated-triage-response-2424

Conversation

@cursor

@cursor cursor Bot commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

Changes

  • Await unawaited mutate() calls in ActivityWrapper, Subtasks, and Subtemplates so post-mutation fetcher() failures are caught by existing try/catch blocks instead of surfacing as unhandled promise rejections in Sentry.
  • Enrich src/utils/fetcher.ts errors with HTTP status, request URL, and truncated response body so future Sentry events are actionable.
  • Add unit tests for fetcher.

Testing Criteria

  • yarn test src/utils/fetcher.test.ts — 3/3 passed.
  • Reviewed sibling mutation paths (handleDeleteComment, handleSubTaskUpdate, ArchiveWrapper) which already await mutate().

Notes

Impact & Surface Area of Change

  • Optimistic SWR mutations after comment creation, subtask creation, and subtemplate creation.
  • Client-side SWR fetch error reporting to Sentry.
Open in Web View Automation 

Unawaited mutate() calls after optimistic comment, subtask, and subtemplate
creation let post-mutation fetcher failures surface as unhandled rejections
in Sentry. Await those mutations and include HTTP status, URL, and response
body in fetcher errors to make future triage actionable.

Co-authored-by: Neil Raina <[email protected]>
@linear-code

linear-code Bot commented Aug 24, 2026

Copy link
Copy Markdown

OUT-4107

@vercel

vercel Bot commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

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

Project Deployment Actions Updated (UTC)
tasks-app Error Error Aug 24, 2026 3:13pm

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.

2 participants