Skip to content

feat: uteke-serve and uteke-mcp can opt out of the update check (#1596) - #1616

Merged
ajianaz merged 1 commit into
developfrom
feat/no-update-check-serve-mcp
Oct 30, 2026
Merged

ajianaz merged 1 commit into
developfrom
feat/no-update-check-serve-mcp

Conversation

@ajianaz

@ajianaz ajianaz commented Oct 30, 2026

Copy link
Copy Markdown
Collaborator

What

UTEKE_NO_UPDATE_CHECK (any value) and update_check = false in the global uteke.toml now turn the update check off in every binary. The gate sits in uteke_core::update_check, in check_cached and check_network, the two functions every caller goes through, so a new binary cannot forget it. The decision is read once per process (GET /health asks on every request). The CLI uses the same function for its early skip. uteke upgrade is explicit and is not gated. The existing update_check key is reused instead of adding the [update] check spelling the issue suggested.

Why

The check could be disabled only in the CLI. uteke-serve and uteke-mcp always called GitHub, which is unwanted on an offline or air-gapped install and on a hosted server (atlas finding 13).

Testing

  • Unit tests: the env var or update_check = false disables; 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.
  • fmt, clippy -D warnings, cargo test --workspace --no-fail-fast (1360 passed), docgen produces no diff. Cora review: one info finding (doc wording), fixed.

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.
@github-actions

Copy link
Copy Markdown

🔍 Cora AI Code Review

✅ No issues found. Code looks good!


Review powered by cora-code · BYOK · MIT

@ajianaz
ajianaz merged commit 2d250d0 into develop Oct 30, 2026
15 checks passed
@ajianaz
ajianaz deleted the feat/no-update-check-serve-mcp branch November 4, 2026 06:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant