diegosouzapw
977e7402ea
fix(cli): persist supervisor give-up crash diagnostics to disk ( #13538 )
...
Root cause: ServerSupervisor.handleExit()'s give-up branch only printed the
crash summary/log via console.error(). In --tray/--tray-worker mode this
process is launched detached with stdio:"ignore" on Windows and Linux
(bin/cli/tray/detachedTray.mjs buildTrayLaunch()), so that output is
discarded by the OS and nothing ever explained why the tray + gateway
disappeared together.
Fix (Part A only, see plan-file for Part B — a restart-on-failure policy,
out of scope here): best-effort append the crash summary + buffered log to
<DATA_DIR>/server/crash.log, wrapped in try/catch so the write can never
block shutdown. Surface the same file from `omniroute doctor`.
Regression test: tests/unit/issue-13538-tray-crash-diagnostics-lost.test.ts
2026-09-16 13:59:28 -03:00
..
2026-05-15 02:08:12 -03:00
2026-05-15 01:30:18 -03:00
2026-08-23 14:26:08 -03:00
2026-06-11 04:01:24 -03:00
2026-07-26 03:53:25 -03:00
2026-05-15 02:24:45 -03:00
2026-05-14 23:24:52 -03:00
2026-05-15 00:28:36 -03:00
2026-05-15 01:51:55 -03:00
2026-08-23 18:11:50 -03:00
2026-08-21 13:57:52 -03:00
2026-08-18 08:25:16 -03:00
2026-08-23 18:11:50 -03:00
2026-09-03 23:26:59 -03:00
2026-08-30 09:10:31 -03:00
2026-08-18 08:25:16 -03:00
2026-05-15 02:47:49 -03:00
2026-08-18 08:25:16 -03:00
2026-05-15 00:52:15 -03:00
2026-07-20 15:56:08 -03:00
2026-09-16 13:59:28 -03:00
2026-09-14 23:24:46 -03:00
2026-05-15 09:13:56 -03:00
2026-05-15 02:24:45 -03:00
2026-07-10 18:06:00 -03:00
2026-08-13 04:43:18 -03:00
2026-08-18 08:25:16 -03:00
2026-08-18 08:25:16 -03:00
2026-08-05 22:39:39 -03:00
2026-06-23 03:08:29 -03:00
2026-09-16 06:17:04 -03:00
2026-06-01 14:30:17 -03:00
2026-05-14 23:54:49 -03:00
2026-08-29 19:51:59 -03:00
2026-09-11 22:06:18 -03:00
2026-08-23 18:11:50 -03:00
2026-05-15 03:00:52 -03:00
2026-08-13 04:43:02 -03:00
2026-08-16 02:20:59 -03:00
2026-08-21 21:28:43 -03:00
2026-05-26 23:51:47 -03:00
2026-05-15 02:25:58 -03:00
2026-08-18 08:25:16 -03:00
2026-08-18 08:25:16 -03:00
2026-08-20 22:41:27 -03:00
2026-08-18 11:31:53 -03:00
2026-08-14 11:00:13 -03:00
2026-08-05 21:45:56 -03:00
2026-08-30 09:10:31 -03:00
2026-05-15 04:51:23 -03:00
2026-05-20 09:12:49 -03:00
2026-08-23 18:11:50 -03:00
2026-05-14 23:11:30 -03:00
2026-08-18 08:25:16 -03:00
2026-08-05 21:41:33 -03:00
2026-09-14 23:24:46 -03:00
2026-05-15 02:47:49 -03:00
2026-08-30 09:10:31 -03:00
2026-08-16 00:42:14 -03:00
2026-08-24 19:57:12 -03:00
2026-08-16 00:42:14 -03:00
2026-08-16 00:42:14 -03:00
2026-08-16 00:42:14 -03:00
2026-08-16 00:42:14 -03:00
2026-08-16 00:42:14 -03:00
2026-08-16 00:42:14 -03:00
2026-08-16 00:42:14 -03:00
2026-08-16 00:42:14 -03:00
2026-09-11 22:05:03 -03:00
2026-08-16 00:42:14 -03:00
2026-08-16 00:42:14 -03:00
2026-08-25 13:11:28 -03:00
2026-05-15 00:45:35 -03:00
2026-08-23 18:11:50 -03:00
2026-05-26 23:51:47 -03:00
2026-08-05 16:47:23 -03:00
2026-05-15 00:36:41 -03:00
2026-05-15 02:27:56 -03:00
2026-05-15 02:47:49 -03:00
2026-05-15 02:47:49 -03:00
2026-08-20 22:41:27 -03:00
2026-06-19 06:49:01 -03:00
2026-05-15 02:25:24 -03:00
2026-05-15 04:07:20 -03:00
2026-09-03 23:28:12 -03:00
2026-08-29 15:27:53 -03:00
2026-05-15 00:59:21 -03:00
2026-05-15 01:53:09 -03:00