Chat: show the active Claude account in the send tooltip, menu and limit banner

usage.account now carries the email and organization of the account
Claude Code is signed in to (from its initialize account, or the saved
account just switched to), sent at process start and after a switch.
The app shows it as the send tooltip's usage prefix, the Claude account
menu subtitle, the usage-limit banner's status line and the info sheet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-30 16:33:46 +00:00
parent e80f18969c
commit 0dc805ae0e
22 changed files with 386 additions and 62 deletions
+5
View File
@@ -808,6 +808,11 @@ type ChatAccountUsage struct {
Source string `json:"source,omitempty"`
// Plan is the harness's plan identifier when it reports one ("max", "plus").
Plan string `json:"plan,omitempty"`
// Email and Organization name the account the harness is signed in to now
// (the operator's own login, never a credential); empty when it did not
// say (an API key, or a harness without accounts).
Email string `json:"email,omitempty"`
Organization string `json:"organization,omitempty"`
// AsOf is when the server received the report (epoch milliseconds).
AsOf int64 `json:"as_of,omitempty"`
Windows []ChatQuotaWindow `json:"windows,omitempty"`