Eddie Chen
f1dd04959c
Preserve turn attribution when queued mail wakes durable sleep ( #51419 )
...
## Why
Queue-only agent mail can wake a sleeping session without starting a new task. The wake turn needs to retain the previous turn's attribution so delegated work reports completion to the initiating agent, including after a reload.
## What changed
Capture the previous turn's attribution while reserving the pending-work turn. Reuse its trigger, parent and root turn IDs, and initiating agent path for queue-only wakes. Mail that explicitly starts a new task continues to supply its own attribution.
## Testing
Extend regression coverage for live and reloaded sleep wakes, delegated and unknown attribution, settings changes while asleep, and subsequent task-triggering mail. Verify that a reloaded sleeping worker routes completion to the initiating turn.
GitOrigin-RevId: 28e38474028bdbf35a0538c1202165f056bb3dc3
2026-10-06 17:09:56 +00:00
..
2026-10-06 16:56:39 +00:00
2026-10-06 03:35:55 +00:00
2026-10-05 23:49:21 +00:00
2026-10-05 22:20:38 +00:00
2026-10-06 16:56:39 +00:00
2026-09-28 17:29:52 +00:00
2026-10-06 16:56:39 +00:00
2026-09-19 01:21:32 +00:00
2026-10-06 17:09:56 +00:00
2026-10-06 15:50:27 +00:00
2026-10-06 17:09:56 +00:00
2026-10-01 20:44:54 +00:00
2026-10-06 16:56:39 +00:00
2026-10-05 23:52:06 +00:00
2026-10-01 20:17:34 +00:00
2026-09-30 17:33:59 +00:00
2026-09-19 02:15:20 +00:00
2026-09-19 01:21:32 +00:00
2026-09-16 04:59:23 +00:00
2026-09-24 16:36:57 +00:00
2026-09-24 16:36:57 +00:00
2026-10-05 18:52:51 +00:00
2026-10-03 05:59:07 +00:00
2026-10-05 18:52:51 +00:00
2026-10-05 18:52:51 +00:00
2026-09-24 22:54:29 +00:00
2026-10-05 18:52:51 +00:00
2026-10-06 16:56:39 +00:00
2026-10-06 01:39:50 +00:00
2026-10-06 16:56:39 +00:00
2026-10-05 16:10:27 +00:00
2026-10-05 22:20:38 +00:00
2026-09-17 01:38:13 +00:00
2026-09-25 10:49:50 +00:00
2026-10-05 22:20:38 +00:00
2026-10-05 22:20:38 +00:00
2026-10-05 16:10:27 +00:00
2026-10-05 22:20:38 +00:00
2026-09-26 23:17:41 +00:00
2026-10-01 08:57:53 +00:00
2026-09-28 20:42:04 +00:00
2026-10-06 01:39:50 +00:00
2026-09-15 21:19:08 +00:00
2026-09-15 21:19:08 +00:00
2026-10-05 23:52:06 +00:00
2026-10-05 23:52:06 +00:00
2026-09-19 01:21:32 +00:00
2026-09-19 01:21:32 +00:00
2026-09-18 23:07:36 +00:00
2026-09-18 23:07:36 +00:00
2026-10-01 15:57:03 +00:00
2026-09-28 17:29:52 +00:00
2026-09-24 14:48:41 +00:00
2026-09-21 22:58:49 +00:00
2026-09-21 22:58:49 +00:00
2026-10-01 03:31:48 +00:00
2026-10-01 05:33:36 +00:00
2026-09-24 20:39:37 +00:00
2026-10-05 10:08:59 +00:00
2026-10-05 10:08:59 +00:00
2026-09-25 02:54:07 +00:00
2026-10-01 17:44:52 +00:00
2026-09-16 15:17:41 +00:00
2026-09-26 18:36:55 +00:00
2026-09-23 22:10:04 +00:00
2026-09-23 00:47:34 +00:00
2026-09-26 23:17:41 +00:00
2026-10-06 03:58:55 +00:00
2026-10-06 03:58:55 +00:00
2026-10-06 16:56:39 +00:00
2026-09-15 17:09:11 +00:00
2026-09-24 18:06:07 +00:00
2026-09-29 02:05:56 +00:00
2026-09-30 02:12:42 +00:00
2026-09-19 01:03:55 +00:00
2026-09-24 16:36:57 +00:00
2026-09-24 16:36:57 +00:00
2026-09-17 18:20:28 +00:00
2026-09-29 16:53:11 +00:00
2026-09-29 16:53:11 +00:00
2026-09-19 01:21:32 +00:00
2026-09-19 01:21:32 +00:00
2026-09-25 14:15:05 +00:00
2026-09-29 04:38:37 +00:00
2026-09-30 03:22:55 +00:00
2026-09-30 03:22:55 +00:00
2026-09-30 17:45:25 +00:00
2026-09-29 04:38:37 +00:00
2026-10-06 03:27:04 +00:00
2026-10-06 03:27:04 +00:00
2026-09-24 18:07:37 +00:00
2026-10-06 16:56:39 +00:00
2026-10-06 16:56:39 +00:00
2026-10-06 16:56:39 +00:00
2026-10-06 10:39:16 +00:00
2026-10-02 16:55:41 +00:00
2026-10-01 03:31:48 +00:00
2026-10-06 01:26:11 +00:00
2026-10-06 01:26:11 +00:00
2026-10-04 21:19:05 +00:00
2026-10-04 21:19:05 +00:00
2026-09-18 00:25:37 +00:00
2026-09-19 01:21:32 +00:00
2026-09-19 01:21:32 +00:00
2026-09-23 18:40:12 +00:00