diff options
| author | Claudomator Agent <agent@claudomator> | 2026-03-09 05:02:36 +0000 |
|---|---|---|
| committer | Claudomator Agent <agent@claudomator> | 2026-03-09 05:02:36 +0000 |
| commit | 7c7dd2bc352c91963ece06f3176a032ee7ab462f (patch) | |
| tree | f6d329d095a88c8138d9fb043cdf8106d7585715 /internal/executor/claude_test.go | |
| parent | 67b8544b222392d8a01847e3d34559c23fd0cd12 (diff) | |
executor: fix map leaks in activePerAgent and rateLimited
activePerAgent: delete zero-count entries after decrement so the map
doesn't accumulate stale keys for agent types that are no longer active.
rateLimited: delete entries whose deadline has passed when reading them
(in both the classifier block and the execute() pre-flight), so stale
entries are cleaned up on the next check rather than accumulating forever.
Both fixes are covered by new regression tests.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'internal/executor/claude_test.go')
0 files changed, 0 insertions, 0 deletions
