Antigravity CLI collector: readiness probe uses removed GetUnleashData endpoint (agy 1.5.x) — "quota service did not become ready" on every poll

Open Beginner friendly
#173 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
84/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
go

Research direction

Start with internal/api/antigravity_client.go, especially probePort, probeForConnectAPI, and awaitReady. Update the readiness request to try GetUserStatus first while retaining GetUnleashData for older agy versions, then run the relevant Go tests. The issue is done when a managed agy 1.5.x service is recognized as ready and quota polling completes without the readiness timeout.

Written by the indexing model from the issue text.

Description

Summary

Since agy 1.5.x (tested with 1.5.21 on Linux), the Antigravity CLI collector fails on every
poll with:

level=ERROR msg="Failed to fetch Antigravity quotas" source=cli error="antigravity cli: quota service did not become ready"
level=WARN msg="agy session unhealthy, tearing down for relaunch" component=antigravity-cli failures=2

The managed agy process is launched, listens on its ports, and serves quota data fine —
but the readiness probe never accepts it, so after the 90 s timeout the session is killed
and relaunched forever (leaving zombie agy processes as the parent never reaps them).

Cause

AntigravityClient.probePort (internal/api/antigravity_client.go, still the case on main)
probes the Connect-RPC surface via:

POST /exa.language_server_pb.LanguageServerService/GetUnleashData
body: {"wrapper_data":{}}
accept: 200 or 401

In agy 1.5.x this endpoint has been removed and now returns 404 page not found, so
probeForConnectAPI always returns nil and awaitReady times out with
ErrAgyNotReady. This is unrelated to the CSRF token fix from #140/#141 (the token is
sent correctly; --csrf_token is passed at launch).

Meanwhile the endpoint the collector actually needs still works. Verified by hand against a
managed agy launched the same way onWatch does (PTY + --csrf_token):

POST /exa.language_server_pb.LanguageServerService/GetUnleashData          -> 404 (both ports, http+https)
POST /exa.language_server_pb.LanguageServerService/RetrieveUserQuotaSummary -> 200 (full quota buckets)
POST /exa.language_server_pb.LanguageServerService/GetUserStatus           -> 200 (user + plan status)

Suggested fix

Probe with GetUserStatus (same Connect-RPC surface, returns 200 authed / 401 unauthed,
same accept criteria) and keep GetUnleashData as a fallback for older agy builds:

endpoints := []string{
    "/exa.language_server_pb.LanguageServerService/GetUserStatus",
    "/exa.language_server_pb.LanguageServerService/GetUnleashData",
}

With that change (validated locally on Linux against agy 1.5.21), the session becomes
ready in ~3 s and polls complete normally.

Environment

  • onWatch v2.14.16 (bug also present on current main), Linux amd64
  • agy 1.5.21
Dominant language
Go
Stars
756
Forks
65
Avg merge
9d 4h
Merged PRs (30d)
1

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from onllm-dev/onWatch

All issues in onllm-dev/onWatch

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.