Repository navigation
Commit 3a75b1f
committed
fix(agents): evict expired entries from steer rate-limit map
The module-level steerRateLimit map accumulates one entry per unique
caller→subagent session pair and never removes them. Over a long-lived
process with many subagent interactions, this grows without bound.
Prune expired entries (older than 2 s) when the map exceeds 256 keys.1 parent aedf3ee commit 3a75b1f
1 file changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
| |||
607 | 608 | | |
608 | 609 | | |
609 | 610 | | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
610 | 620 | | |
611 | 621 | | |
612 | 622 | | |
| |||
0 commit comments