fix(desktop): recover failed update installs - #153
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
Greptile SummaryThis change prevents packaged desktop builds from inheriting the development backend port and restores backends when updater error events interrupt installation. A direct Confidence Score: 4/5Not safe to merge until the direct installation-rejection handler restores the backends it stopped. A focused desktop test directly exercised the typed installer-rejection path and observed that backend recovery was never invoked after shutdown. Files Needing Attention: apps/desktop/src/updates/DesktopUpdates.ts needs recovery logic in the ElectronUpdaterQuitAndInstallError catch path, with a regression test in DesktopUpdates.test.ts.
What T-Rex did
|
Packaged Akeru inherited an ambient T3CODE_PORT, which could send the renderer to another local server while its own backend failed to bind. A failed update install could then leave the old desktop process alive after its backends and windows had stopped.
Packaged builds now ignore the development-only port override and use the existing free-port selection. If the updater reports an install failure, the desktop clears its quitting state and restarts every registered backend so the main window can recover. Focused tests cover both failure paths.
Model: gpt-5.6-sol
Harness: Codex harness in T3 Code