# agent2: Expand auto-retries for completion errors \(\#39787\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/5a0f796a44a9921c1ef739db2edb42290cea88d5)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 5a0f796a44a9921c1ef739db2edb42290cea88d5

Requested commit: 5a0f796a44a9921c1ef739db2edb42290cea88d5

Commit: 5a0f796a44a9921c1ef739db2edb42290cea88d5

Tree: 84fe47e4f041b48bc013bbb2f26a532ea0ecf5e0

Author: Marshall Bowers

Committer: GitHub

## Message

```
agent2: Expand auto-retries for completion errors (#39787)

This PR expands our automatic retry behavior for certain classes of
completion errors (e.g., rate limit errors).

Previously this was only available when using burn mode.

We now auto-retry when:

- Using the Zed provider while on a token-based plan
- Using the Zed provider while on a legacy plan with burn mode enabled
- Using a non-Zed provider

Release Notes:

- Expanded automatic retry behavior for errors in the Agent. Errors
classified as "retryable" (such as rate limit errors) will now
automatically be retried when:
  - Using the Zed provider while on a token-based plan
  - Using the Zed provider while on a legacy plan with burn mode enabled
  - Using a non-Zed provider

---------

Co-authored-by: David Kleingeld <davidsk@zed.dev>
```

## Parents

- [604d56659dba40c07ba013b1e746eec5517d9064](https://git.cafe/gitcafe/zed/commit/604d56659dba40c07ba013b1e746eec5517d9064?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/5a0f796a44a9921c1ef739db2edb42290cea88d5?format=markdown)
