Commit 64b97ca
Clear AgentView HITL resolution buffer once parts reach terminal state
pendingResolutionsRef previously grew unbounded over the lifetime of the
component — one entry per tool call, never removed. On chatty long-lived
sessions that's a slow leak plus wasted JSON.stringify equality work on
every `.out` chunk. Delete the buffered entry once the overlay has landed
at a terminal output-available/error/denied state.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent c8f79ab commit 64b97ca
1 file changed
Lines changed: 12 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
335 | 335 | | |
336 | 336 | | |
337 | 337 | | |
338 | | - | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
339 | 343 | | |
340 | 344 | | |
341 | 345 | | |
| |||
346 | 350 | | |
347 | 351 | | |
348 | 352 | | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
349 | 360 | | |
350 | 361 | | |
351 | 362 | | |
| |||
0 commit comments