You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(desktop): complete the update restart flow (#126)
## Related Issue
No issue. This bug was reported directly with macOS screenshots and a
reproducible update failure.
## Problem
The update restart closed Electron windows before the normal quit event.
The tray close handler hid the window, and the bundled local server
remained active. macOS ShipIt then found two running Pythinker processes
and canceled the installation. The remaining app could show a
main-process connection error.
## What changed
- Start the shared desktop shutdown path on Electron update quits,
before windows close.
- Use one **Update** toast action on Windows and macOS. It downloads
when needed, then closes, installs, and restarts automatically.
- Keep **Skip** as the alternative and document the flow.
- Add updater and toast regression coverage plus a patch changeset.
## Checklist
- [x] I have read the
[CONTRIBUTING](https://github.com/PyModel/pythinker-code/blob/main/CONTRIBUTING.md)
document.
- [x] I have linked a related issue, or explained the problem above.
- [x] I have added tests that prove my feature works.
- [x] Ran `gen-changesets` skill, or this PR needs no changeset.
- [x] Ran `gen-docs` skill, or this PR needs no doc update.
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Bug Fixes**
* Desktop updates now download, install, close, and restart the app
through a single **Update** action.
* Update installation waits for the download to finish before
restarting.
* **Documentation**
* Added guidance for the desktop update prompt, including **Update** and
**Skip** actions.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
0 commit comments