jif
9baf9789e1
Honor interrupts during resumable exec_command startup ( #64753 )
...
## Why
A turn interrupt can arrive while a command is waiting for its executor
connection or while a newly launched shell is still being registered.
The command can then launch after the interrupt or keep running before
the caller has a session ID to interact with it.
## What changed
Check for cancellation before dispatching a resumable command, including
after remote connection recovery. If the shell has already started and
is still running, stop it when cancellation wins before registration and
return the usual `aborted by user` result. Preserve the result of commands
that already reported an exit.
Track any pending command begin and end events for interrupted startups
so session shutdown waits for them to be published.
## Testing
Add regression coverage for interrupts before dispatch and after launch
but before registration, including command history on shutdown. Cover
cancellation during remote executor recovery and cleanup of abandoned
remote starts.
GitOrigin-RevId: 624df736ca2cb077e879f52a194ee4d89afd225a
2026-11-30 16:29:58 +00:00
..
2026-11-03 10:01:36 +00:00
2026-11-25 22:41:36 +00:00
2026-11-30 16:12:41 +00:00
2026-11-20 02:59:58 +00:00
2026-11-30 05:06:55 +00:00
2026-11-24 16:14:00 +00:00
2026-11-05 21:21:19 +00:00
2026-11-25 06:38:46 +00:00
2026-11-20 02:02:55 +00:00
2026-11-26 02:32:11 +00:00
2026-11-30 16:12:41 +00:00
2026-11-24 16:14:00 +00:00
2026-11-04 09:51:28 +00:00
2026-11-23 16:52:47 +00:00
2026-11-26 14:27:37 +00:00
2026-11-20 02:02:55 +00:00
2026-11-07 10:41:36 +00:00
2026-11-03 06:05:55 +00:00
2026-11-03 06:05:55 +00:00
2026-11-25 22:53:41 +00:00
2026-10-15 12:01:04 +00:00
2026-11-24 21:27:17 +00:00
2026-11-17 13:38:34 +00:00
2026-11-13 23:02:16 +00:00
2026-11-20 17:46:32 +00:00
2026-11-24 20:21:47 +00:00
2026-11-23 16:52:47 +00:00
2026-10-07 18:32:50 +00:00
2026-11-11 05:38:52 +00:00
2026-11-24 20:21:47 +00:00
2026-11-18 01:48:42 +00:00
2026-11-24 04:08:59 +00:00
2026-11-22 19:12:31 +00:00
2026-11-24 04:08:59 +00:00
2026-11-23 22:58:47 +00:00
2026-11-19 12:07:28 +00:00
2026-11-19 09:37:29 +00:00
2026-11-24 23:38:37 +00:00
2026-11-19 09:37:29 +00:00
2026-11-07 19:26:20 +00:00
2026-11-30 04:08:38 +00:00
2026-11-13 04:51:06 +00:00
2026-11-21 05:42:40 +00:00
2026-11-24 20:21:47 +00:00
2026-10-13 16:57:54 +00:00
2026-10-06 01:39:50 +00:00
2026-11-25 02:31:54 +00:00
2026-10-19 19:24:26 +00:00
2026-11-25 06:38:46 +00:00
2026-11-20 21:42:17 +00:00
2026-11-26 14:27:37 +00:00
2026-11-16 22:27:05 +00:00
2026-11-19 12:28:34 +00:00
2026-11-24 20:21:47 +00:00
2026-10-09 18:58:53 +00:00
2026-10-08 16:19:09 +00:00
2026-11-19 01:27:01 +00:00
2026-11-24 16:14:00 +00:00
2026-11-27 16:25:10 +00:00
2026-11-26 02:32:11 +00:00
2026-11-24 16:14:00 +00:00
2026-11-06 03:51:12 +00:00
2026-11-20 02:02:55 +00:00
2026-11-06 03:51:12 +00:00
2026-11-17 20:04:36 +00:00
2026-11-19 06:03:09 +00:00
2026-11-17 19:09:21 +00:00
2026-11-12 15:35:27 +00:00
2026-11-18 08:20:26 +00:00
2026-11-24 21:10:00 +00:00
2026-10-06 01:39:50 +00:00
2026-10-23 04:01:39 +00:00
2026-11-26 14:29:37 +00:00
2026-11-12 15:35:27 +00:00
2026-11-26 14:14:59 +00:00
2026-11-24 21:10:00 +00:00
2026-11-20 20:10:51 +00:00
2026-11-27 15:45:48 +00:00
2026-11-28 06:13:28 +00:00
2026-11-24 21:10:00 +00:00
2026-11-24 16:14:00 +00:00
2026-11-24 21:10:00 +00:00
2026-11-12 15:35:27 +00:00
2026-11-12 15:35:27 +00:00
2026-11-26 02:32:11 +00:00
2026-11-30 12:52:50 +00:00
2026-11-24 17:19:40 +00:00
2026-11-20 02:02:55 +00:00
2026-11-24 21:10:00 +00:00
2026-11-24 16:14:00 +00:00
2026-10-26 19:21:08 +00:00
2026-11-26 02:32:11 +00:00
2026-11-20 20:24:34 +00:00
2026-11-13 04:51:06 +00:00
2026-11-25 22:45:49 +00:00
2026-11-26 10:57:00 +00:00
2026-11-24 16:14:00 +00:00
2026-11-07 03:16:52 +00:00
2026-11-24 16:14:00 +00:00
2026-10-06 17:11:07 +00:00
2026-11-24 16:14:00 +00:00
2026-11-13 23:03:49 +00:00
2026-11-14 01:34:12 +00:00
2026-10-29 03:14:13 +00:00
2026-11-24 04:08:23 +00:00
2026-11-13 04:51:06 +00:00
2026-11-13 04:51:06 +00:00
2026-11-13 04:51:06 +00:00
2026-10-13 16:23:44 +00:00
2026-11-30 04:08:38 +00:00
2026-10-21 02:41:05 +00:00
2026-11-02 21:09:37 +00:00
2026-11-30 04:08:38 +00:00
2026-11-26 02:32:11 +00:00
2026-11-24 16:14:00 +00:00
2026-10-06 01:39:50 +00:00
2026-11-24 21:10:00 +00:00
2026-10-08 16:19:09 +00:00
2026-11-14 15:44:38 +00:00
2026-11-30 13:51:38 +00:00
2026-11-24 20:21:47 +00:00
2026-11-25 22:41:36 +00:00
2026-11-14 00:32:02 +00:00
2026-11-24 20:21:47 +00:00
2026-11-24 04:08:59 +00:00
2026-11-24 20:21:47 +00:00
2026-11-30 16:12:41 +00:00
2026-11-10 01:30:43 +00:00
2026-11-23 16:52:47 +00:00
2026-10-09 18:58:53 +00:00
2026-11-30 16:29:58 +00:00
2026-11-30 01:26:59 +00:00
2026-11-06 02:42:02 +00:00
2026-10-29 10:34:17 +00:00
2026-11-24 00:26:55 +00:00
2026-10-06 17:11:07 +00:00
2026-11-24 03:55:05 +00:00
2026-11-30 05:06:55 +00:00
2026-11-24 20:21:47 +00:00
2026-11-24 20:21:47 +00:00
2026-11-27 19:09:58 +00:00
2026-10-20 14:14:59 +00:00
2026-11-24 20:21:47 +00:00
2026-11-02 19:38:59 +00:00
2026-11-18 18:11:54 +00:00
2026-11-25 02:31:54 +00:00
2026-11-25 02:31:54 +00:00
2026-11-24 03:55:05 +00:00
2026-11-25 02:31:54 +00:00
2026-11-25 02:31:54 +00:00
2026-11-25 02:31:54 +00:00
2026-11-25 02:31:54 +00:00
2026-11-14 15:44:38 +00:00
2026-11-12 04:31:25 +00:00
2026-11-04 01:15:38 +00:00
2026-10-29 00:42:21 +00:00
2026-11-25 22:41:36 +00:00
2026-10-06 17:11:07 +00:00
2026-11-26 02:32:11 +00:00
2026-11-24 20:21:47 +00:00
2026-10-06 17:11:07 +00:00
2026-11-03 11:14:59 +00:00
2026-11-05 03:49:13 +00:00
2026-11-25 22:41:36 +00:00
2026-11-19 22:16:30 +00:00
2026-11-24 20:21:47 +00:00
2026-10-13 13:36:24 +00:00
2026-11-05 22:49:46 +00:00
2026-10-06 17:11:07 +00:00
2026-10-19 20:01:37 +00:00
2026-10-29 19:16:28 +00:00
2026-11-06 19:29:06 +00:00
2026-11-24 20:21:47 +00:00
2026-11-18 18:11:54 +00:00
2026-11-24 20:21:47 +00:00
2026-11-30 04:08:38 +00:00
2026-11-19 17:46:53 +00:00
2026-11-20 02:02:55 +00:00
2026-11-10 04:56:49 +00:00
2026-11-07 09:48:46 +00:00
2026-11-20 02:02:55 +00:00
2026-10-06 17:11:07 +00:00
2026-11-30 16:12:41 +00:00
2026-11-18 15:38:06 +00:00
2026-11-12 22:41:50 +00:00
2026-11-13 21:51:53 +00:00
2026-11-24 16:14:00 +00:00
2026-11-05 00:39:39 +00:00
2026-11-25 14:03:11 +00:00
2026-11-24 20:21:47 +00:00
2026-11-13 00:29:24 +00:00
2026-10-05 16:58:29 +00:00
2026-11-05 11:14:26 +00:00
2026-11-20 02:59:58 +00:00
2026-11-24 20:21:47 +00:00
2026-11-24 20:21:47 +00:00
2026-10-22 23:48:20 +00:00
2026-10-27 19:50:41 +00:00
2026-11-24 00:13:03 +00:00
2026-11-24 20:21:47 +00:00
2026-11-25 22:41:36 +00:00
2026-11-30 12:52:50 +00:00
2026-11-24 20:21:47 +00:00
2026-11-26 14:14:59 +00:00
2026-11-26 14:14:59 +00:00
2026-11-24 20:21:47 +00:00
2026-10-27 13:02:57 +00:00
2026-10-07 19:42:35 +00:00
2026-11-24 21:10:00 +00:00
2026-11-13 18:47:15 +00:00
2026-11-24 21:10:00 +00:00
2026-11-20 20:11:57 +00:00
2026-11-07 21:44:47 +00:00
2026-11-24 20:21:47 +00:00
2026-11-19 15:31:33 +00:00
2026-11-20 23:44:47 +00:00
2026-11-24 16:12:32 +00:00
2026-11-26 14:14:59 +00:00
2026-11-19 03:58:01 +00:00
2026-11-19 16:56:55 +00:00
2026-11-05 22:03:29 +00:00
2026-11-24 20:21:47 +00:00
2026-11-19 05:37:58 +00:00
2026-11-14 02:55:41 +00:00
2026-11-18 06:35:41 +00:00
2026-10-02 23:26:27 +00:00
2026-11-30 13:51:38 +00:00
2026-11-17 05:17:42 +00:00
2026-10-12 18:54:22 +00:00
2026-10-30 18:20:57 +00:00
2026-11-25 22:41:36 +00:00
2026-11-17 12:22:55 +00:00
2026-11-03 06:05:55 +00:00
2026-10-06 01:39:50 +00:00
2026-11-18 14:53:00 +00:00
2026-11-20 17:46:32 +00:00
2026-11-16 22:27:05 +00:00
2026-11-30 13:51:38 +00:00
2026-11-26 14:27:37 +00:00
2026-11-24 16:14:00 +00:00
2026-11-24 20:21:47 +00:00
2026-11-26 02:32:11 +00:00
2026-11-25 22:41:36 +00:00
2026-11-25 22:41:36 +00:00
2026-11-30 13:51:38 +00:00
2026-11-02 16:00:20 +00:00
2026-11-26 14:27:37 +00:00
2026-11-24 16:14:00 +00:00
2026-11-26 14:27:37 +00:00
2026-10-26 18:33:05 +00:00
2026-10-26 18:33:05 +00:00
2026-10-06 01:39:50 +00:00
2026-11-27 11:13:25 +00:00
2026-11-23 16:52:47 +00:00
2026-11-25 22:41:36 +00:00
2026-10-06 17:11:07 +00:00
2026-11-19 01:27:01 +00:00
2026-10-27 23:02:27 +00:00
2026-10-20 22:34:40 +00:00
2026-11-24 16:14:00 +00:00
2026-11-04 01:24:36 +00:00
2026-11-25 02:31:54 +00:00
2026-11-04 19:58:24 +00:00
2026-11-30 15:22:51 +00:00
2026-11-10 19:40:10 +00:00
2026-11-24 21:27:17 +00:00
2026-10-28 15:10:52 +00:00
2026-11-30 16:29:58 +00:00
2026-10-30 20:53:25 +00:00
2026-10-06 17:11:07 +00:00
2026-11-20 17:46:32 +00:00
2026-11-19 20:26:00 +00:00
2026-11-21 04:05:41 +00:00
2026-11-17 18:56:05 +00:00
2026-11-18 01:48:42 +00:00
2026-10-19 19:24:26 +00:00
2026-11-26 02:32:11 +00:00
2026-11-13 23:03:49 +00:00