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
@@ -68,13 +68,15 @@ class _ChatAccountUsageSectionState extends State<ChatAccountUsageSection> {
),
)
else ...[
if (plan.isNotEmpty)
if (plan.isNotEmpty || usage.email.isNotEmpty)
Padding(
padding: const EdgeInsets.only(top: 4),
child: Text(
usage.harness.isEmpty
? '$plan plan'
: '${usage.harness} · $plan plan',
[
if (usage.email.isNotEmpty) usage.email,
if (usage.harness.isNotEmpty) usage.harness,
if (plan.isNotEmpty) '$plan plan',
].join(' · '),
key: const Key('chat-account-usage-plan'),
style: muted,
),