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
The compaction API response's providerMetadata contains cacheCreationInputTokens
from the pre-compaction context, which inflates the context usage display until
the next message is sent. By omitting providerMetadata from the summary message,
context usage correctly shows just the compaction output tokens.
The historicalUsage field still preserves full cost accounting from pre-compaction
messages.
_Generated with mux_
0 commit comments