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>
A
Andrew Barnes committed
ec46ae075d8f91fbff9b0d227f76180e3ab64e49
Parent: afb0f66
Committed by GitHub <noreply@github.com>
on 3/25/2026, 2:20:16 AM