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
feat(desktop): show context usage beside the model controls
A read-only indicator in the composer's model controls shows the latest
request as the provider counted it: input plus output tokens of the last
accepted request, read from the session's newest token_usage record. With
a user-declared Maka window it shows the percentage (over 100% is shown as
such, never clamped); without one it shows the absolute count and names the
model's reported window in a tooltip; without usage it shows a dash and
says the provider reported none. Chat model choices carry the reported and
the declared window separately so the two are never confused (#4559).
Refs #4559
Generated-by: Claude Code
Claude-Session: https://claude.ai/code/session_014ajaRxC4jydavY9nYUFj5J
? `The provider rejected this request. No context window is declared for this model; the last accepted usage was about ${tokens} tokens — set the window to that value so Maka compacts first.`
704
711
: `The provider rejected this request at about ${tokens} tokens, below your declared window (${declared}). The declared value is likely larger than the provider's; consider lowering it to ${tokens}.`,
712
+
contextUsageProviderUnknown: (metadata)=>
713
+
metadata===undefined
714
+
? 'No context window is declared for this model'
715
+
: `No context window is declared for this model; model metadata declares ${metadata}`,
716
+
contextUsageUnavailable: 'The provider did not report usage',
705
717
stepLimit: 'Reached the configured step limit. The task may be incomplete. Send “continue” to resume.',
0 commit comments