Skip to content

Conversation

@mrubens
Copy link
Collaborator

@mrubens mrubens commented Jan 30, 2025

#426


Important

Implement exponential backoff for API retries in Cline.ts with updated tests in Cline.test.ts.

  • Behavior:
    • Implement exponential backoff for API retries in attemptApiRequest() in Cline.ts.
    • Retry delay is calculated as baseDelay * 2^retryAttempt.
  • Tests:
    • Update Cline.test.ts to test exponential backoff logic.
    • Verify countdown messages and delay calls for retries.
    • Ensure retry logic is triggered on initial API failure.

This description was created by Ellipsis for e10004d. It will automatically update as commits are pushed.

@changeset-bot
Copy link

changeset-bot bot commented Jan 30, 2025

🦋 Changeset detected

Latest commit: e10004d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
roo-cline Patch

Not sure what this means? Click here to learn what changesets are.

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

@mrubens mrubens force-pushed the use_exponential_retry_for_api_failures branch from 3dde78e to e10004d Compare January 30, 2025 16:47
@mrubens mrubens merged commit 29dfe11 into main Jan 30, 2025
4 checks passed
@mrubens mrubens deleted the use_exponential_retry_for_api_failures branch January 30, 2025 16:51
@hannesrudolph
Copy link
Collaborator

@mrubens Is there a way to make it so this mechanism is opt-out optional so the traditional method we used is still accessible?

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.

4 participants