Repository navigation
fix(auto-update-checker): skip the check when auto_update is false - #870
Oscar-Williams wants to merge 3 commits into
Conversation
…p the check when disabled
|
Harness coverage advisory: these conventional twins were not touched:
Cover every shipped harness or explain why the surface does not exist there. See CONTRIBUTING.md. This is advisory only; no draft state is changed. |
|
Thanks for this. This PR and #855 overlap on the registry part, so please narrow this one to the disable path.
Once it's down to the disable path, mark it ready for review. |
|
Hi @Oscar-Williams, checking in on this one. Do you still plan to narrow it to the |
…te is false Drop the registry resolution (covered by cortexkit#855) and keep only the disable path: auto_update: false now disables the checker so no npm request is made. Adds a regression test asserting no registry lookup when disabled.
|
Follow-up on the narrowing question: this PR is now limited to the |
|
Thanks for narrowing this. The change looks right, and the bot review is clean. One CI check fails on the trial merge: Please replace |
Approved issue: #854
What does this PR do?
Narrow this PR to the disable path requested in review: OpenCode 1 now passes
enabled: falseto its background checker whenauto_update: false, so no npm update request is scheduled. Unset/true settings keep the existing enabled behavior. The hook's separate notification-only mode remains available to direct callers.All registry-resolution changes and their tests have been removed from this PR. Registry resolution is left to #855; this PR does not read project or user
.npmrcfiles.How to test
bun test packages/plugin/src/hooks/auto-update-checker/— 44 passed, including a regression asserting no latest-version request withauto_update: false, plus unset/true defaults. The regression failed semantically with the old option mapping (one request instead of zero), then passed with the fix.bun test packages/plugin/src/v2/hooks/update-check.test.ts— 4 passed.bun run --cwd packages/plugin typecheck— passed.bun run --cwd packages/plugin lint— passed (existing warnings only).git diff --check— passed.Tests and checks ran locally on Linux with Bun 1.4.2. Full monorepo tests were not run.
Harness coverage (required)
auto_updateinto the checker options; regression checks that disabled updates make no npm request.src/v2/server.tsalready skipsstartUpdateCheckswhen the same config key is false; reviewed and its update-check tests pass, no code change needed.

Confidence Score: 5/5
This PR appears safe to merge.Summary
OpenCode 1 now skips its background update checker when
auto_updateisfalse.Reviews (1) · Last reviewed commit: "refactor(auto-update-checker): keep the ..." · Reviewed by Greptile