Repository navigation
fix(upgrade): honor GITHUB_TOKEN in the API fallback - #1309
Merged
Merged
Conversation
The rate-limit error told users to set GITHUB_TOKEN, but the fallback request never sent it. Attach it as a bearer token when present (raises the cap to 5k req/h) and make the 403/429 message distinguish whether a token was in play (#1307).
🔍 Cora AI Code Review✅ No issues found. Code looks good! Review powered by cora-code · BYOK · MIT |
Merged
5 tasks done
7 tasks done
ajianaz
added a commit
that referenced
this pull request
Oct 5, 2026
* chore(release): v0.19.1 - version bump, changelog, docs sync - Workspace + internal dependency versions 0.19.0 -> 0.19.1 (Cargo.lock synced) - CHANGELOG: [0.19.1] entry - upgrade-path reliability (#1307 via #1308/#1309/#1310), plain /remember explicit-type fix (#1303), committed Hermes plugin package (#1301) - Bundled uteke-memory skill + .agents canonical copy bumped in lockstep - README/README.id current-version line synced * chore(release): regenerate core-contract.json for 0.19.1 docgen embeds the workspace version; the API Docs Fresh gate caught the stale generated artifact. --------- Co-authored-by: ajianaz <[email protected]>
This was referenced Oct 5, 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.
What
GITHUB_TOKENas a bearer token on the GitHub API fallback request inget_latest_version()(bothuteke upgradeand the startup update check), raising the cap from 60 to 5,000 req/h when the env var is present.GITHUB_TOKEN), another when a token was set but the limit was still hit.Follow-up to #1308 (the error message referenced
GITHUB_TOKENwhile the code never sent it — making the message honest).Closes #1307 (comment follow-up).
Why
#1308 fixed the primary 302-redirect resolution path. The API fallback it kept as a safety net printed
set GITHUB_TOKEN to raise the limitbut ignored the variable entirely — misleading for users who had already set it.Testing
cargo clippy -p uteke-core -p uteke-cli --all-features -- -D warnings— cleancargo test -p uteke-core update_check— 11 passedcargo test -p uteke-cli upgrade::— 5 passeduteke upgrade -y→[INFO] Already up to date (0.19.0)(302 primary path unaffected)