The best way to control Claude Code, Codex and more from any computer or phone
fix: don't restart the app on normal exists in dev runner (#986)
Co-authored-by: Julius Marminge <julius0216@outlook.com>
Noah Gregory committed
Mar 12, 2026 at 16:03 UTC
dcd2e5c34fbbf6cba7cdb23caef86568771a78d4
1 file changed
+3
-2
apps/desktop/scripts/dev-electron.mjs
+3
-2
@@ -80,12 +80,13 @@ function startApp() {
80
}
81
});
82
83
- app.once("exit", () => {
83
+ app.once("exit", (code, signal) => {
84
if (currentApp === app) {
85
currentApp = null;
86
}
87
88
- if (!shuttingDown && !expectedExits.has(app)) {
88
+ const exitedAbnormally = signal !== null || code !== 0;
89
+ if (!shuttingDown && !expectedExits.has(app) && exitedAbnormally) {
90
scheduleRestart();
91
}
92
});