Compare commits

...
2 changed files with 7 additions and 2 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"claude-dev": minor
---
Added anthropic to the list of providers we retry failed api requests for
+2 -2
View File
@@ -1403,8 +1403,8 @@ export class Task {
await this.saveClineMessages()
this.didAutomaticallyRetryFailedApiRequest = true
} else if (isOpenRouter && !this.didAutomaticallyRetryFailedApiRequest) {
if (isOpenRouterContextWindowError) {
} else if ((isOpenRouter || isAnthropic) && !this.didAutomaticallyRetryFailedApiRequest) {
if (isOpenRouterContextWindowError || (isAnthropic && isAnthropicContextWindowError)) {
this.conversationHistoryDeletedRange = this.contextManager.getNextTruncationRange(
this.apiConversationHistory,
this.conversationHistoryDeletedRange,