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

Abierto Apto para principiantes
#173 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
84/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
go

Línea de trabajo

Comienza con internal/api/antigravity_client.go, especialmente probePort, probeForConnectAPI y awaitReady. Actualiza la solicitud de readiness para probar primero GetUserStatus, manteniendo GetUnleashData para las versiones anteriores de agy, y luego ejecuta las pruebas de Go relevantes. El issue estará terminado cuando un servicio agy 1.5.x gestionado se reconozca como ready y el sondeo de cuota finalice sin el timeout de readiness.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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
Lenguaje dominante
Go
Estrellas
756
Forks
65
Merge medio
9 d 4 h
PR fusionados (30 d)
1

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de onllm-dev/onWatch

Todos los issues de onllm-dev/onWatch

Issues similares

Más issues de Go

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.