kshitijk4poor
88b9d35ee0
fix(desktop): log the latched-failure refusal once in the supervisor, not per request
...
799a4cc7f2 put a rememberLog before each of the three latched-failure
throws in runHermesStart (main.ts:13257/13262/13270). That path is not
rare while a failure is latched: ensureBackend() calls startHermes()
for every proxied primary API request, and the renderer's boot retries
(BOOT_RETRY_MAX_ATTEMPTS=5) hit it too. Each hit pushed an identical
timestamped line into the 300-line hermesLog ring and the disk flush
buffer, evicting the lines that explain the original failure -- the
same eviction 3f9380daba was fixing.
Remove the per-request lines (runHermesStart's short-circuit is as
cheap and silent as on base, WHY comments kept) and log the refusal
once at the only new consumer that needs the reason: the terminal-latch
early return in runPrimaryRecoverySpawn, which runs once per refused
respawn. Both sites now go through latchedBootFailure() (ordered
bootstrapFailure -> backendStartFailure -> remoteReauthFailure, same
order as before) so the trio can no longer drift between them.
Proof: tsc (tsconfig.electron.json) and eslint clean; vitest 25/25
(backend-start-failure + backend-exit-recovery). Per-request path: the
only rememberLog left in runHermesStart before the E2E block is the
pre-existing non-primary-instance line (awk over the function body);
`grep -c 'latched; refusing restart'` = 0. Helper probe:
(null,null,null)->null, (B,S,R)->B, (null,S,R)->S, (null,null,R)->R.
2026-09-22 13:36:49 +05:30
..
2026-09-21 16:47:50 -05:00
2026-09-21 16:47:50 -05:00
2026-09-21 18:24:39 +00:00
2026-09-21 18:24:39 +00:00
2026-09-21 14:41:52 +00:00
2026-09-18 00:00:23 -07:00
2026-09-20 12:24:46 -07:00
2026-09-20 12:24:46 -07:00
2026-09-17 00:34:50 -05:00
2026-09-21 14:41:52 +00:00
2026-09-16 17:19:06 -07:00
2026-09-20 19:13:13 -07:00
2026-09-21 14:41:52 +00:00
2026-09-21 14:41:52 +00:00
2026-09-18 09:49:46 -07:00
2026-09-18 09:49:46 -07:00
2026-09-22 13:36:49 +05:30
2026-09-22 13:36:49 +05:30
2026-09-17 00:34:50 -05:00
2026-09-21 14:41:52 +00:00
2026-09-22 13:36:49 +05:30
2026-09-22 13:36:49 +05:30
2026-09-18 09:37:29 -07:00
2026-09-16 17:50:47 -07:00
2026-09-21 14:41:52 +00:00
2026-09-21 14:41:52 +00:00
2026-09-18 00:00:23 -07:00
2026-09-21 14:41:52 +00:00
2026-09-21 14:41:52 +00:00
2026-09-21 18:24:39 +00:00
2026-09-21 13:44:49 -05:00
2026-09-21 14:41:52 +00:00
2026-09-21 18:24:39 +00:00
2026-09-21 18:24:39 +00:00
2026-09-20 19:45:30 -07:00
2026-09-20 19:45:30 -07:00
2026-09-20 19:04:11 -07:00
2026-09-21 14:41:52 +00:00
2026-09-21 18:53:49 -07:00
2026-09-21 18:53:49 -07:00
2026-09-16 17:17:22 -07:00
2026-09-21 14:41:52 +00:00
2026-09-21 00:09:50 -07:00
2026-09-21 14:41:52 +00:00
2026-09-16 17:17:22 -07:00
2026-09-16 23:55:40 -05:00
2026-09-16 12:39:46 -05:00
2026-09-21 14:41:52 +00:00
2026-09-18 20:35:27 +05:30
2026-09-17 14:51:18 -04:00
2026-09-20 14:29:15 -07:00
2026-09-21 00:09:50 -07:00
2026-09-16 17:47:26 -07:00
2026-09-16 17:47:26 -07:00
2026-09-21 18:24:39 +00:00
2026-09-21 14:41:52 +00:00
2026-09-21 14:41:52 +00:00
2026-09-20 18:47:20 -07:00
2026-09-21 00:53:38 -07:00
2026-09-21 10:07:03 -07:00
2026-09-21 10:07:03 -07:00
2026-09-21 21:54:36 +00:00
2026-09-21 16:47:50 -05:00
2026-09-21 13:44:49 -05:00
2026-09-21 16:47:50 -05:00
2026-09-21 21:54:36 +00:00
2026-09-21 16:47:50 -05:00
2026-09-21 14:41:52 +00:00
2026-09-20 19:37:57 -07:00
2026-09-21 14:41:52 +00:00
2026-09-21 10:23:04 -04:00
2026-09-21 14:41:52 +00:00
2026-09-21 10:23:04 -04:00
2026-09-22 13:36:49 +05:30
2026-09-15 19:10:53 -07:00
2026-09-15 19:10:53 -07:00
2026-09-21 16:47:50 -05:00
2026-09-21 21:54:36 +00:00
2026-09-21 16:47:50 -05:00
2026-09-21 18:24:39 +00:00
2026-09-21 14:41:52 +00:00
2026-09-21 14:41:52 +00:00
2026-09-21 14:41:52 +00:00
2026-09-21 19:27:10 +05:30
2026-09-21 19:27:10 +05:30
2026-09-17 00:34:50 -05:00
2026-09-21 14:41:52 +00:00
2026-09-21 14:41:52 +00:00
2026-09-21 14:41:52 +00:00
2026-09-21 14:41:52 +00:00
2026-09-21 14:41:52 +00:00
2026-09-15 18:54:28 -07:00
2026-09-21 14:41:52 +00:00
2026-09-21 14:41:52 +00:00
2026-09-21 14:41:52 +00:00
2026-09-18 14:39:29 +05:30
2026-09-18 16:24:07 +05:30
2026-09-21 14:41:52 +00:00
2026-09-18 16:24:07 +05:30
2026-09-21 14:41:52 +00:00
2026-09-20 16:20:08 -07:00
2026-09-21 18:51:47 +00:00
2026-09-17 09:05:24 -07:00
2026-09-17 09:05:24 -07:00
2026-09-17 09:05:24 -07:00
2026-09-15 19:10:53 -07:00
2026-09-21 00:53:38 -07:00
2026-09-21 14:41:52 +00:00
2026-09-20 11:27:03 -07:00
2026-09-21 14:41:52 +00:00
2026-09-21 14:41:52 +00:00
2026-09-16 09:46:44 -04:00
2026-09-21 14:41:52 +00:00
2026-09-21 14:41:52 +00:00
2026-09-21 18:24:39 +00:00
2026-09-21 14:41:52 +00:00
2026-09-20 19:21:46 -07:00
2026-09-20 19:21:46 -07:00
2026-09-16 16:18:17 -05:00
2026-09-18 09:37:29 -07:00
2026-09-18 09:37:29 -07:00
2026-09-18 12:43:36 -07:00
2026-09-21 14:41:52 +00:00
2026-09-21 14:41:52 +00:00
2026-09-21 14:41:52 +00:00
2026-09-21 14:41:52 +00:00
2026-09-21 14:41:52 +00:00
2026-09-21 14:41:52 +00:00
2026-09-17 14:51:18 -04:00
2026-09-17 14:51:18 -04:00
2026-09-21 13:44:40 -05:00
2026-09-21 18:51:47 +00:00
2026-09-21 14:41:52 +00:00
2026-09-21 18:24:39 +00:00
2026-09-20 15:08:40 -07:00
2026-09-20 15:08:40 -07:00
2026-09-20 11:26:29 -07:00
2026-09-20 11:26:29 -07:00
2026-09-20 11:26:29 -07:00
2026-09-20 11:14:36 -07:00
2026-09-20 11:14:36 -07:00
2026-09-16 17:13:56 -07:00
2026-09-16 17:13:56 -07:00
2026-09-21 14:41:52 +00:00
2026-09-21 14:41:52 +00:00
2026-09-17 14:51:18 -04:00
2026-09-17 14:51:18 -04:00
2026-09-17 14:51:18 -04:00
2026-09-17 14:51:18 -04:00
2026-09-20 19:21:46 -07:00
2026-09-20 19:21:46 -07:00
2026-09-18 12:43:36 -07:00
2026-09-21 14:41:52 +00:00
2026-09-21 14:41:52 +00:00
2026-09-18 09:18:32 -07:00
2026-09-17 14:51:18 -04:00
2026-09-17 14:51:18 -04:00
2026-09-17 14:51:18 -04:00
2026-09-17 14:51:18 -04:00