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
🤖 fix: omit providerMetadata from compaction summary to fix context display (#762)
After compaction, context usage was inflated because the summary
message's `providerMetadata` contained `cacheCreationInputTokens` from
the pre-compaction context.
This fix omits `providerMetadata` from the compaction summary message.
Context usage now correctly shows just the compaction output tokens
until the next API request.
Cost tracking remains accurate via the `historicalUsage` field.
_Generated with `mux`_
0 commit comments