Repository navigation
feat: uteke-serve and uteke-mcp can opt out of the update check (#1596) - #1616
Merged
Merged
Conversation
Gate check_cached and check_network in uteke_core::update_check with UTEKE_NO_UPDATE_CHECK or update_check = false in the global uteke.toml, so every binary honours the opt-out and a new binary cannot forget it. The decision is read once per process.
🔍 Cora AI Code Review✅ No issues found. Code looks good! Review powered by cora-code · BYOK · MIT |
This was referenced Nov 1, 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
UTEKE_NO_UPDATE_CHECK(any value) andupdate_check = falsein the globaluteke.tomlnow turn the update check off in every binary. The gate sits inuteke_core::update_check, incheck_cachedandcheck_network, the two functions every caller goes through, so a new binary cannot forget it. The decision is read once per process (GET /healthasks on every request). The CLI uses the same function for its early skip.uteke upgradeis explicit and is not gated. The existingupdate_checkkey is reused instead of adding the[update] checkspelling the issue suggested.Why
The check could be disabled only in the CLI.
uteke-serveanduteke-mcpalways called GitHub, which is unwanted on an offline or air-gapped install and on a hosted server (atlas finding 13).Testing
update_check = falsedisables; a string value, invalid TOML and a key inside a section do not; a disabled check never calls the fetch (the closure panics if it does) and caches nothing; an enabled check still fetches.