Skip to content

fix(updater): stop dismissed releases from downloading - #1339

Merged
vastsa merged 2 commits into
mainfrom
codex/fix-pr1332-update-dismiss
Oct 3, 2026
Merged

vastsa merged 2 commits into
mainfrom
codex/fix-pr1332-update-dismiss

Conversation

@vastsa

@vastsa vastsa commented Oct 3, 2026

Copy link
Copy Markdown
Owner

Summary

This carries the original dismissal persistence from #1332 forward and completes the in-app behavior. Dismissing an update now stops an active download, prevents the same release from restarting automatically, and permits a later release to resume automatic delivery.

The original contributor commit is retained in this maintainer follow-up.

Related: #1317, #1332.

Validation

  • node --test apps/desktop/test/updater-controller.test.mjs apps/desktop/test/auto-update.test.mjs apps/desktop/test/update-preference.test.mjs apps/desktop/test/update-timeout.test.mjs — 17 passed.
  • pnpm check:pr-base equivalent script — passed against 662cfcc773ea.
  • git diff --check — passed.

yexisu and others added 2 commits October 3, 2026 19:24
The update banner's dismiss button only wrote component-local state, so
every restart brought the same notice back for a version the user had
already declined. Record the dismissed version through a new
`updatesDismiss` IPC channel into host settings
(`updateDismissedVersion`), surface it as a `dismissed` flag on
UpdateState, and clear it when a newer version is discovered so future
releases keep notifying.

Validated: update-preference tests 6/6, auto-update tests 8/8, desktop
typecheck clean, cargo fmt --check clean. host-core test run requires a
Rust toolchain and is left to CI.

Fixes #1317
Persist dismissals and cancel active in-app downloads so the same release cannot restart or install on quit.
Copilot AI balanced review requested due to automatic review settings October 3, 2026 11:31

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@vastsa
vastsa merged commit 4873886 into main Oct 3, 2026
4 checks passed
@vastsa
vastsa deleted the codex/fix-pr1332-update-dismiss branch October 6, 2026 16:55
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.

3 participants