fix(apps): eliminate blank-app window on launch and add crash visibility

- start the apps server before createWindow instead of after the full
  service-init chain: the Apps view was reachable ~10s before port 3210
  was listening, so every app iframe opened to connection-refused
- retry EADDRINUSE binds (quick relaunch races left the server disabled
  for the whole session with no retry)
- app frame: auto-retry the iframe instead of a dead manual Retry, and
  surface when the apps server itself is down (new apps:serverStatus)
- log render-process-gone/child-process-gone reasons; renderer helper
  crashes were previously invisible in packaged builds
This commit is contained in:
Gagan 2026-07-06 20:52:31 +05:30
parent 5e0fc059e7
commit f2bc01ffa9
5 changed files with 85 additions and 32 deletions

View file

@ -1228,6 +1228,13 @@ const ipcSchemas = {
}),
},
// Rowboat Apps (spec §13) — M1 local channels.
'apps:serverStatus': {
req: z.object({}),
res: z.object({
running: z.boolean(),
error: z.string().optional(),
}),
},
'apps:list': {
req: z.object({}),
res: z.object({