Merge: account quota in the chat info sheet

This commit is contained in:
2026-11-02 18:57:53 +00:00
26 changed files with 1469 additions and 19 deletions
+13
View File
@@ -0,0 +1,13 @@
# Chat info: account usage
The chat information sheet shows an "Account usage" section from
`usage.account` (wire shape in docs/cli.md): one LinearProgressIndicator per
reported window ("42% used · resets in 2h 14m"), the plan and "as of <age>".
Cupertino draws the same indicator in system fill/tint colors, since Cupertino
has no linear progress control. An unknown quota hides the section; OpenCode
(no quota API) shows "Not reported by OpenCode". Countdowns tick every 30 s.
Evidence: `test/features/chat/conversation/chat_account_usage_test.dart`
(both hosts), and captures from the probe fixture with `?chats=1&quota=claude`
or `quota=opencode` (`tool/perf/perf_fixture.dart`), opened at
`/chat/perf-chat-0` and clicking the title, 560x1000, Material and Cupertino.