Repository navigation
Conversation
|
No actionable comments were generated in the recent review.
|
|
Completed the repository PR template, linked the specific issue (Fixes #33426; Refs #33357), and added English before/after production-component proof. This corrects the original “no GUI change” claim: the visible status/error changes from generic parse / “Refresh failed” to unavailable usage with the fixed CLI location explanation. Exact The docstring-coverage item is a generic review warning, not an executed CI failure. Repository AGENTS guidance asks for concise comments only where code does not explain itself, so no blanket docstrings were added to self-describing functions. The 184 focused tests, Node/web typechecks, and changed-lines quality passed; upstream CI still requires maintainer approval. |
|
Fixed the CI TypeScript project boundary in f179127. The renderer copy test imported the host fetcher and pulled 20 server modules into the composite web project. The captured CLI rejection → production fetcher → renderer diagnostic regression now lives in the existing Validation: the pinned Bun 1.4.4 CI compiler reproduced 20 TS6307 errors before the split; the full |
Source and validation
Includes upstream main through
1187abdbc2554f69e281868a83f4ab0ca045276b. The base refresh preserves this PR's feature scope and passed ordinary commit hooks. Validation and visual evidence below retain their stated source revisions. Complete upstream CI remains pending.Known upstream base issue: Node typechecking at this main revision reports
switchedBuildmissing inworkspace-layout-paired-desktop.test.ts:50. This PR retains that upstream file unchanged; the layout-test repair is separate from its feature scope.ELI5
When Antigravity says usage is unavailable in your location, show that explanation instead of a misleading refresh error.
What Changed
When agy 1.4.7 rejects a background
/usageread because Antigravity is unavailable in the current location, Orca currently discards that explanation and reports “CLI did not report a quota (exit 1)” / “Refresh failed”. Recognize the captured eligibility rejection and show unavailable usage with a fixed, safe explanation from the CLI.This preserves the existing
usage-unavailablewire kind and uses only an optional local classifier reason. It changes no quota source, auth, proxy, CLI flags or network routing. Successful readings, structured-error precedence, timeouts and the model-turn guard retain their behavior. A location rejection does not latch, so a later valid quota response can recover. Arbitrary CLI output is never exposed.Why
The captured response is a known eligibility rejection, so treating it as an unreadable quota hides the useful explanation. Classifying that exact rejection and returning fixed guidance through the existing unavailable state preserves the established parser and safety guards without exposing arbitrary CLI output.
This corrects diagnosis, not provider availability: the observed CLI still rejects the metadata read on the current route. A working interactive quota view does not establish that the independent background read succeeded; no live quota-retrieval repair is claimed.
Linked Issue
Fixes #33426
Refs #33357.
Visual Proof
English hidden Electron/CDP fixture using the actual production fetcher,
UsageRow,ProviderPanel, and canonical CSS with the same sanitized captured eligibility rejection. Before:d58849a7d8d68929bd0e686571678d85e70740af; after:8262a97354736ee3ee0423c85e8544fa228e83ea(exact Git source snapshots).Source-identified proof and scope. The fixture joins two existing production components for inspection; it is not the global app/provider workflow. No DOM text replacement, image editing, real account data, or provider calls were used.
Testing
Validation: five regression failures before the correction; 184 focused tests across classifier, fetcher, successful parser, service isolation and renderer copy pass, with node/web typechecks, changed-lines quality and normal hooks. A sanitized fixture preserves the real error envelope with zero turns/token use.
Full-app manual testing is not claimed. On macOS only, an agent-driven hidden production-component fixture plus screenshot inspection verified the exact generic parse/“Refresh failed” before state and unavailable/location-guidance after state. Eight English dark/light and desktop/narrow captures assert no horizontal overflow, page/console errors, attempted HTTP requests, or visible/focused windows. The wrapper was rebuilt before launch, with
ORCA_BACKGROUND_LAUNCH=1and an isolated profile.To reproduce the automated regression coverage:
ORCA_BACKGROUND_LAUNCH=1 pnpm test src/main/rate-limits/antigravity-usage-error.test.ts src/main/rate-limits/antigravity-usage-fetcher.test.ts src/main/rate-limits/antigravity-usage-response.test.ts src/main/rate-limits/service-antigravity-usage.test.ts src/renderer/src/components/status-bar/usage-error-copy.test.ts src/renderer/src/components/status-bar/tooltip.test.ts src/renderer/src/components/status-bar/owner-usage-rate-limits.test.ts --maxWorkers=2Linux, Windows, SSH/live remote, and native mobile execution were not tested. This corrects diagnosis; actual quota availability remains unresolved.
AI Disclosure
Implementation and review assistance used OpenAI Codex (GPT-6 family) and supervised Codex workers using the runtime default model. Exact worker model IDs were not reported by the runtime. Validation was agent-driven; no human-only review is claimed.
Review
Independent diagnostic review traced the captured zero-turn rejection through classifier, fetcher, and renderer copy; five regressions failed before the correction and the final focused batch passed. The current CodeRabbit review reports no actionable code comments. Its description warning is addressed by this completed template, concrete issue, and before/after proof. The generic docstring-coverage warning is not an executed CI failure: repository AGENTS guidance asks for concise comments only when code does not explain itself, so no blanket docstrings were added to otherwise self-describing functions.
Agent skill upstream boundary
Notes
No new wire enum, RPC, retry, process flag, quota source, auth behavior, or platform/workspace assumption is introduced. Existing clients understand
unavailable/usage-unavailableand receive the safe explanation through the existing error field. Quota ownership remains on the execution host; folder workspaces and mobile/mixed-version clients retain the existing contract. Security, cross-platform, remote, backwards compatibility, and performance were considered; execution limits are stated above.Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred) — focused local checks are documented above; complete repository gates are assigned to upstream PR CIThe final item stays unchecked: the targeted tests/typechecks/changed-lines checks above passed, but a full repository lint/test/build result on this independent PR head is not claimed. Upstream workflows still require maintainer approval. The full-app manual test remains unchecked; the documented hidden component captures have narrower scope.