Skip to content

fix(squirrel.mac): clean up old staged updates before downloading new update#49638

Merged
codebytere merged 1 commit into40-x-yfrom
trop/40-x-y-bp-fix-squirrel-mac-clean-up-old-staged-updates-before-downloading-new-update-1770134656448
Feb 4, 2026
Merged

fix(squirrel.mac): clean up old staged updates before downloading new update#49638
codebytere merged 1 commit into40-x-yfrom
trop/40-x-y-bp-fix-squirrel-mac-clean-up-old-staged-updates-before-downloading-new-update-1770134656448

Conversation

@trop
Copy link
Copy Markdown
Contributor

@trop trop bot commented Feb 3, 2026

Backport of #49365

See that PR for details.

Notes: fixed squirrel.mac stacked update behavior to old staged updates

When checkForUpdates() is called while an update is already staged,
Squirrel creates a new temporary directory for the download without
cleaning up the old one. This can lead to disk usage growth when
new versions are released while the app hasn't restarted.

This adds a force parameter to pruneUpdateDirectories that bypasses
the AwaitingRelaunch state check. This is called before creating a
new temp directory, ensuring old staged updates are cleaned up.

Co-authored-by: Andy Locascio <loc@anthropic.com>
@trop trop bot requested a review from a team as a code owner February 3, 2026 16:04
@trop trop bot requested a review from a team February 3, 2026 16:04
@trop trop bot added 40-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes labels Feb 3, 2026
@codebytere codebytere merged commit 394d4cf into 40-x-y Feb 4, 2026
112 of 114 checks passed
@codebytere codebytere deleted the trop/40-x-y-bp-fix-squirrel-mac-clean-up-old-staged-updates-before-downloading-new-update-1770134656448 branch February 4, 2026 17:54
@release-clerk
Copy link
Copy Markdown

release-clerk bot commented Feb 4, 2026

Release Notes Persisted

fixed squirrel.mac stacked update behavior to old staged updates

nikwen added a commit that referenced this pull request Mar 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

40-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant