Commit Graph

2 Commits

Author SHA1 Message Date
alan 293474ac3c Chat usage limit: Claude Code-style banner with auto-continue; drop the approaching-limit banner
- 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>
2026-11-30 16:13:33 +00:00
alan 3951c65a7a Chat: a discreet usage ring around the composer's Send button
A thin ring around Send shows the harness account's 5-hour window used share
(the most used live window when there is no 5-hour one): barely visible
normally, tertiary from 80%, error from 95%. The button's tooltip (hover,
long-press on touch) adds every window with its reset time. No ring when the
quota is unknown or unsupported. Painted behind the unchanged button, so its
size, target, states and animations stay as they were.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 14:55:42 +00:00