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

Aperta Adatta ai principianti
#173 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
84/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
go

Direzione di ricerca

Inizia da internal/api/antigravity_client.go, in particolare probePort, probeForConnectAPI e awaitReady. Aggiorna la richiesta di readiness per provare prima GetUserStatus, mantenendo GetUnleashData per le versioni precedenti di agy, quindi esegui i test Go pertinent. L’issue è completato quando un servizio agy 1.5.x gestito viene riconosciuto come pronto e il polling della quota termina senza il timeout di readiness.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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
Lingua principale
Go
Stelle
756
Fork
65
Merge medio
9g 4h
PR unite (30g)
1

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di onllm-dev/onWatch

Tutte le issue di onllm-dev/onWatch

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.