Merge branch 'main' into worktree-agent-a3ec65b20dc3028b9

This commit is contained in:
2026-11-30 15:41:57 +00:00
39 changed files with 3572 additions and 15 deletions
+5
View File
@@ -812,6 +812,11 @@ type ChatAccountUsage struct {
AsOf int64 `json:"as_of,omitempty"`
Windows []ChatQuotaWindow `json:"windows,omitempty"`
Unsupported bool `json:"unsupported,omitempty"`
// SwitchedAt is when the operator last switched the chat's Claude account
// to this one (epoch milliseconds). The report then stands for the new
// account even with no windows yet, and a usage-limit refusal the chat
// received before it no longer applies.
SwitchedAt int64 `json:"switched_at,omitempty"`
}
// ChatQuotaWindow is one rolling quota window. UsedPercent is 0-100 (it can