tongzhou wang
2e61e8ec4e
Record neutral interruption markers for rollout budget stops ( #61581 )
...
## Why
Turns stopped by an exhausted rollout budget need a history marker without attributing the interruption to the user.
## What changed
- Record and flush a `<turn_aborted>` marker before the terminal event for `SessionBudgetExceeded`, respecting the interrupt-message setting.
- Use neutral guidance in a `developer` message for automatic budget stops.
- Centralize tool-start budget checks across parallel dispatch, tool handlers, and MCP handoff, retaining the check after tool-start observers finish waiting.
- Share interruption classification and history recording across turn and compaction paths.
## Testing
Extend the rollout-budget integration test to assert that both the budget-crossing turn and a later denied turn persist `developer` interruption markers.
GitOrigin-RevId: 2a49ac9824a4e95e4799f2d0f638f8c46889e8e8
2026-11-15 00:02:01 +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-13 21:51:53 +00:00
2026-11-13 04:51:06 +00:00
2026-11-14 15:44:38 +00:00
2026-11-14 08:47:48 +00:00
2026-11-10 01:31:19 +00:00
2026-11-14 07:09:26 +00:00
2026-11-14 02:23:37 +00:00
2026-11-07 10:41:36 +00:00
2026-11-07 10:41:36 +00:00
2026-11-13 04:48:28 +00:00
2026-11-05 22:03:29 +00:00
2026-11-14 02:23:37 +00:00
2026-11-14 08:47:48 +00:00
2026-11-13 22:31:23 +00:00
2026-11-05 05:09:32 +00:00
2026-11-05 05:09:32 +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-14 23:52:50 +00:00
2026-11-14 23:50:12 +00:00
2026-11-10 03:02:25 +00:00
2026-11-13 01:08:55 +00:00
2026-11-07 05:59:44 +00:00
2026-11-15 00:02:01 +00:00
2026-11-12 22:43:14 +00:00
2026-11-14 02:45:51 +00:00
2026-11-12 23:51:52 +00:00
2026-11-13 20:23:24 +00:00
2026-11-14 02:23:37 +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-05 00:55:46 +00:00
2026-11-14 15:44:38 +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-06 00:37:27 +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-14 23:53:53 +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-06 04:24:04 +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-14 23:53:53 +00:00
2026-11-11 18:58:21 +00:00
2026-11-14 01:21:54 +00:00
2026-11-14 06:14:36 +00:00
2026-11-14 01:32:55 +00:00
2026-11-07 10:41:36 +00:00
2026-11-13 20:24:37 +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-06 17:47:31 +00:00
2026-11-14 07:09:26 +00:00
2026-11-14 00:57:54 +00:00
2026-11-14 23:50:12 +00:00
2026-11-14 07:09:26 +00:00
2026-11-14 23:52:50 +00:00
2026-11-14 08:47:48 +00:00
2026-11-12 00:44:27 +00:00
2026-11-14 05:00:21 +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-14 23:53:53 +00:00
2026-11-13 21:50:24 +00:00
2026-11-13 20:24:37 +00:00
2026-11-12 23:51:52 +00:00