Skip to content

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

Merged
codebytere merged 1 commit into41-x-yfrom
trop/41-x-y-bp-fix-squirrel-mac-clean-up-old-staged-updates-before-downloading-new-update-1770134657426
Feb 3, 2026
Merged

fix(squirrel.mac): clean up old staged updates before downloading new update#49639
codebytere merged 1 commit into41-x-yfrom
trop/41-x-y-bp-fix-squirrel-mac-clean-up-old-staged-updates-before-downloading-new-update-1770134657426

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 41-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes labels Feb 3, 2026
@codebytere codebytere merged commit f874dba into 41-x-y Feb 3, 2026
69 checks passed
@release-clerk
Copy link
Copy Markdown

release-clerk bot commented Feb 3, 2026

Release Notes Persisted

fixed squirrel.mac stacked update behavior to old staged updates

@codebytere codebytere deleted the trop/41-x-y-bp-fix-squirrel-mac-clean-up-old-staged-updates-before-downloading-new-update-1770134657426 branch February 3, 2026 20:43
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

41-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.

2 participants