Andrew Barnes
ec46ae075d
test: add unit tests for SubagentLimitMiddleware (#1306)
* test: add unit tests for SubagentLimitMiddleware
Cover subagent limit enforcement:
- _clamp_subagent_limit boundary clamping
- Task call truncation when exceeding limit
- Non-task tool calls preserved during truncation
- after_model/aafter_model delegation
* Update test_subagent_limit_middleware.py
* Fix import statement for MAX_CONCURRENT_SUBAGENTS
---------
Co-authored-by: Willem Jiang <willem.jiang@gmail.com>
2026-03-25 10:20:16 +08:00
..
2026-03-14 22:55:52 +08:00
2026-03-22 20:34:01 +08:00
2026-03-16 16:53:12 +08:00
2026-03-14 22:55:52 +08:00
2026-03-22 19:38:27 +08:00
2026-03-14 22:55:52 +08:00
2026-03-22 17:29:29 +08:00
2026-03-22 22:39:50 +08:00
2026-03-14 22:55:52 +08:00
2026-03-23 17:44:21 +08:00
2026-03-14 22:55:52 +08:00
2026-03-22 22:39:50 +08:00
2026-03-14 22:55:52 +08:00
2026-03-14 22:55:52 +08:00
2026-03-20 17:03:39 +08:00
2026-03-23 18:07:33 +08:00
2026-03-14 22:55:52 +08:00
2026-03-23 17:06:56 +08:00
2026-03-14 22:55:52 +08:00
2026-03-16 16:53:12 +08:00
2026-03-25 08:00:01 +08:00
2026-03-14 22:55:52 +08:00
2026-03-14 22:55:52 +08:00
2026-03-24 22:38:01 +08:00
2026-03-14 22:55:52 +08:00
2026-03-22 17:29:29 +08:00
2026-03-14 22:55:52 +08:00
2026-03-22 20:39:26 +08:00
2026-03-22 22:39:50 +08:00
2026-03-20 17:18:59 +08:00
2026-03-14 22:55:52 +08:00
2026-02-25 08:39:29 +08:00
2026-03-14 22:55:52 +08:00
2026-03-14 22:55:52 +08:00
2026-03-17 21:44:36 +08:00
2026-03-22 17:29:29 +08:00
2026-03-14 22:55:52 +08:00
2026-03-14 22:55:52 +08:00
2026-03-25 10:17:40 +08:00
2026-03-16 16:53:12 +08:00
2026-03-14 22:55:52 +08:00
2026-03-25 10:20:16 +08:00
2026-03-14 22:55:52 +08:00
2026-03-22 19:59:54 +08:00
2026-03-14 22:55:52 +08:00
2026-03-22 20:14:51 +08:00
2026-03-24 00:36:08 +08:00
2026-03-14 22:55:52 +08:00
2026-03-19 15:46:31 +08:00
2026-03-21 10:29:52 +08:00
2026-03-14 22:55:52 +08:00
2026-03-17 20:43:55 +08:00
2026-03-14 22:55:52 +08:00
2026-03-14 22:55:52 +08:00
2026-03-18 16:31:26 +08:00