Skip to content

Retry transient Copilot network errors#1240

Draft
cursor[bot] wants to merge 2 commits into
mainfrom
cursor/OUT-3758-automated-issue-triage-1466
Draft

Retry transient Copilot network errors#1240
cursor[bot] wants to merge 2 commits into
mainfrom
cursor/OUT-3758-automated-issue-triage-1466

Conversation

@cursor
Copy link
Copy Markdown

@cursor cursor Bot commented May 19, 2026

Changes

  • Add retry classification for transient fetch/undici network failures such as TypeError: terminated, ECONNRESET, and UND_ERR_SOCKET.
  • Keep existing retry behavior for Copilot HTTP status errors.
  • Add focused unit coverage for retryable/non-retryable status codes and network failures.

Testing Criteria

  • yarn test "src/app/api/tests/utils/withRetry.test.ts" -- passes (14 tests).
  • yarn lint:check -- passes with existing warnings.
  • yarn tsc --noEmit -- blocked by pre-existing missing SVG module declarations in src/icons/index.ts.

Notes

  • Linear: OUT-3758
  • Sentry: TASKS-8B

Impact & Surface Area of Change

  • Affects shared Copilot API retry behavior used by server-rendered pages and API authentication/helpers.
  • Intended impact is limited to retrying transient network/socket failures that were previously surfaced immediately to Sentry/users.
Open in Web View Automation 

cursoragent and others added 2 commits May 19, 2026 18:46
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 19, 2026

OUT-3758

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented May 19, 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 19, 2026 6:58pm

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