Repository navigation
fix(report): show where each dispatch quota went - #258
Conversation
Antigravity has a separate weekly quota per model group, but the ledger added the shares of different groups into one number, so a single day's rows summed to 121% and the table to 166%. Each group is now listed on its own line in the Antigravity cell. Usage that happened before a tool's current window started (Codex reset early on 2026-10-23) showed "—", which read as missing data; it now says "Reset". The project column uses resolve_project_name() like the project section, so a session in election-desk/戰情室 shows election-desk. The note under the table states the sort order and ends the unowned sentence properly. Wrapped captions say "the past year" instead of "this year", since the data is a rolling 53 weeks. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 3eb954195d
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| "agy_groups": agy_groups, | ||
| "claude_reset": claude_pct is None and "claude-code" in reset_agents, | ||
| "codex_reset": codex_pct is None and "codex" in reset_agents, | ||
| "agy_reset": not agy_groups and "antigravity" in reset_agents, |
There was a problem hiding this comment.
Preserve reset state per Antigravity group
When a ledger row has current-window usage in one Antigravity group and pre-window-only usage in another, agy_groups is nonempty, so this condition sets agy_reset to false and the reset group disappears entirely. This is possible because the groups have independent reset times; retain reset status keyed by group and render it alongside groups with percentages rather than collapsing it into one agent-level flag.
Useful? React with 👍 / 👎.
- A lead sentence says what a row is: one Claude conversation, its own weekly-quota share, and the share of the work it handed to Codex and Antigravity. - Antigravity groups use short names (Gemini, Claude/GPT, Argon) so each fits on one line instead of wrapping the cell onto four. - "Reset" becomes "Last week's quota", and the note says what "—" means. - The unowned-conversation count is a footnote, so it moves below the table. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… table The 7-column table (one row per conversation, one column per tool) left the reader to work out the answer. The section is now "Where your dispatch quota went": one block per quota (Codex and each Antigravity group), with how much of it is used this week, the conversations whose dispatched work used it (top five, then "N more"), and the rest as "Other (your own use, or no dispatch record found)". Codex usage that all came before its reset says so in one line. The conversation's own Claude share is no longer shown; it was about 1% per row and not what the section is about. Blocks are picked from every owned conversation, and only displayed titles are read. Unused ledger i18n keys are removed. format_pct rounds before choosing decimals, so 0.95 reads "1%" rather than "1.0%". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Problem
A cold read of the HTML report, then the user, flagged the dispatch ledger:
estimate_sessions()added the shares of different groups together.—for usage from before its early reset (2026-10-23 01:47), which read as missing data.戰情室) instead of the git project (election-desk).Fix
estimate_sessions()keeps shares per (agent, session, group) and reports sessions whose usage is all before the window start. Top sessions keep the per-session sum.resolve_project_name().format_pctrounds before picking decimals (1%, not1.0%).Checked with real data (
usage report --last7): each block's lines add up to its used percentage (Argon 45+23+9+9+6+4+1 = 97).Checks
ruff, ruff format,
mypy ., doc parity, site pages, file size, pytest (3107 passed) all green locally.🤖 Generated with Claude Code