Skip to content

Commit 0266548

Browse files
TomRoylsTomRoyls
authored andcommitted
fix(opencode): cap exponential retry backoff to 30s max
Removes the unbounded exponential backoff fallback when response headers are present but don't contain retry-after info. Now all fallback paths use the capped backoff (30s max) from RETRY_MAX_DELAY_NO_HEADERS. Fixes anomalyco#8769
1 parent 4cb2996 commit 0266548

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

‎packages/opencode/src/session/retry.ts‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@ export namespace SessionRetry {
5050
return Math.ceil(parsed)
5151
}
5252
}
53-
54-
return RETRY_INITIAL_DELAY * Math.pow(RETRY_BACKOFF_FACTOR, attempt - 1)
5553
}
5654
}
5755

0 commit comments

Comments
 (0)