Krish Chainani
c2abf869d5
Run executor hooks for interrupted turns ( #41432 )
...
## Why
Executor-scoped cleanup hooks need to observe an interrupted turn as well as a
normally completed one.
## What changed
- Allow bundled executor plugins to register the allowlisted `Interrupt` hook
alongside `Stop`, while preserving multiple allowed hook entries from the
selected executor environment.
- Run interrupt hooks with the interrupted turn's last step discovery and turn
metadata. Turns without a step context do not reuse discovery from an earlier
turn.
- Keep executor-scoped interrupt hooks asynchronous and omit public hook
lifecycle events for them, matching executor `Stop` hook behavior.
## Testing
Added coverage for hook filtering and registration, interrupt execution and
metadata propagation, environment selection, and turns without a step context.
GitOrigin-RevId: f0c536b3382a37cf3bf693c4573d21f6f66ace4e
2026-08-28 23:03:05 +00:00
..
2026-08-28 09:48:13 +00:00
2026-07-06 14:29:19 -07:00
2026-04-07 00:32:41 +00:00
2026-08-28 21:40:23 +00:00
2026-08-28 17:49:21 +00:00
2026-08-28 21:40:23 +00:00
2026-08-20 07:37:52 +00:00
2026-08-28 18:23:47 +00:00
2026-06-24 21:08:39 -07:00
2026-08-17 22:26:27 +00:00
2026-08-21 06:41:28 +00:00
2026-08-25 05:16:45 +00:00
2026-08-28 22:26:23 +00:00
2026-08-28 22:26:23 +00:00
2026-08-28 23:03:05 +00:00
2026-08-28 21:40:23 +00:00
2026-08-28 19:04:54 +00:00
2026-08-25 13:10:24 +00:00
2026-07-28 23:49:37 +00:00
2026-08-25 21:20:51 +00:00
2026-08-26 16:28:35 +00:00
2026-08-25 21:20:51 +00:00
2026-08-26 06:51:58 +00:00
2026-08-26 06:51:58 +00:00
2026-05-08 12:36:02 -07:00
2026-08-25 19:54:52 +00:00
2026-08-25 19:54:52 +00:00
2026-08-28 01:14:02 +00:00
2026-08-28 01:14:02 +00:00
2026-08-23 10:06:57 +00:00
2026-08-27 02:00:31 +00:00
2026-08-27 20:05:08 +00:00
2026-03-12 08:16:36 -07:00
2026-04-01 23:06:24 -07:00
2026-07-23 19:32:26 +00:00
2026-08-05 18:19:22 +00:00
2026-08-20 19:19:41 +00:00
2026-08-28 09:48:13 +00:00
2026-08-28 09:48:13 +00:00
2026-08-28 21:40:23 +00:00
2026-08-23 21:29:11 +00:00
2026-08-28 22:26:23 +00:00
2026-08-28 22:26:23 +00:00
2026-08-23 21:29:11 +00:00
2026-08-25 17:41:22 +00:00
2026-08-27 07:50:05 +00:00
2026-08-17 22:26:27 +00:00
2026-08-27 00:02:26 +00:00
2026-03-12 00:35:21 -07:00
2026-06-24 22:17:43 -07:00
2026-08-25 19:54:52 +00:00
2026-07-06 11:20:32 -07:00
2026-07-06 11:20:32 -07:00
2026-08-27 21:05:40 +00:00
2026-08-04 00:51:53 +00:00
2026-08-27 04:58:21 +00:00
2026-08-10 01:44:30 +00:00
2026-08-10 17:02:19 +00:00
2026-08-20 05:07:17 +00:00
2026-08-20 07:03:02 +00:00
2026-08-25 05:16:45 +00:00
2026-08-14 00:18:29 +00:00
2026-08-25 05:16:45 +00:00
2026-05-13 11:31:27 +02:00
2026-08-25 21:34:05 +00:00
2026-08-21 21:17:42 +00:00
2026-08-28 23:03:05 +00:00
2026-08-23 22:23:40 +00:00
2026-08-23 22:23:40 +00:00
2026-04-28 13:03:28 +02:00
2026-08-25 19:54:52 +00:00
2026-08-26 16:28:35 +00:00
2026-08-25 20:26:23 +00:00
2026-05-26 20:59:47 -07:00
2026-08-28 21:40:23 +00:00
2026-08-27 20:39:39 +00:00
2026-08-06 13:37:07 +00:00
2026-08-06 13:37:07 +00:00
2026-08-25 16:47:13 +00:00
2026-08-20 17:46:05 +00:00
2026-03-25 11:05:35 -07:00
2026-07-06 14:51:34 -07:00
2026-04-09 10:53:06 -07:00
2026-04-24 17:49:29 -07:00
2026-08-17 19:06:53 +00:00
2026-08-25 17:41:22 +00:00
2026-08-17 04:01:37 +00:00
2026-08-17 04:01:37 +00:00
2026-08-18 18:41:40 +00:00
2026-08-28 02:39:47 +00:00
2026-06-01 18:45:07 +00:00
2026-08-26 22:37:59 +00:00
2026-07-23 19:32:26 +00:00
2026-08-25 17:41:22 +00:00
2026-08-03 09:46:38 +00:00
2026-07-23 19:19:35 +00:00
2026-08-17 21:49:30 +00:00
2026-08-20 23:26:59 +00:00
2026-08-17 21:49:30 +00:00
2026-08-20 23:26:59 +00:00
2026-06-16 14:34:54 +02:00
2026-08-23 20:08:40 +00:00
2026-08-24 10:56:54 +00:00
2026-08-26 22:37:59 +00:00
2026-08-19 12:56:08 +00:00
2026-08-25 14:34:25 +00:00
2026-08-20 06:03:25 +00:00
2026-08-20 06:03:25 +00:00
2026-08-27 00:07:26 +00:00
2026-08-13 11:11:26 +00:00
2026-05-04 11:46:03 -07:00
2026-08-27 20:01:39 +00:00
2026-08-28 21:40:23 +00:00
2026-08-04 15:23:43 +00:00
2026-08-26 16:28:35 +00:00
2026-08-28 16:04:26 +00:00
2026-08-11 19:30:12 +00:00
2026-08-11 19:30:12 +00:00
2026-07-22 02:19:45 +00:00
2026-07-22 02:19:45 +00:00
2026-08-26 22:37:59 +00:00
2026-08-26 22:37:59 +00:00
2026-08-20 19:19:41 +00:00
2026-07-25 16:06:54 +00:00
2026-04-20 22:39:17 -07:00
2026-08-25 17:41:22 +00:00
2026-05-14 16:54:59 -07:00
2026-07-20 13:45:29 +00:00
2026-07-20 13:45:29 +00:00
2026-05-28 15:26:55 -07:00
2026-05-28 15:26:55 -07:00
2026-07-21 21:06:04 +00:00
2026-07-21 21:06:04 +00:00
2026-08-20 06:29:32 +00:00