Skip to content

fix(updater): preserve cached DMG on failure#847

Closed
ryan-mt wants to merge 1 commit into
ilysenko:mainfrom
ryan-mt:fix/atomic-dmg-download
Closed

fix(updater): preserve cached DMG on failure#847
ryan-mt wants to merge 1 commit into
ilysenko:mainfrom
ryan-mt:fix/atomic-dmg-download

Conversation

@ryan-mt

@ryan-mt ryan-mt commented Jul 11, 2026

Copy link
Copy Markdown
Contributor

Summary

  • stage DMG downloads in a unique sibling file
  • atomically replace the cache only after streaming, hashing, and syncing succeed
  • preserve the prior cache on HTTP and interrupted-download failures

Tests

  • cargo fmt --all -- --check
  • cargo test -p codex-update-manager upstream::tests (5 passed)
  • cargo test -p codex-update-manager (227 passed; 3 unrelated feature-picker tests failed because Node.js is unavailable in the WSL test environment)

Copilot AI review requested due to automatic review settings July 11, 2026 17:40

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.

@ilysenko

Copy link
Copy Markdown
Owner

This work overlaps with the ongoing updater changes in #834. Please check the open pull requests before opening a new one and coordinate with existing work when there is overlap. Thank you.

@ilysenko ilysenko closed this Jul 11, 2026
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