App: Claude account auto-switch setting; the limit banner leaves a refusal the server is continuing alone

The Claude account dialog shows 'Auto-switch account when usage runs out'
(claude_account_auto_switch) when the server reports it. The usage-limit
banner schedules no auto-continue while the server's auto-switch continue
prompt is queued. A chat refused after another chat already switched the
Claude home gets a fresh switch stamp, so its banner clears too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-12-01 00:31:31 +00:00
parent ed9072b79a
commit 18e0e565ca
10 changed files with 386 additions and 11 deletions
+1 -1
View File
@@ -158,7 +158,7 @@ func refusalKey(refusal claude.UsageRefusal) string {
// claim reports whether refusal is new, remembering it.
func (s *chatAutoSwitchState) claim(refusal claude.UsageRefusal) bool {
key := refusal.SessionID + "\x00" + refusal.TurnID
key := refusal.SessionID + "\x00" + refusal.TurnID + "\x00" + refusal.MessageID
s.mu.Lock()
defer s.mu.Unlock()
if s.handled[key] {