fix(build): improve asset download resilience against rate limits#1201
Merged
John-David Dalton (jdalton) merged 1 commit intomainfrom Apr 15, 2026
Merged
Conversation
5241c44 to
eb2878a
Compare
- Increase GitHub release cache TTL from 1h to 4h to reduce API calls - Use exponential backoff (factor 2) instead of linear retries - Add SKIP_ASSET_DOWNLOAD env var to skip downloads when assets are already cached locally (avoids rate limit exhaustion during repeated local builds and pre-commit hook reruns) - Simplify cli package.json placeholder version to 0.0.0
eb2878a to
3822f57
Compare
James Tu (jmsjtu)
approved these changes
Apr 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
SKIP_ASSET_DOWNLOADenv var to skip downloads when assets are already cached locallyThe
SKIP_ASSET_DOWNLOAD=1toggle is useful when:Test plan
SKIP_ASSET_DOWNLOAD=1 pnpm builduses cached assetsNote
Low Risk
Low risk build-infra behavior changes limited to caching/retry timings and an opt-in environment flag; main risk is stale release metadata for up to 4 hours or unintentionally skipping downloads when the env var is set.
Overview
Build asset fetching now makes fewer GitHub API calls by increasing the releases cache TTL from 1 hour to 4 hours.
GitHub API retries for release listing and asset URL lookup switch to exponential backoff (
backoffFactor: 2, shorter base delay) to better handle rate limits.The CLI asset downloader supports
SKIP_ASSET_DOWNLOADto bypass all downloads (useful for cached/offline builds).Reviewed by Cursor Bugbot for commit 5241c44. Configure here.