Skip to content

Desktop: cancel pending automatic update checks when disabled - #3836

Merged
ashhart merged 2 commits into
ashhart:mainfrom
AIflow-Labs:codex/fix-3833-update-check-timer
Nov 19, 2026
Merged

ashhart merged 2 commits into
ashhart:mainfrom
AIflow-Labs:codex/fix-3833-update-check-timer

Conversation

@AIFlowML

Copy link
Copy Markdown
Contributor

What this changes

Turning off automatic update checks now cancels the first scheduled check as well as the recurring interval. A settings refresh replaces the pending timer, and scheduled callbacks recheck the saved preference before reaching the feed. The Settings “Check now” action still works with automatic checks off.

  • Issue: Fixes Desktop automatic update check can run after being disabled #3833
  • Stacked on: main at 8cbef9777b9a05dfaff99d5aa9c2ce52fe2b00f8
  • atc overlap --json: ATC reported no local worktree conflicts at 2026-11-18T15:20:31Z and could not finish its PR scan. The paginated GitHub audit at 2026-11-18T15:20:33Z checked both paths and rename origins across 482 open PR heads, with zero overlaps. The head test-merges with main and the 44 open contributor heads used in the integration check.

Checks on this head

  • Head commit: 272c7076b918c8380e8c6cf8adb41e6e15204d12
  • Lean checker: 221 inherited findings on base and head, zero new. python3 tools/pr_check.py --base upstream/main reported zero errors and warnings.
  • Focused regression: node node_modules/jiti/lib/jiti-cli.mjs electron/main/host/update-schedule.test.ts failed on main because one automatic request reached the fake feed after disabling checks. It passed on this head. The fixture checks the saved preference before the rescheduler runs, staggered refreshes, the enabled six-hour interval, and manual checks when automatic checks are off.
  • Desktop on M5 Max, Node 22.23.3: npm run typecheck, npm run build, and npm run verify:mobile passed. npm test passed 861 of 862 files standalone, with the inherited Git commit assertion in sandbox-git-control.test.ts. The local integration tree f380e957e77e3ca00bbb74ebc5875b28dfb1be85 passed all 890 test files.
  • Native host: The zig tree, build files, and Zig pin match the exact Desktop: keep export actions tied to the current preview #3834 head. Its M5 Max run of zig build test test-golden -Dcpu=apple_m1 passed 7,491 tests, skipped 92, and reported zero unexpected golden differences. The inherited macOS memcpy link guard is tracked in macOS native binary links internal memcpy after the device profile reader landed #3760/Restore libSystem memcpy when reading device profiles #3761. zig fmt --check build.zig zig and git diff --check passed here.
  • CI: Pending at publication.
  • Not run: A live feed check or packaged Windows/Linux runtime. The scheduler regression uses the production Desktop updater with a fake clock and feed.

Receipt

N/A. This change is confined to the Desktop update scheduler and does not reach inference.

Checklist

  • The title and description match the head commit, including the receipt and the stack.
  • The same regression fails on main and passes on this head.
  • Comments and docstrings are one line. No measurements or history in the source.
  • No private identity, internal host or local path is included in the diff or commits.

Igor Lessio - AIFLOW LABS

@ashhart

ashhart commented Nov 18, 2026

Copy link
Copy Markdown
Owner

Thanks @AIFlowML. Cancelling the first scheduled check as well as the interval, and rechecking the saved preference in callbacks, is right; the scheduler test fails on main and passes here. Nothing in inference changes.

CI is green at this head. Nothing to change.

  • Synthena

@ashhart
ashhart force-pushed the codex/fix-3833-update-check-timer branch from 272c707 to a950749 Compare November 19, 2026 03:31
@ashhart
ashhart merged commit 92a438f into ashhart:main Nov 19, 2026
2 of 16 checks passed
@ashhart

ashhart commented Nov 19, 2026

Copy link
Copy Markdown
Owner

Thank you @AIFlowML. This is merged into main with your commits under your own name, so you're listed as a TensorFold contributor. It ships in the next release, credited to you in the changelog and the release notes.

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.

Desktop automatic update check can run after being disabled

2 participants