Skip to content

Conversation

@kcoopermiller
Copy link
Member

@kcoopermiller kcoopermiller commented Jan 24, 2026

Note

Introduces targeted retries for transient 409 responses to improve reliability of gateway interactions.

  • Adds MAX_409_RETRIES and RETRY_409_BASE_DELAY; implements _should_retry_409 (sync/async) that checks error-context and backs off when sandbox is RUNNING, otherwise raises the appropriate not-running error
  • Wraps execute_command, upload_file/upload_bytes, and download_file (sync and async) in retry loops that specifically handle 409, preserve existing 408/timeout handling, and keep detailed error propagation
  • Leaves existing gateway transient connection retry decorator intact for network-level errors

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

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

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