Repository navigation
[2947 by Claude Opus 5.5] LLM log usage badge mislabels Antigravity window quotas as a Gemini model variant - #2951
Conversation
…ed to show `· Weekly Limit Remaining +1.5%`. The provider name is back, there's no stray leading `·`, and "Remaining" is gone. The new unit tests, the existing `TaskDetails`, `ui` and `AgentTankSidebar` tests, type-checking and lint all pass. I also rendered the badge before and after to confirm it (screenshot attached separately). What changed: - One shared helper. There's a new `propr-ui/src/utils/usageMetricLabels.ts`, and the three surfaces the issue names (`UsageBadge.tsx`, `ContextStrip.tsx` and `UsageDisplays.tsx`) now use it instead of their own copies. `AgentTankSidebar.tsx` uses its function for stripping "Remaining", so all four agree. - Quota windows vs. Gemini models. A key containing ` · ` is treated as a quota window: it keeps its prefix and loses the trailing ` Remaining`. A key is only shortened as a Gemini model when it actually looks like one: `gemini-2.5-flash` or `Gemini 2.5 Pro` becomes `2.5 Flash` / `2.5 Pro`. - Tests. `usageMetricLabels.test.ts` covers the known keys, the Antigravity windows, real Gemini model keys and unknown camelCase keys. Decision for you: the label keeps the word "Limit" (`Gemini · Weekly Limit`), because that's exactly what the sidebar shows today. The issue's example was the shorter `Gemini · Weekly`. If you'd prefer that, both the badge and the sidebar would need to drop "Limit" so they still match; it's a one-line change in the shared helper. Side effects of merging the label lists: - The two TaskDetails views now also recognise the `allowance` key, which before only the badge did. - Their tooltips now get the same fixes. Gemini model keys are shortened in the TaskDetails tooltips, which previously showed the raw key. The Gmail, Google Calendar and Google Drive connectors need authorizing in your claude.ai connector settings before they can be used; this task didn't need them.
|
CI failed: Full Test Suite Shard 1/4 Please investigate and fix this CI failure.
Failure evidence
|
|
✅ Applied the requested follow-up changes in commit fd5c45f Summary of ChangesI fixed the Shard 1/4 failure. The test that failed was Cause: the hosted-fleet API merge (#1714) added three routes in Fix:
The changes only add lines, so they should merge cleanly with Verification:
This only changes the API spec, so there's nothing visible to preview. 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
|
CI failed: Run Full Test Suite Please investigate and fix this CI failure.
Failure evidence
|
Full Test Suite ResultsValidation failed during: Test shard (shard 1).
View shard 1/4 outputDetails truncated; see the uploaded artifacts for complete failure rows and logs. |
…ckages/api/test/openapiRouteCoverage.test.ts`, which isn't related to the badge change. I fixed the Shard 1/4 failure. The test that failed was `packages/api/test/openapiRouteCoverage.test.ts`, which isn't related to the badge change. **Cause:** the hosted-fleet API merge (#1714) added three routes in `packages/api/routes/hostedFleetRoutes.ts`: `GET /api/internal/hosted/bootstrap`, `/status` and `/queue`. They aren't in `packages/api/openapi/directRoutes.ts`, and the test requires every route registered directly on the app to be listed there. CI only named `bootstrap` because the test stops at the first missing route, but all three were missing. `main` has the same gap and no open PR fixes it, so other branches will fail this test too until it's fixed there. **Fix:** - **`packages/api/openapi/directRoutes.ts`:** listed the three routes. They're marked `public` with a comment saying Fleet authenticates with the `X-ProPR-Fleet-Secret` header, the same way the existing internal agent-run routes are listed. - **`packages/api/openapi/buildSpec.ts`:** once the routes were listed, the spec generator stopped because no API section covered them. I added `/api/internal/hosted` to the "System" section (health, compatibility and status). - **`docs/static/openapi/propr-api.yaml`:** regenerated with `npm run gen:openapi`. This adds the three routes, marked undocumented, and the route count goes from 258 to 261. The changes only add lines, so they should merge cleanly with `main`. **Verification:** - `openapiRouteCoverage.test.ts` now passes (14 of 14). - `npm run gen:openapi:check` reports the committed spec is up to date. - Shard 1 had no other failures. - `hostedFleetRoutesWiring.test.ts` fails 2 of 5 here, but it passed in CI on Shard 4. My changes are to the spec files and data lists, not the route wiring, so I put it down to this container's setup. This only changes the API spec, so there's nothing visible to preview. PR: #2951 Comment by: @propr-dev[bot] (ID: 6102296581) Model: Claude Opus 5.5
|
ℹ️ Analyzed the follow-up request by @propr-dev[bot], @github-actions[bot] Analysis SummaryThis failure is already fixed on the branch, so I made no changes this time. Why it failed: the CI run tested The fix is already in the next commit ( What I checked at the current branch head:
The next CI run on the current branch head should clear shard 1. I couldn't fetch Nothing changed on screen, so there's no preview. No code changes were necessary based on the current state of the branch. 🤖 Analysis Details
💡 ProPR Slash Commands
🤖 Generated by ProPR |
|
CI failed: Run Full Test Suite Please investigate and fix this CI failure.
Failure evidence
|
|
ℹ️ Analyzed the follow-up request by @propr-dev[bot] Analysis SummaryNo tests failed in this run, so I made no code changes. The workflow run was cancelled from outside before any tests started. Re-running the Full Test Suite should clear it. What happened in run 38087712769 (commit
The previous fix on this branch still holds. The earlier Shard 1 failure was in
This doesn't change anything visible, so there's no preview. I also added this run to my notes on cancelled CI runs, so the next one can be recognised faster. No code changes were necessary based on the current state of the branch. 🤖 Analysis Details
💡 ProPR Slash Commands
🤖 Generated by ProPR |
…in`, not by this PR. I fixed the shard 1/4 failure. It was caused by code on `main`, not by this PR. **Cause:** the failing test was `packages/api/test/openapiRouteCoverage.test.ts`: > `GET /api/internal/hosted/bootstrap is registered directly; list it in openapi/directRoutes.ts` The hosted-fleet merge (#1714, `dc049dcdf`) added three routes in `packages/api/routes/hostedFleetRoutes.ts:232-234` but didn't list them in the OpenAPI route list. This branch is based on that merge, and `main` still doesn't have the fix, so any PR built on it fails the same way. Open PR #2951 already carries the fix, and I copied it exactly so the two PRs won't conflict when they merge. **Changes:** - **`packages/api/openapi/directRoutes.ts`**: lists the `bootstrap`, `status` and `queue` routes under `/api/internal/hosted/`. - **`packages/api/openapi/buildSpec.ts`**: adds `/api/internal/hosted` to the `System` tag's prefixes. - **`docs/static/openapi/propr-api.yaml`**: the updated spec. I ran `npm run gen:openapi` and it produced the same file. **Tests:** `openapiRouteCoverage.test.ts`, `openapiResponseConformance.test.ts` and `test/openapiReferencePage.test.mjs` pass (25 passed, 0 failed) when run from the repo root with the `test:unit` flags. I didn't run the rest of shard 1/4. I made no visual changes, so there are no previews. PR: #2950 Comment by: @propr-dev[bot] (ID: 6102456989) Model: Claude Opus 5.5
…es to the OpenAPI route list. The cause is a defect on `main`, not anything in this PR's docs changes. I fixed the Shard 1/4 failure by adding three internal routes to the OpenAPI route list. The cause is a defect on `main`, not anything in this PR's docs changes. **Cause:** CI tests this branch merged with current `main`. On `main`, merge #1714 (hosted fleet API, `dc049dcdf`) added three routes in `routes/hostedFleetRoutes.ts` but didn't list them in `packages/api/openapi/directRoutes.ts`: - `GET /api/internal/hosted/bootstrap` - `GET /api/internal/hosted/status` - `GET /api/internal/hosted/queue` So `test/openapiRouteCoverage.test.ts` failed with: > `GET /api/internal/hosted/bootstrap is registered directly; list it in openapi/directRoutes.ts` `main` still has the gap. The PR that fixes it (#2951) is open and not merged. **Fix:** I applied the same route-listing changes #2951 makes, and nothing else from it: - `packages/api/openapi/directRoutes.ts`: lists the three routes. - `packages/api/openapi/buildSpec.ts`: files `/api/internal/hosted` under the System tag. - `docs/static/openapi/propr-api.yaml`: the generated spec with the three new entries. **Verification:** - **Merge with `main`:** I simulated it for each of the three files and none conflict. - **Tests:** `openapiRouteCoverage` and the OpenAPI spec tests pass, 14 of 14. That holds both on the branch alone and with `main`'s `server.ts` and `hostedFleetRoutes.ts` copied in to match what CI builds. I then removed those copied files. Because these hunks are identical to #2951's, the two PRs won't conflict whichever merges first. PR: #2870 Comment by: @propr-dev[bot] (ID: 6102559369) Model: Claude Opus 5.5
|
🔀 Resolved merge conflicts from Conflicting Files
Resolution SummaryI've resolved both merge conflicts, and no conflict markers remain anywhere in the repo. 1.
2.
Checks:
The Gmail, Google Calendar and Google Drive connectors need authorizing in your claude.ai connector settings before they can be used. This task didn't need them. 🤖 Resolution Details
System-triggered merge conflict resolution |
…usage-badge-misla-20261010-2100-fyu Automatically resolved merge conflicts after merging target branch into PR branch. Resolved conflicts in: - packages/api/openapi/directRoutes.ts - propr-ui/src/components/AgentTankSidebar.tsx PR: #2951 Model: Claude Opus 5.5
|
CI failed: Full Test Suite Shard 3/4 Please investigate and fix this CI failure.
Failure evidence
|
|
✅ Applied the requested follow-up changes in commit 1e60310 Summary of ChangesShard 3/4 failed on a desktop Electron test that has nothing to do with this PR's badge change. I fixed the defect in the test runner that caused it. What failed: Cause: when a fixture launch runs past its time limit, the runner in Fix:
Verification:
There's nothing visual in this change, so there are no previews. 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
|
CI failed: Run Full Test Suite Please investigate and fix this CI failure.
Failure evidence
|
…g to do with this PR's badge change. I fixed the defect in the test runner that caused it. Shard 3/4 failed on a desktop Electron test that has nothing to do with this PR's badge change. I fixed the defect in the test runner that caused it. **What failed:** `apps/desktop/scripts/electron-frame-semantics.test.mjs` hit its 50s timeout without printing anything. It wasn't a failed assertion. This PR only touches `propr-ui`, and the test and its runner files are the same as on `main`. **Cause:** when a fixture launch runs past its time limit, the runner in `apps/desktop/scripts/electron-fixture-runner.mjs` kills only the process it started. On Linux CI that process is the `xvfb-run` wrapper, so Electron and Xvfb keep running and hold the output pipe open. The runner waits for the pipe to close, which only happens when Electron exits on its own, and on a busy worker that took longer than the test's 50s limit. I reproduced this: a launch with a 300ms limit took 8s to return when a child process kept the output open. **Fix:** - **`electron-fixture-runner.mjs`:** on Linux and macOS each fixture now runs in its own process group, and the time limit kills the whole group. Windows keeps the old behaviour. - **`electron-fixture-runner.test.mjs`:** a new regression test starts a shell that leaves a child process holding the output, and checks that a 250ms limit ends the run within 5s. **Verification:** - The repro now returns in 307ms instead of 8s. - The new test fails without the fix (the run took 30004ms to end) and passes with it. The runner suite passes 17/17, and lint is clean. - I couldn't run the frame-semantics test itself: it skips here because the container has no `xvfb-run`. CI is where it will actually be tested. There's nothing visual in this change, so there are no previews. PR: #2951 Comment by: @propr-dev[bot] (ID: 6103460690) Model: Claude Opus 5.5
|
ℹ️ Analyzed the follow-up request by @propr-dev[bot] Analysis SummaryI made no code changes this round. This CI run was on What failed in run 38093928946:
Why I didn't change the menu test:
Next step: no Full Test Suite has run on I also saved a memory note: when desktop tests on different shards fail in the same minute on one machine, check for overload before patching the test. No code changes were necessary based on the current state of the branch. 🤖 Analysis Details
💡 ProPR Slash Commands
🤖 Generated by ProPR |
|
CI failed: Run Full Test Suite Please investigate and fix this CI failure.
Failure evidence
|
|
ℹ️ Analyzed the follow-up request by @propr-dev[bot] Analysis SummaryI made no code changes: this run was cancelled from outside before any test ran, so there's nothing on the branch to fix. What happened in run 38096665140 (attempt 2, commit
The PR comment above lists Re-running the Full Test Suite on this commit should give a real result. I've also added this run to my notes on cancelled CI runs, so the same pattern gets recognised faster next time. No visual change was made, so there's no preview. No code changes were necessary based on the current state of the branch. 🤖 Analysis Details
💡 ProPR Slash Commands
🤖 Generated by ProPR |
AI Implementation Summary
Closes #2947
Branch:
2947/claude-opus-5-5-llm-log-usage-badge-misla-20261010-2100-fyuCommits: ✅ Changes committed (3f21168)
AI Processing Completed
Execution Details:
Summary:
The LLM log badge now reads
Gemini · Weekly Limit +1.5%where it used to show· Weekly Limit Remaining +1.5%. The provider name is back, there's no stray leading·, and "Remaining" is gone. The new unit tests, the existingTaskDetails,uiandAgentTankSidebartests, type-checking and lint all pass. I also rendered the badge before and after to confirm it (screenshot attached separately).What changed:
propr-ui/src/utils/usageMetricLabels.ts, and the three surfaces the issue names (UsageBadge.tsx,ContextStrip.tsxandUsageDisplays.tsx) now use it instead of their own copies.AgentTankSidebar.tsxuses its function for stripping "Remaining", so all four agree.·is treated as a quota window: it keeps its prefix and loses the trailingRemaining. A key is only shortened as a Gemini model when it actually looks like one:gemini-2.5-flashorGemini 2.5 Probecomes2.5 Flash/2.5 Pro.usageMetricLabels.test.tscovers the known keys, the Antigravity windows, real Gemini model keys and unknown camelCase keys.Decision for you: the label keeps the word "Limit" (
Gemini · Weekly Limit), because that's exactly what the sidebar shows today. The issue's example was the shorterGemini · Weekly. If you'd prefer that, both the badge and the sidebar would need to drop "Limit" so they still match; it's a one-line change in the shared helper.Side effects of merging the label lists:
allowancekey, which before only the badge did.The Gmail, Google Calendar and Google Drive connectors need authorizing in your claude.ai connector settings before they can be used; this task didn't need them.
Detailed Logs:
ac9e9f44-24f9-4aef-a388-a5cf8b0984a0Log files stored at:
/tmp/claude-logs/issue-2947-2026-10-10T21-06-38-893Z-conversation.json/tmp/claude-logs/issue-2947-2026-10-10T21-06-38-893Z-output.txtLatest Conversation Messages
This PR was created automatically by ProPR after processing issue #2947.
💡 Need changes?
Comment on this PR to request refinements — the AI agent monitors comments and will update the implementation based on your feedback. Keep iterating until you're satisfied!
Visual preview
LLM log usage badge: Antigravity quota windows
UsageBadge with Antigravity window keys before (missing provider, leading '·', 'Remaining') and after the fix (Gemini · Weekly Limit / Gemini · Five Hour Limit)
Original unavailable: managed storage is unavailable or the upload has expired.