Skip to content

Queue updater relaunch after app exit - #318

Merged
IgorWarzocha merged 1 commit into
devfrom
fix/dev-updater-relaunch
Aug 19, 2026
Merged

Queue updater relaunch after app exit#318
IgorWarzocha merged 1 commit into
devfrom
fix/dev-updater-relaunch

Conversation

@IgorWarzocha

Copy link
Copy Markdown
Owner

Summary

  • use Electron app.relaunch with the staged executable
  • let the current app finish shutdown before the replacement starts
  • remove the detached-spawn grace heuristic

Root cause

The Restart action spawned the replacement while the current Electron process still owned the user-data lock. The replacement could start briefly and exit before the old process finished quitting. Electron app.relaunch queues the executable and starts it after the current instance exits.

Evidence

The laptop staged the new immutable hash successfully, then Restart left no app process. The replacement ran far enough to perform its startup wrapper migration before losing the handoff.

Validation

  • full gate: 48 test files / 116 tests, React Doctor 100
  • next dev release will be exercised by the currently installed repaired build

@IgorWarzocha
IgorWarzocha merged commit 1856a97 into dev Aug 19, 2026
1 check passed
@IgorWarzocha
IgorWarzocha deleted the fix/dev-updater-relaunch branch August 19, 2026 23:21
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.

1 participant