Repository navigation
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review.
|
There was a problem hiding this comment.
Actionable comments posted: 3
ℹ️ Review info
⚙️ Run configuration
- Configuration used: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
96f34ac5-045a-4282-86a7-f2ce7801b4ce
📥 Commits
Reviewing files that changed from the base of the PR and between fd8b2dc and d2d0babe333e676a118e856b9bf7efddf0d2c79d.
📒 Files selected for processing: 11
src/main/provider-account-services.tssrc/main/rate-limits/account-runtime-target-sync.test.tssrc/main/rate-limits/account-runtime-target-sync.tssrc/main/rate-limits/antigravity-usage-fetcher.tssrc/main/rate-limits/antigravity-usage-runtime.tssrc/main/rate-limits/antigravity-usage-wsl.test.tssrc/main/rate-limits/service-antigravity-usage.test.tssrc/main/rate-limits/service/service-configuration.tssrc/main/rate-limits/service/service-full-cycle-application.tssrc/main/rate-limits/service/service-full-cycle-preparation.tssrc/main/rate-limits/service/service-state.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.
d2d0bab to
cdd15e3
Compare
cdd15e3 to
6ed0400
Compare
|
One stderr finding from #31741 still applies at 6ed0400. With the actual modules and fake shell/CLI fixtures, startup “Not authenticated” output was classified as missing credentials. Startup browser-sign-in text also triggered the new one-hour cooldown and could override a genuine CLI 503 error. The WSL wrapper fences only stdout; both failure classification and browser-sign-in detection still read raw stderr. Merging CLI stderr inside the fence before clearing raw stderr preserved genuine errors and stderr-only version output, but lost the browser-sign-in cooldown because its detector reads only |
# Conflicts: # src/main/rate-limits/antigravity-usage-fetcher.ts # src/main/rate-limits/service/service-full-cycle-application.ts # src/main/rate-limits/service/service-full-cycle-preparation.ts
…e shared WSL runner Route the Antigravity usage probe through runWslProcess and the same local-account usage target Kimi uses, key the unsupported-CLI latch per runtime, and drop a previous runtime's reading instead of keeping it as stale. Replaces the PR's parallel wsl.exe plumbing, fetch generation, invalidation and supersede states.
There was a problem hiding this comment.
Actionable comments posted: 1

