Repository navigation
Conversation
|
The collector read only rateLimits, the app-server's backward-compatible single-bucket view, so a model's own quota in rateLimitsByLimitId never showed and a map-only answer showed no limits at all. Every bucket is read now, the general one first and untitled, and each other titled "<model> Session" or "<model> Weekly" so the panel shows it beside the general window of that span. A percentage or reset time that doesn't parse costs that window or field rather than the whole probe, and percentages are kept within 0..1. Builds on #14630. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Harrison Kairalla <hkairalla@users.noreply.github.com>
|
Reviewed at f19badb by Claude Opus 5.5, with Codex Medium as the second opinion. Nothing was run on a worker: this pull request competes with an older one, and the maintainer decides between them first. The problem is real. The Codex app-server's It competes with #7725, opened 2026-08-22, which reads the same map, skips the bucket that duplicates the general view, and titles the rest the way the panel already expects. The older fix wins by default, and both reviewers agreed no defect in #7725 decides it the other way; it does need to be brought up to date with quattro, since GitHub reports it as conflicting. One defect here, found by both reviewers from the source: Waiting on the maintainer to choose between this and #7725. Codex Medium agreed with the choice of #7725 and the title defect; its independence from this review is not guaranteed. |
Summary
Read every Codex metered limit from
account/rateLimits/readinstead of only the backward-compatible single-bucketrateLimitsview.The current collector ignores
rateLimitsByLimitId, hiding model-specific quotas and producing empty limits for map-only responses. Ignoring plan metadata in the map can also cause an unnecessaryaccount/readfallback.titlefield.This builds on the RPC transport and
account/readfixes already on quattro. No QML, Cursor/Grok reporting, or billing configuration changes are included.OpenAI response documentation.
Verification
git diff --check HEAD^ HEADis clean../test/allrun completed: CLI suite passes; shell suite has 2 failures across 323 files, with skipped checks in 25 files requiring desktop/session facilities. Both failures reproduce unchanged at upstream50d687a1f27063513cf42e6f33c3a4fcb17c24edunder the same environment:default-agent-test.sh: Grok opt-out migration expects the previousmise unuseargument form.passwordless-grant-lifecycle-test.sh: companion package-hook fixture cannot invokepre_remove(status 127 instead of 1).The clean run uses direct Python/Node binaries, separate fixture homes, both companion repositories, and no inherited XDG desktop paths or GTK platform theme:
Baseline failures are documented rather than mixed into this focused fix.
Visual verification
Rendered the actual upstream Agents panel in an isolated nested Hyprland desktop with a fake app-server and separate HOME/XDG directories. Both versions receive the same legacy quota and two-bucket map: 25% general usage and 80% Other model usage. The candidate displays both meters with distinct labels, no overlap, and the existing intentional label elision/tooltip behavior.
Fixture records and screenshot provenance. Screenshots live on a separate personal-fork branch and do not enlarge this PR's code diff.