Agent image eviction threshold and cache prefix fix
NousResearch/hermes-agent · cluster 113517
Data as of
Nothing open on GitHub. Fix merged in #113953. Check it covers your case.
The short answer
- Known?
- Yes. 5 related items grouped here, 1 issue already closed.
- Fix event
- A fix was merged to main in PR #113953. Check it covers your case. No release data is tracked.
- Tracker
- The maintainers' tracker marks this
resolved, deciding PR #113953. That is separate from the fix event. - Still open
- Nothing open on GitHub.
These issues and PRs address a bug where image eviction was triggering based on a fixed keep-newest count rather than provider limits, which was invalidating the Anthropic prompt-cache prefix on nearly every turn. The work focuses on aligning eviction behavior with provider-specific limits to preserve the cached prefix across batches.
Open issues0
Open PRs0
Fixes on record
-
#113953 fix(agent): image eviction fires at the provider limit and holds the cached prefix between batches (#113517, salvage #113519)
files:
agent/anthropic_message_convert.py,agent/context_compressor.py,agent/image_eviction_policy.py,tests/agent/test_image_eviction_policy.py,tests/agent/test_outbound_stale_vision.py,tests/tools/test_computer_use.py,website/docs/user-guide/features/computer-use.md
3 PRs closed without merging
From the close comments: done elsewhere 1 · duplicate 1 · partial fix 1
-
#113519 fix(agent): evict images at the provider limit, not on a keep-newest count · done elsewhere →
#113619 -
#113542 fix(agent): evict images at provider limits to preserve prompt-cache prefix · duplicate →
#113517,#113519 -
#113619 fix(agent): evict images at provider limits to preserve prompt-cache prefix · partial fix →
4fe8367,3977a2a,bafbf88,#113517,#113519,#103217,#113542,#102959
Closed issues · 1
- Closed#113517Image eviction fires at a keep-newest count of 3, invalidating the Anthropic prompt-cache prefix on nearly every turn
How this cluster was grouped
-
Link evidence (
structural links throughout): every member is connected by structural evidence: shared changed files, or a closing/superseded reference. -
Pairwise link density
0.40: the share of item pairs that carry a link, counting a structural link in full and a relevance-only link at 0.36.1.00means every pair is linked.
Pick up a Lab task
Check whether a fix covers the open issues here, with your own agent. Bring back evidence for maintainers.
Open the LabAt a glance
- Merged PRs
- #113953
- Closed issues
- 1
- Attempts
- 3 PRs closed without merging
- Fix link checked
- 17 Sep 2026