Commit dadaaf6
fix(pool): use agent maxSubagentDepth for warm containers, fix event count assertion
Two fixes:
- warmForAgent was minting parent tokens with remainingDepth=0, which
caused warm containers for agents with callableAgents to fail
delegation (call_agent got 403 max_subagent_depth_reached). Now uses
agent.maxSubagentDepth so warm containers can delegate.
- e2e event count assertion now counts only conversation events
(user.message + agent.message) rather than total events, since our
observability changes added session.model_change and
session.thinking_level_change events to the stream.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent f547ea4 commit dadaaf6
2 files changed
Lines changed: 8 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
145 | | - | |
| 145 | + | |
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
227 | 227 | | |
228 | 228 | | |
229 | 229 | | |
230 | | - | |
231 | | - | |
232 | | - | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
233 | 236 | | |
234 | 237 | | |
235 | 238 | | |
236 | | - | |
| 239 | + | |
237 | 240 | | |
238 | 241 | | |
239 | 242 | | |
| |||
0 commit comments