Context compression thresholds, floors, and tool-call loop handling
Cluster 31600 · agent. Data as of
Nothing open on GitHub. Fix attempted, not merged.
The short answer
- Known?
- Yes. 6 related items grouped here, 1 issue already closed.
- Fix event
- No fix has been merged to main. 4 PRs closed without merging; see the attempts below.
- Tracker
- The maintainers' tracker marks this
resolved, deciding PR #52053. That is separate from the fix event. - Still open
- Nothing open on GitHub.
Next step: read the attempts below. Your case may extend or revive that work.
Pick up a Lab taskMost members concern context compression behavior: three entries (apparently duplicates) make the minimum context floor configurable, and one bug report describes a hardcoded 64,000 minimum affecting auto-compression and tool loops. Two other entries touch related compression handling in the agent and gateway, so the cluster is adjacent rather than a single identical problem.
Open issues0
Open PRs0
Fixes on record
-
#52053 fix(compression): make minimum context floor configurable (#31600)
files:
agent/agent_init.py,agent/context_compressor.py,agent/conversation_compression.py,agent/model_metadata.py,gateway/run.py,tests/gateway/test_agent_cache.py,tests/run_agent/test_compression_feasibility.py,tests/run_agent/test_compression_minimum_floor.py
4 PRs closed without merging
From the close comments: superseded by another PR 2 · merged via another change 1 · other 1
-
#31686 fix(compression): make minimum context floor configurable (#31600) · superseded by another PR →
#52053,#31600 -
#33825 fix(agent): compress after repeated tool-call truncation · superseded by another PR →
#31600 -
#35888 fix(gateway): clear bloated compression binding on compression-exhaustion auto-reset · merged via another change →
#45613 -
#54071 fix(compression): make minimum context floor configurable (#31600) · other →
#31600
Closed issues · 1
- Closed#31600[Bug]: Hardcoded MINIMUM_CONTEXT_LENGTH = 64_000 deadlocks auto-compression and causes infinite tool loops on high-context models
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.33: 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
- Subsystem
- agent
- Merged PRs
- #52053
- Closed issues
- 1
- Attempts
- 4 PRs closed without merging