Skip to content

Fix realtime payload equality stack overflow - #1379

Draft
cursor[bot] wants to merge 3 commits into
mainfrom
cursor/out-3959-cursor-automated-triage-response-abfb
Draft

Fix realtime payload equality stack overflow#1379
cursor[bot] wants to merge 3 commits into
mainfrom
cursor/out-3959-cursor-automated-triage-response-abfb

Conversation

@cursor

@cursor cursor Bot commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Changes

  • Replaced recursive deep-equal comparison for task realtime payloads with bounded comparisons over Tasks table fields.
  • Added regression tests for no-op task updates, changed task fields, and cyclic payload values so RangeError: Maximum call stack size exceeded is not thrown.

Testing Criteria

  • yarn test src/utils/isRealtimePayloadEqual.test.ts --runInBand — passes; covers the cyclic payload regression and task-field equality behavior.
  • yarn lint:check — passes with existing warnings only.
  • yarn tsc — still blocked by the repo's existing SVG module declaration errors in src/icons/index.ts; no errors remain from the touched realtime equality files.

Notes

  • Linear issue: OUT-3959.
  • Sentry MCP was not authenticated, so investigation used the Linear trigger metadata, Tasks app Sentry configuration, and in-repo stack-overflow candidates.

Impact & Surface Area of Change

  • Affects Supabase realtime task update de-duplication on the client. Regression focus should be task board/detail live updates for no-op updates, title/body/status/archive/reassignment changes, and association/share changes.
Open in Web View Automation 

cursoragent and others added 3 commits July 8, 2026 12:07
Co-authored-by: Neil Raina <makeitraina@users.noreply.github.com>
Co-authored-by: Neil Raina <makeitraina@users.noreply.github.com>
Co-authored-by: Neil Raina <makeitraina@users.noreply.github.com>
@linear-code

linear-code Bot commented Jul 8, 2026

Copy link
Copy Markdown

OUT-3959

@vercel

vercel Bot commented Jul 8, 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 Ready Ready Preview, Comment Jul 8, 2026 12:11pm

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