Fix summary role alternation for strict-template backends
Cluster 74086 · agent. Data as of
Nothing open on GitHub. Fix merged in #74087 on 30 Jul 2026. Check it covers your case.
The short answer
- Known?
- Yes. 4 related items grouped here, 1 issue already closed.
- Fix event
- A fix was merged to main in PR #74087. Check it covers your case. No release data is tracked.
- Tracker
- The maintainers' tracker marks this
resolved, deciding PR #74087. That is separate from the fix event. - Still open
- Nothing open on GitHub.
These issues and PRs address a bug where context compaction or compression emits a summary message with the wrong role (e.g., user instead of assistant) on backends that enforce strict role alternation, such as Mistral-template models. The fixes resolve the role by inspecting template-visible predecessors rather than raw message roles.
Open issues0
Open PRs0
Fixes on record
-
#74087 fix(compression): choose summary role by template-visible alternation
files:
agent/context_compressor.py,tests/agent/test_summary_role_template_alternation.py
2 PRs closed without merging
From the close comments: done elsewhere 2
Closed issues · 1
- Closed#74086Context compaction permanently poisons sessions on Mistral-template backends (summary emitted as role:user after a tool-flow head)
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.50: 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
- #74087
- Closed issues
- 1
- Attempts
- 2 PRs closed without merging
- Fix link checked
- 30 Jul 2026