Neil
ffb695b958
fix(daemon): stop a failed spawn cancel from tearing down the shared connection (STA-4663) ( #15194 )
...
* fix(daemon): stop a failed spawn cancel from tearing down the shared connection (STA-4663)
`onCreateCancellationFailure` fired on ANY rejection of the `cancelCreateOrAttach`
RPC, including its own 5s timeout and application-level `ok:false` replies. That
called `handleDisconnect`, which rejects every in-flight request and destroys both
sockets — killing every sibling session on the daemon.
Only an undeliverable cancel now escalates, signalled by the new
`DaemonConnectionLostError`. A refused or timed-out cancel falls back to the
existing bounded `unmatchedCancelGraceMs` wait and then rejects just its own request.
Also wraps the control-socket write so a synchronous throw drops the pending entry
and its timer instead of leaking them.
STA-4663's premise — that legacy daemons reject `cancelCreateOrAttach` as an unknown
request type — is incorrect; the handler has existed since protocol v11 (181741d769 ).
* fix(daemon): keep the wedged-daemon respawn signal when a spawn cancel times out
STA-4663 stopped a failed cancel from tearing down the shared connection, but
with it went the only path that recovered a daemon wedged with its socket still
open: create times out at 30s, its cancel times out at 5s, and nothing else in
the client ever notices.
Classify our own deadline as DaemonRequestTimeoutError. When the request and its
cancel both hit it, reject that request alone with the message isDaemonGoneError
matches, so withDaemonRetry respawns instead of retrying forever. Siblings are
untouched, and aborts are excluded — the caller asked to stop, not to retry.
2026-08-17 20:37:30 -07:00
..
2026-04-17 01:42:41 -04:00
2026-08-13 18:11:33 -07:00
2026-08-16 12:48:53 -07:00
2026-08-17 20:37:30 -07:00
2026-08-17 20:37:30 -07:00
2026-07-23 16:56:01 -07:00
2026-08-04 17:23:01 -07:00
2026-07-23 16:56:01 -07:00
2026-07-26 15:05:39 -07:00
2026-07-30 17:07:40 -07:00
2026-08-03 16:28:49 -07:00
2026-08-03 16:28:49 -07:00
2026-08-15 19:36:03 -07:00
2026-07-27 17:17:47 -07:00
2026-07-27 17:17:47 -07:00
2026-08-16 12:48:53 -07:00
2026-08-15 19:36:03 -07:00
2026-08-15 19:36:03 -07:00
2026-08-13 05:09:12 -07:00
2026-08-14 12:21:55 -07:00
2026-08-14 12:21:55 -07:00
2026-08-15 19:36:03 -07:00
2026-08-15 19:36:03 -07:00
2026-08-15 19:36:03 -07:00
2026-08-15 19:36:03 -07:00
2026-08-17 20:37:30 -07:00
2026-08-17 20:37:30 -07:00
2026-08-17 20:37:30 -07:00
2026-08-15 19:36:03 -07:00
2026-08-13 22:48:24 -07:00
2026-08-13 05:09:12 -07:00
2026-08-15 19:36:03 -07:00
2026-08-07 22:33:50 -07:00
2026-08-07 22:33:50 -07:00
2026-08-07 22:33:50 -07:00
2026-08-07 22:33:50 -07:00
2026-08-07 22:33:50 -07:00
2026-08-05 23:54:30 -07:00
2026-08-07 22:33:50 -07:00
2026-08-13 18:11:33 -07:00
2026-08-17 20:37:30 -07:00
2026-07-07 19:21:07 -04:00
2026-07-07 19:21:07 -04:00
2026-08-16 01:16:11 -07:00
2026-07-23 01:45:24 -07:00
2026-08-15 19:36:03 -07:00
2026-08-15 19:36:03 -07:00
2026-08-15 19:36:03 -07:00
2026-08-15 19:36:03 -07:00
2026-08-05 23:54:30 -07:00
2026-07-29 20:20:11 -07:00
2026-07-07 19:21:07 -04:00
2026-08-15 19:36:03 -07:00
2026-08-15 19:36:03 -07:00
2026-07-31 04:56:14 -07:00
2026-07-31 04:56:14 -07:00
2026-07-31 04:56:14 -07:00
2026-08-15 19:36:03 -07:00
2026-08-15 19:36:03 -07:00
2026-08-15 19:36:03 -07:00
2026-08-15 19:36:03 -07:00
2026-08-15 19:36:03 -07:00
2026-08-15 00:54:20 -07:00
2026-08-15 19:36:03 -07:00
2026-08-15 00:54:20 -07:00
2026-08-15 19:36:03 -07:00
2026-08-15 19:36:03 -07:00
2026-08-15 19:36:03 -07:00
2026-08-15 19:36:03 -07:00
2026-08-15 00:54:20 -07:00
2026-08-15 19:36:03 -07:00
2026-08-15 19:36:03 -07:00
2026-07-26 14:51:21 -07:00
2026-07-26 14:51:21 -07:00
2026-07-15 15:23:35 -07:00
2026-08-05 23:54:30 -07:00
2026-08-15 19:36:03 -07:00
2026-08-15 19:36:03 -07:00
2026-08-15 19:36:03 -07:00
2026-08-15 19:36:03 -07:00
2026-07-31 04:56:14 -07:00
2026-08-15 19:36:03 -07:00
2026-08-15 19:36:03 -07:00
2026-08-16 01:16:11 -07:00
2026-08-16 01:16:11 -07:00
2026-08-15 19:36:03 -07:00
2026-08-15 19:36:03 -07:00
2026-08-15 19:36:03 -07:00
2026-08-15 19:36:03 -07:00
2026-08-15 19:36:03 -07:00
2026-08-15 19:36:03 -07:00
2026-08-15 19:36:03 -07:00
2026-08-05 20:52:22 -07:00
2026-08-15 19:36:03 -07:00
2026-08-15 19:36:03 -07:00
2026-08-17 20:37:30 -07:00
2026-07-30 00:31:34 -07:00
2026-08-15 19:36:03 -07:00
2026-08-16 01:16:11 -07:00
2026-08-14 18:36:51 -07:00
2026-07-23 18:35:31 -07:00
2026-08-15 19:36:03 -07:00
2026-07-30 16:02:08 -07:00
2026-08-05 21:12:32 -07:00
2026-08-15 19:36:03 -07:00
2026-08-15 19:36:03 -07:00
2026-08-13 05:09:12 -07:00
2026-08-15 19:36:03 -07:00
2026-08-16 16:27:48 -07:00
2026-08-15 19:36:03 -07:00
2026-08-15 19:36:03 -07:00
2026-08-15 19:36:03 -07:00
2026-08-16 16:27:48 -07:00
2026-08-16 01:16:11 -07:00
2026-08-16 16:27:48 -07:00
2026-08-13 18:11:33 -07:00
2026-08-06 21:18:41 -07:00
2026-08-15 19:36:03 -07:00
2026-08-13 05:09:12 -07:00
2026-08-15 19:36:03 -07:00
2026-08-17 14:31:37 -07:00
2026-08-15 19:36:03 -07:00
2026-08-13 18:11:33 -07:00
2026-08-15 19:36:03 -07:00
2026-07-10 17:27:47 -07:00
2026-07-19 20:25:52 -07:00
2026-07-23 19:00:43 -07:00
2026-07-23 19:00:43 -07:00
2026-07-19 20:25:52 -07:00
2026-08-15 19:36:03 -07:00
2026-07-23 19:00:43 -07:00
2026-07-23 19:00:43 -07:00
2026-07-27 17:17:47 -07:00
2026-07-23 19:00:43 -07:00
2026-08-15 19:36:03 -07:00
2026-08-15 19:36:03 -07:00
2026-08-15 19:36:03 -07:00
2026-08-15 19:36:03 -07:00
2026-08-16 23:51:53 -07:00
2026-07-10 17:27:47 -07:00
2026-08-13 18:11:33 -07:00
2026-08-05 20:52:22 -07:00
2026-08-14 18:36:51 -07:00
2026-08-14 18:36:51 -07:00
2026-08-13 18:11:33 -07:00
2026-08-03 20:00:28 -07:00
2026-08-12 19:16:34 -07:00
2026-06-12 16:31:24 -07:00
2026-07-02 14:50:15 -07:00
2026-08-10 18:24:04 -07:00
2026-08-12 19:16:34 -07:00
2026-06-18 16:48:43 -07:00
2026-08-03 21:00:57 -07:00
2026-06-29 22:38:29 -07:00
2026-07-29 18:21:26 -07:00
2026-08-14 12:21:55 -07:00
2026-04-17 01:42:41 -04:00
2026-07-26 01:13:00 -07:00
2026-07-26 01:13:00 -07:00
2026-08-16 16:50:26 -07:00
2026-08-15 19:36:03 -07:00
2026-08-01 03:35:34 -07:00
2026-08-01 03:35:34 -07:00
2026-08-01 03:35:34 -07:00
2026-08-11 18:19:43 -07:00
2026-07-28 15:12:44 -07:00
2026-07-28 15:12:44 -07:00
2026-08-11 11:49:44 -07:00
2026-06-08 16:36:04 -07:00
2026-06-29 22:38:29 -07:00
2026-07-19 16:04:05 -07:00
2026-07-19 16:04:05 -07:00
2026-06-19 17:14:55 -07:00
2026-06-19 17:14:55 -07:00
2026-06-21 18:51:44 -07:00
2026-06-21 18:51:44 -07:00
2026-07-21 20:51:28 -07:00
2026-07-21 20:51:28 -07:00
2026-08-16 16:27:48 -07:00
2026-08-16 01:16:11 -07:00
2026-08-16 01:16:11 -07:00
2026-08-16 01:16:11 -07:00
2026-08-16 01:16:11 -07:00
2026-08-16 01:16:11 -07:00
2026-08-16 01:16:11 -07:00
2026-08-16 01:16:11 -07:00
2026-08-15 04:47:24 -07:00
2026-08-16 01:16:11 -07:00
2026-08-16 16:27:48 -07:00
2026-08-16 01:16:11 -07:00
2026-08-16 16:27:48 -07:00
2026-08-15 19:36:03 -07:00
2026-08-03 21:00:57 -07:00
2026-08-03 21:00:57 -07:00
2026-08-16 01:16:11 -07:00
2026-08-15 19:36:03 -07:00
2026-08-15 19:36:03 -07:00
2026-08-15 19:36:03 -07:00
2026-07-23 18:35:31 -07:00
2026-08-15 19:36:03 -07:00
2026-08-15 19:36:03 -07:00
2026-08-15 19:36:03 -07:00
2026-08-15 19:36:03 -07:00
2026-08-15 19:36:03 -07:00
2026-08-15 19:36:03 -07:00
2026-08-15 19:36:03 -07:00
2026-08-15 19:36:03 -07:00
2026-08-16 12:48:53 -07:00
2026-08-16 23:51:53 -07:00
2026-08-15 19:36:03 -07:00
2026-08-09 14:29:14 -07:00
2026-08-09 14:29:14 -07:00
2026-07-30 01:14:12 -07:00
2026-08-13 05:09:12 -07:00
2026-07-28 15:12:44 -07:00
2026-08-10 18:24:04 -07:00
2026-08-13 05:09:12 -07:00
2026-08-13 05:09:12 -07:00
2026-07-26 01:13:00 -07:00
2026-07-28 15:12:44 -07:00
2026-07-25 00:41:18 -07:00
2026-07-27 17:40:46 -07:00
2026-07-25 00:04:34 -07:00
2026-07-23 16:56:01 -07:00
2026-07-26 01:13:00 -07:00
2026-07-26 01:13:00 -07:00
2026-07-28 15:12:44 -07:00
2026-07-26 01:13:00 -07:00
2026-07-28 15:12:44 -07:00
2026-07-29 18:21:26 -07:00
2026-07-23 06:22:56 -07:00
2026-07-23 06:22:56 -07:00
2026-07-28 15:12:44 -07:00
2026-07-28 15:12:44 -07:00
2026-08-16 17:08:10 -07:00
2026-08-16 17:08:10 -07:00
2026-07-28 15:12:44 -07:00
2026-07-28 15:12:44 -07:00
2026-07-28 15:12:44 -07:00
2026-07-29 18:21:26 -07:00
2026-07-29 18:21:26 -07:00
2026-08-13 05:09:12 -07:00
2026-08-16 16:27:48 -07:00
2026-07-21 20:51:28 -07:00
2026-08-16 01:16:11 -07:00
2026-08-15 19:36:03 -07:00
2026-08-16 16:27:48 -07:00
2026-08-13 22:48:24 -07:00
2026-08-16 16:27:48 -07:00
2026-08-15 19:36:03 -07:00
2026-08-16 16:27:48 -07:00
2026-07-21 20:51:28 -07:00
2026-07-22 22:58:09 -07:00
2026-08-15 19:36:03 -07:00
2026-07-15 15:23:35 -07:00
2026-08-15 19:36:03 -07:00
2026-07-21 20:51:28 -07:00
2026-08-15 19:36:03 -07:00
2026-08-15 19:36:03 -07:00
2026-08-16 16:27:48 -07:00
2026-08-16 17:08:10 -07:00
2026-07-19 20:25:52 -07:00
2026-07-10 17:27:47 -07:00
2026-07-19 16:04:05 -07:00
2026-07-24 14:12:51 -07:00
2026-08-11 18:19:43 -07:00
2026-07-10 17:27:47 -07:00
2026-08-14 02:22:46 -07:00
2026-08-09 16:36:12 -07:00
2026-08-10 18:24:04 -07:00
2026-08-10 18:24:04 -07:00
2026-08-11 18:19:43 -07:00
2026-08-17 20:37:30 -07:00
2026-07-02 18:41:23 -04:00
2026-07-02 18:41:23 -04:00
2026-07-19 16:04:05 -07:00
2026-07-19 16:04:05 -07:00
2026-08-13 20:44:16 -07:00
2026-08-11 18:19:43 -07:00