jif
662a634e88
Preserve active turn approvals when an earlier turn finishes late ( #61801 )
...
## Why
A turn's terminal event can arrive after the next turn has started, cancelling the newer turn's pending approval requests and incorrectly changing the thread's active status.
## What changed
Track the latest started turn in the app server. Only let completion or abort events for that turn cancel pending server requests and update thread watch status, preserving the existing behavior when no started turn is recorded.
## Testing
Add a regression test that delays one turn's completion until the next turn requests command approval, then verifies that the thread remains waiting on approval and the approval can still be accepted to execute the command.
GitOrigin-RevId: 521f4fb74728b3e70572839b2e73d2d2b2735f35
2026-11-16 12:14:18 +00:00
..
2026-11-13 18:46:13 +00:00
2026-11-12 23:51:52 +00:00
2026-11-12 22:41:50 +00:00
2026-11-16 12:03:11 +00:00
2026-11-13 04:51:06 +00:00
2026-11-16 12:14:18 +00:00
2026-11-16 03:39:14 +00:00
2026-11-16 08:47:49 +00:00
2026-11-14 02:23:37 +00:00
2026-11-13 04:48:28 +00:00
2026-11-16 00:02:00 +00:00
2026-11-16 03:39:14 +00:00
2026-11-13 22:31:23 +00:00
2026-11-13 21:53:25 +00:00
2026-11-13 21:53:25 +00:00
2026-11-13 21:53:25 +00:00
2026-11-12 23:51:52 +00:00
2026-11-14 15:44:38 +00:00
2026-11-16 03:40:21 +00:00
2026-11-14 23:50:12 +00:00
2026-11-13 01:08:55 +00:00
2026-11-16 12:05:11 +00:00
2026-11-12 22:43:14 +00:00
2026-11-15 20:28:25 +00:00
2026-11-12 23:51:52 +00:00
2026-11-13 20:23:24 +00:00
2026-11-16 00:02:00 +00:00
2026-11-13 20:24:37 +00:00
2026-11-13 20:24:37 +00:00
2026-11-13 18:53:14 +00:00
2026-11-16 12:05:11 +00:00
2026-11-12 23:51:52 +00:00
2026-11-14 23:53:23 +00:00
2026-11-14 02:45:51 +00:00
2026-11-10 08:52:35 +00:00
2026-11-14 08:26:47 +00:00
2026-11-13 18:47:46 +00:00
2026-11-14 06:14:36 +00:00
2026-11-15 00:39:00 +00:00
2026-11-13 05:16:33 +00:00
2026-11-12 04:32:34 +00:00
2026-11-13 20:24:37 +00:00
2026-11-12 23:53:50 +00:00
2026-11-14 00:32:02 +00:00
2026-11-12 22:41:50 +00:00
2026-11-13 21:52:54 +00:00
2026-11-13 21:52:54 +00:00
2026-11-13 01:43:44 +00:00
2026-11-14 01:11:17 +00:00
2026-11-14 01:21:54 +00:00
2026-11-13 00:29:24 +00:00
2026-11-16 10:48:00 +00:00
2026-11-11 18:58:21 +00:00
2026-11-16 03:40:21 +00:00
2026-11-14 06:14:36 +00:00
2026-11-14 01:32:55 +00:00
2026-11-16 10:48:00 +00:00
2026-11-12 23:51:52 +00:00
2026-11-13 23:15:54 +00:00
2026-11-12 23:51:52 +00:00
2026-11-16 03:23:10 +00:00
2026-11-14 00:57:54 +00:00
2026-11-14 23:50:12 +00:00
2026-11-16 08:47:49 +00:00
2026-11-14 23:52:50 +00:00
2026-11-16 06:49:48 +00:00
2026-11-12 00:44:27 +00:00
2026-11-16 02:39:33 +00:00
2026-11-13 18:51:30 +00:00
2026-11-12 23:51:52 +00:00
2026-11-12 23:51:52 +00:00
2026-11-12 05:21:30 +00:00
2026-11-13 22:31:23 +00:00
2026-11-12 23:53:50 +00:00
2026-11-13 22:18:01 +00:00
2026-11-16 12:04:35 +00:00
2026-11-16 03:24:23 +00:00
2026-11-13 20:24:37 +00:00
2026-11-12 23:51:52 +00:00