Repository navigation
Show conversation context usage in V2 and log plan and summary token usage (0.261.489) - #1979
Merged
Paul Lizer (paullizer) merged 3 commits intoNov 27, 2026
Conversation
…usage (0.261.483) Each chat reply now records how the request it sent was made up (messages, summary, files, workspace and web results, memory, instructions) and the selected model's limits. V2 shows this as a ring in the composer and a Context tab in the conversation drawer, re-based when another model is picked. Orchestration plans are reported as spend per model rather than as context, each step records its largest single request against its model's limit, and plan usage and the older-message summary request are written to the activity logs. The Control Center dashboard and activity logs can filter token usage by source (chat, plan, workflow). Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…-usage-tracking-ec38f3 # Conflicts: # application/single_app/config.py
Comment on lines
+167
to
+169
| assert plan_usage.log_plan_token_usage( | ||
| _record(), rows, status="waiting", message_id="m", log_token_usage=lambda **kwargs: calls.append(kwargs), | ||
| ) == 0 |
Comment on lines
+170
to
+172
| assert plan_usage.log_plan_token_usage( | ||
| _record(), [], status="completed", message_id="m", log_token_usage=lambda **kwargs: calls.append(kwargs), | ||
| ) == 0 |
…mos reviews (0.261.489) Merge origin/Development (0.261.488) and assign 0.261.489. The model catalog keeps both the persona fields and each model's context limits. Add Show Context Usage to Admin Settings under Chat > Chat Experience, on by default. Turning it off hides the ring, the header button and the Context tab in the modern chat; usage is still recorded on each reply and in the activity logs. Renew the Cosmos response boundary reviews for the modules this branch changed, and replace the source-only review of eight Control Center dashboard readers with a runtime test against the installed SDK's response types. Rewrite two test assertions that called a function with a side effect inside the assert. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this adds
Context usage in V2 chat
metadata.history_context.context_usage.Orchestration plans
Activity logs and Control Center
token_source.Details:
docs/explanation/features/V2_CONTEXT_USAGE.md.Testing
test_context_usage_measurement.py,test_orchestration_plan_token_usage_logging.py,test_token_usage_source_filter.py(26 tests) andtest_v2_context_usage_logic.mjsall pass.npx tsc -b --noEmitpasses inapplication/v2_ui.Not done
🤖 Generated with Claude Code