Skip to content

Antigravity provider never detects the agy CLI on Windows (upstream CLI source not ported) #282

Description

@blaze818

Summary

The Antigravity provider on Windows never detects the Antigravity CLI (agy.exe), even when it is running and its local language server is listening. Upstream CodexBar supports an agy CLI source (and an OAuth remote fallback); neither appears to be ported — every --source value routes to the same local probe.

Environment

  • Win-CodexBar 0.48.0, Windows 10 Pro 10.0.19045
  • Antigravity CLI installed at %LOCALAPPDATA%\agy\bin\agy.exe, signed in (Google AI Pro)

Repro

  1. Start an interactive agy session. Confirm it is listening: Get-Process agy | % { Get-NetTCPConnection -State Listen -OwningProcess $_.Id } → two loopback ports.
  2. codexbar-cli usage -p antigravity (any --source, ANTIGRAVITY_CLI_PATH set or not)
  3. Result: Provider not installed: Antigravity language server not running. Start Google Antigravity and sign in, then retry.

Root cause

rust/src/providers/antigravity/mod.rsdetect_process_info() only matches processes named *language_server_windows* / language_server.exe (the desktop IDE's child) and requires --csrf_token on the command line. agy.exe serves in-process with no such flag, so it can never match. --source cli/oauth still log Fetching Antigravity usage via local probe.

Evidence the data path works

With an agy session running, its quota endpoint answers without any CSRF token:

curl -sk -X POST https://127.0.0.1:<port>/exa.language_server_pb.LanguageServerService/RetrieveUserQuotaSummary -H "Content-Type: application/json" -d "{}"

returns the full quota summary (Gemini + Claude/GPT groups, weekly + 5h buckets). The existing listening_ports_for_pid() / find_api_port() plumbing would work as-is if discovery also matched agy.exe (with the empty-CSRF allowance upstream added for explicit CLI matches).

Ask

Port the upstream agy CLI source: match agy.exe in process discovery, allow empty CSRF for CLI matches, and ideally the launch-agy-on-poll behavior so quota renders when no session is open. Happy to test builds on a real Windows + agy setup.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions