context_used falling back to cumulative session_total_tokens in tui_gateway
Cluster 50421 · dashboard. Data as of
Nothing open on GitHub. Fix merged in #56146 on 1 Jul 2026. Check it covers your case.
The short answer
- Known?
- Yes. 3 related items grouped here, 1 issue already closed.
- Fix event
- A fix was merged to main in PR #56146. Check it covers your case. No release data is tracked.
- Tracker
- The maintainers' tracker marks this
resolved, deciding PR #56146. That is separate from the fix event. - Still open
- Nothing open on GitHub.
These members appear to concern the session.usage.context_used value in tui_gateway, which can fall back to cumulative session_total_tokens for external context engines. Two of the three are titled as fixes to avoid showing the cumulative total as context_used; the titles alone do not show whether any change was merged or has taken effect.
Open issues0
Open PRs0
Fixes on record
-
#56146 fix(tui_gateway): don't show cumulative session total as context_used (#50421)
files:
agent/context_engine.py,cli.py,gateway/slash_commands.py,tests/agent/test_context_engine.py,tests/run_agent/test_percentage_clamp.py,tests/test_tui_gateway_server.py,tui_gateway/server.py
1 PR closed without merging
From the close comments: merged via another change 1
-
#50518 fix(tui_gateway): don't fall back context_used to cumulative session_total_tokens · merged via another change →
83b7c52,b6d8fc4
Closed issues · 1
- Closed#50421session.usage.context_used can fall back to cumulative session_total_tokens for external context engines
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.67: 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
- dashboard
- Merged PRs
- #56146
- Closed issues
- 1
- Attempts
- 1 PR closed without merging
- Fix link checked
- 1 Jul 2026