You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] Remove misleading Token Composition from analysis exports #45
Describe the bug
Analysis exports contain a Token Composition section that only reports tool-definition and synthetic-content tokens. It is not a complete composition of the estimated total, but its placement and wording make it appear to be a full breakdown.
The category rows sum to the estimated total, while Token Composition does not.
To Reproduce
Open a session with /analyze.
Export the analysis as Markdown or plain text.
Find the Token Composition section before the raw system prompt and raw tool definitions.
Compare its values with Estimated total and the category table.
Expected behavior
The export should not present a partial metadata summary as a complete token composition. Remove the redundant Token Composition section and keep the authoritative category breakdown, which already includes TOOL DEFS and SYNTHETICS when applicable. Raw system and raw tool-definition sections should remain unchanged.
If the section is retained instead, it must be clearly renamed as metadata and must not imply that its values sum to the estimated total.
Media
Additional context
The serializer currently emits toolDefsTokens and syntheticTokens only. It omits tools, system, reasoning, assistant, and user categories. Add regression coverage ensuring exported category totals equal estimatedTotal.
Activity