Skip to content

Preserve failure reporting after updater rollbacks - #167

Merged
elripalda merged 1 commit into
elripalda:mainfrom
thehobbit85:codex/fix-update-rollback-record
Nov 14, 2026
Merged

elripalda merged 1 commit into
elripalda:mainfrom
thehobbit85:codex/fix-update-rollback-record

Conversation

@thehobbit85

Copy link
Copy Markdown
Contributor

A new launcher version can reach startup, clear update-pending.json, then crash during the updater helper's watch period. macOS and Linux restore the old version in this case, but it no longer has the record needed to show the failure or count it toward the existing two-failure limit.

Keep the record in helper memory before launch and restore it after a successful rollback, before reopening the old version. Preserve any newer record, and log a failed record write while still reopening the restored launcher.

Refs #102 and #123. This is a separate follow-up to merged #126 and #125.

Validation:

  • Regression failed before the fix using the real startup check and helper scripts with disposable stand-in apps.
  • Five regressions cover startup/crash rollback, newer-record preservation, successful starts, record-write failure, and failed rollback.
  • Full Rust suite: 510 passed, 1 existing ignored. Full UI suite: 175 passed, 7 platform skips.
  • All 13 existing AppImage helper/UI tests also passed on macOS with their Linux skip gates enabled in a scratch harness.
  • Shell syntax checks, diff checks, and independent review passed.

No real installer or installed launcher was executed.

@elripalda
elripalda merged commit e6a363e into elripalda:main Nov 14, 2026
4 checks passed
@thehobbit85
thehobbit85 deleted the codex/fix-update-rollback-record branch November 24, 2026 03:59
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.

2 participants