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>
- The usage-limit banner now reads 'Out of usage credits' (or the refusal's
own 'You've hit your 5-hour limit'), 'Auto-resuming at <time>', an
'Auto-continue when limits reset' checkbox and Try again, keeping the
account switcher's 'Switch to <account>'.
- Auto-continue (a shared, persisted preference, on by default) hands the
server a durable scheduled prompt (send_at = reset + 1 min) with an
idempotent auto-continue-<refusal id> operation id: the refused operator
message again, or 'continue' when the refused turn had already worked.
Unchecking unqueues it; Try again unqueues it and sends now.
- Remove the approaching-limit banner, its SnackBar announcements and their
marks; the send-button usage ring replaces them.
- Claude Code's rate_limit_event overage fields (overageStatus,
isUsingOverage/overageInUse, overageDisabledReason, overageResetsAt) reach
clients as usage.account.extra_usage; the ring tooltip and the banner say
'Extra usage available' or 'Using extra usage'.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Saved accounts live under <CLAUDE_CONFIG_DIR>/pipelines-accounts/<slug>/
(0700 dir, 0600 files). Switching changes what /login changes: the
claudeAiOauth entry of .credentials.json and oauthAccount of .claude.json
(atomic temp+rename, mode and other keys kept) and the org caches /login
drops, under Claude Code's own refresh, storage and config locks, so
running CLIs continue on the new account without a restart. The active
login's rotated tokens are written back to its slot first.
Server: claude_accounts / claude_account_save / _use / _remove, chat-scoped
and Claude-only; a switch moves the home's open chats to the new account's
quota (usage.account.switched_at), clearing a reached limit.
CLI: pipelines claude-account list|save|use|remove [--dir].
App: Claude account in the chat menu, and Switch to <account> on the
usage-limit and usage-warning banners, with a confirmation snack.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
When the open chat's account has an exhausted quota window, a banner above
the composer reads "Usage limit reached · resets at HH:MM" and offers to
send the last message (or the current draft) a minute after the reset, via
chat_prompt send_at. Queued prompts with a future send_at read
"Scheduled · sends at HH:MM" and keep Remove.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>