E2B icon indicating copy to clipboard operation
E2B copied to clipboard

Turn on automatic retries for sandbox requests

Open djeebus opened this issue 2 months ago • 1 comments

[!NOTE] Adds up to 3 automatic retries when sending sandbox PTY input, retrying on common transient/network errors.

  • CLI – packages/cli/src/terminal.ts
    • Retry logic: Wraps sandbox.pty.sendInput with a retry loop (max 3 attempts).
    • Retryable detection: New isRetryableError helper to classify transient errors (e.g., TimeoutError, AbortError, network codes like ECONNRESET, and TypeError: fetch failed).
    • Non-retryable errors are surfaced immediately; existing batching and terminal session handling unchanged.

Written by Cursor Bugbot for commit 66ff8e03ffc279b52a4295ca7ec2f324f4f7d51b. This will update automatically on new commits. Configure here.

djeebus avatar Nov 14 '25 01:11 djeebus

⚠️ No Changeset found

Latest commit: 66ff8e03ffc279b52a4295ca7ec2f324f4f7d51b

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

changeset-bot[bot] avatar Nov 14 '25 01:11 changeset-bot[bot]