Skip to content

feat(updates): honor the shared automatic check preference - #126

Merged
runkids merged 3 commits into
mainfrom
feat/automatic-update-opt-out
Nov 11, 2026
Merged

runkids merged 3 commits into
mainfrom
feat/automatic-update-opt-out

Conversation

@runkids

@runkids runkids commented Nov 11, 2026 •

Copy link
Copy Markdown
Owner

What

CLI-owned config.yaml + environment override
  └─ updates --json / updates on|off --json
      ├─ native background version checks
      ├─ React updater and version badges
      └─ Settings → Updates switch
  • Share the CLI's automatic-version-check preference instead of introducing an independent desktop setting. The environment takes precedence and locks the switch.
  • Suppress automatic App/CLI release checks, native version notifications and cached badges when disabled. Explicit Check/menu actions and upgrades remain available; manual results survive background cache clearing without restoring alerts.
  • Preserve source-resource checks. With an older CLI, retain the existing default and environment opt-out; the config-backed switch stays unavailable until the CLI supports updates.

Related: runkids/skillshare#846. Companion CLI/Web PR: runkids/skillshare#847.

Verification

  • Clean worktree: pnpm install --frozen-lockfile; pnpm lint, pnpm format:check, pnpm typecheck, pnpm test (141 passed), and pnpm build passed.
  • cargo fmt --check, cargo clippy --all-targets -- -D warnings, and cargo test (141 passed) passed, with the shared Cargo target cache outside this worktree.
  • pnpm test:release: 9 passed. pnpm test:homebrew: 1 passed. Context-router and whitespace checks passed.
  • Linux noVNC: inspected the Updates switch, persisted on/off values in an isolated CLI config, the quiet disabled dashboard, and explicit checking while disabled. The same source bytes were transferred to this worktree and verified before committing.
  • Regression tests cover stable masked snapshots, manual-result retention, policy-read failures, automatic/manual overlap, later automatic results, and policy-before-cache-clear event ordering.
  • Reviewed HEAD: 56440a0abeb65cd5473d44e174d110bceda5d755. Fresh Standards: clean and Spec: clean reviews cover the pinned committed diff and corrective hunks.
  • GitHub Codex review: requested on 2026-11-11 at 03:16 UTC, but no bot acknowledgment or review arrived during 30 minutes of monitoring. External AI review remains pending; this is not counted as a clean review. Local Standards/Spec reviews and CI passed. The integration configuration was not changed.
  • Not covered: native Windows/macOS UI acceptance. Vite reports its existing bundle-size advisory.
  • Dependency: the companion CLI changes are published in skillshare v0.30.5. This feature PR does not change App version fields; Release Please handles the App release. The main checkout has been restored to main; noVNC now shows main, not this worktree.

Read and write the CLI-owned update preference instead of keeping a separate desktop setting. Gate both native and React automatic checks and hide cached version alerts while preserving explicit checks and upgrades.

Keep manual results separate from automatic notifications and respect process environment overrides.

Refs runkids/skillshare#846.
Document error handling and event ordering on the public update-policy functions so callers can distinguish strict reads from fail-quiet automatic checks.
Run release-version checks explicitly from the user-initiated status action, while leaving background checks and badge masking governed by the shared opt-out.
@runkids

runkids commented Nov 11, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@runkids
runkids merged commit e6232e1 into main Nov 11, 2026
3 checks passed
@runkids
runkids deleted the feat/automatic-update-opt-out branch November 11, 2026 06:44
runkids pushed a commit that referenced this pull request Nov 11, 2026
Release the shared automatic-update preference, Settings controls and explicit-check behavior from #126. Release Please keeps all five version fields and the generated changelog synchronized.
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