Chat info: account quota per harness (Claude rate_limit_event, Codex account/rateLimits, OpenCode unsupported)
Usage frames carry optional usage.account {harness, source, plan, as_of,
windows[{id,label,used_percent,resets_at}], unsupported}. Claude Code quota
comes from its rate_limit_event stream lines and the initialize account
(plan), shared across chats on the same account. Codex reads
account/rateLimits/read once per connection (re-read when a chat opens after
5 min) and merges account/rateLimits/updated. OpenCode exposes no quota API
and says so. The app's chat info sheet shows an Account usage section with a
progress bar and reset countdown per window, Material and Cupertino.
This commit is contained in:
@@ -307,6 +307,7 @@ func cloneChatUsage(usage *protocol.ChatUsage) *protocol.ChatUsage {
|
||||
return nil
|
||||
}
|
||||
copy := *usage
|
||||
copy.Account = usage.Account.Clone()
|
||||
if usage.TotalTokens != nil {
|
||||
value := *usage.TotalTokens
|
||||
copy.TotalTokens = &value
|
||||
|
||||
Reference in New Issue
Block a user