Review info
-
Run configuration-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
433690df-ef3d-4ba1-bb76-c01e71c01511
Files selected for processing: 15-
src/main/kimi/kimi-runtime-home.test.tssrc/main/kimi/kimi-runtime-home.tssrc/main/provider-account-services.tssrc/main/rate-limits/account-runtime-target-sync.test.tssrc/main/rate-limits/account-runtime-target-sync.tssrc/main/rate-limits/antigravity-usage-fetcher.test.tssrc/main/rate-limits/antigravity-usage-fetcher.tssrc/main/rate-limits/service-antigravity-usage.test.tssrc/main/rate-limits/service/service-configuration.tssrc/main/rate-limits/service/service-full-cycle-application.tssrc/main/rate-limits/service/service-full-cycle-preparation.tssrc/main/rate-limits/service/service-state.tssrc/main/wsl/wsl-runner.tssrc/shared/local-account-runtime.test.tssrc/shared/local-account-runtime.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review.
-
When Orca's local-account runtime is WSL on Windows, the Antigravity usage meter still ran the host `agy`, so it showed the wrong account or "not installed". Route the probe through runWslProcess for the selected distro (never booting a stopped one), key the unsupported-CLI latch per runtime, tag readings with the runtime as provenance, and drop another runtime's last reading instead of keeping it as stale. Settings changes retarget the fetcher and reread usage. A WSL target without a distro now names the default through resolveWslDefaultDistro (registry DefaultDistribution) rather than listWslDistrosAsync()[0], which skips docker-desktop, falls back to registry order, and caches the list for the process lifetime. Ported from #31542 onto current main: reuses main's antigravity fetch generation (#34165) instead of adding a second one, follows moved WSL and provider-account-services paths, and keeps only the tests that cover the new behavior. Co-authored-by: Jinwoo-H <[email protected]>
When Orca's local-account runtime is WSL on Windows, the Antigravity usage meter still ran the host `agy`, so it showed the wrong account or "not installed". Route the probe through runWslProcess for the selected distro (never booting a stopped one), key the unsupported-CLI latch per runtime, tag readings with the runtime as provenance, and drop another runtime's last reading instead of keeping it as stale. Settings changes retarget the fetcher and reread usage. A WSL target without a distro now names the default through resolveWslDefaultDistro (registry DefaultDistribution) rather than listWslDistrosAsync()[0], which skips docker-desktop, falls back to registry order, and caches the list for the process lifetime. Ported from #31542 onto current main: reuses main's antigravity fetch generation (#34165) instead of adding a second one, follows moved WSL and provider-account-services paths, and keeps only the tests that cover the new behavior. Co-authored-by: CAVIN <[email protected]> Co-authored-by: Jinwoo-H <[email protected]>
|
Thank you @zzz163519! This landed in #38985, which ports your fix onto current main with you as author. Closing as superseded. |
ELI5
Read Antigravity quota from the selected Windows/WSL account runtime, and discard the previous runtime's quota when that selection changes.
What Changed
agyin the selected running distro; keep command output separate from login-shell environment probing.This update preserves the maintainer's shared-runner and runtime-isolation commits, including the maintainer's hidden-meter correction, with an additional fix for unresolved-environment classification.
Why
The status bar should report the selected account, without starting stopped distros or spending model quota. Existing WSL process and quota-service mechanisms supply the required execution and state boundaries.
Linked Issue
Fixes #31541
Related: #25847. Native account-vault recognition/switching remains outside this quota-routing change.
Visual Proof
N/A — background quota service change. A regression test reproduces a hidden WSL meter remaining
fetchingbefore the fix andidleafterward, with no Antigravity command invocation.Testing
Final six-suite quota/runtime/WSL run: 110 tests passed on
aa17b580cdbb(base7a9abe48f3a5). Formatting, lint and diff checks passed for the full 15-file patch.pnpm check:changed --maxWorkers=1passed 21 non-test gates, including typechecks and selected ratchets, on the preceding candidate with identical production code. Its expanded related-test run was interrupted after 14 minutes and is not claimed complete. The final maintainer integration changes only a service test relative to that candidate; it retains the equivalent existing hidden-meter regression instead of adding a duplicate. Independent final hidden/ABA probes passed.Linux/WSL2 validation used controlled subprocesses, isolated fixtures and runtime contracts with
ORCA_BACKGROUND_LAUNCH=1. Native Windows/macOS, GUI/PTY interaction, mobile devices, live SSH and actual WSL account quota were not exercised. Full repository suites and release builds remain for CI.AI Disclosure
Implemented and maintained with Codex; a separate fresh-context Codex audited the complete integrated update. Maintainer-authored changes are retained in the branch history.
Review
Fresh Codex: PASS on the complete integrated patch. Two confirmed issues (hidden-meter fetching state and uncertain PATH treated as absence) were fixed and independently re-tested. Ten final independent probes and three targeted contract tests passed; 108 repository tests passed on the preceding candidate. The review used the real shared WSL runner with isolated subprocess fixtures to verify startup stderr separation, CLI-only errors, stderr version output and sign-in cooldown, plus runtime/ABA isolation. No unresolved actionable findings.
The shared WSL runner retains its existing explicit WSLENV forwarding contract; this version does not claim a probe-specific host-environment allowlist. Its environment discovery may still run for a pre-aborted request, while the actual CLI execution honors cancellation. These shared-runner boundaries are unchanged by the follow-up fix.
Agent skill upstream boundary
Author
GitHub: @zzz163519. X/Twitter handle: not provided.
Checklist