Title: antigravity-ls-proxy: callRpc has no timeout — a language server that heartbeats but never answers an RPC hangs /v1/models and every chat request forever · Issue #2102 · developing-today/code · GitHub
Open Graph Title: antigravity-ls-proxy: callRpc has no timeout — a language server that heartbeats but never answers an RPC hangs /v1/models and every chat request forever · Issue #2102 · developing-today/code
X Title: antigravity-ls-proxy: callRpc has no timeout — a language server that heartbeats but never answers an RPC hangs /v1/models and every chat request forever · Issue #2102 · developing-today/code
Description: Summary bin/antigravity-ls-proxy.mjs's callRpc — the single method every language-server RPC goes through — calls fetch with no timeout signal. A language server that is alive enough to pass the proxy's heartbeat but wedged on real RPCs ...
Open Graph Description: Summary bin/antigravity-ls-proxy.mjs's callRpc — the single method every language-server RPC goes through — calls fetch with no timeout signal. A language server that is alive enough to pass the pr...
X Description: Summary bin/antigravity-ls-proxy.mjs's callRpc — the single method every language-server RPC goes through — calls fetch with no timeout signal. A language server that is alive enough to pass th...
Opengraph URL: https://github.com/developing-today/code/issues/2102
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"antigravity-ls-proxy: callRpc has no timeout — a language server that heartbeats but never answers an RPC hangs /v1/models and every chat request forever","articleBody":"## Summary\n\n`bin/antigravity-ls-proxy.mjs`'s `callRpc` — the single method every language-server RPC goes through — calls `fetch` with **no timeout signal**. A language server that is alive enough to pass the proxy's heartbeat but wedged on real RPCs (deadlocked, stuck on its own upstream) hangs every dependent request forever: `/v1/models`, and every `/v1/chat/completions` (which blocks on `GetAvailableModels` before it even starts a cascade). The heartbeat in the same file pins `AbortSignal.timeout(1500)` (:224), and `bin/sync-models.mjs`'s identical `GetAvailableModels` call pins 3000 ms — `callRpc` is the one unguarded path.\n\n## Evidence (main `82b019a0`)\n\n- `bin/antigravity-ls-proxy.mjs:372-383` — `callRpc(method, payload)` does `await fetch(url, { method: 'POST', headers, body })` with no `signal`, no `AbortSignal.timeout`, no deadline of any kind; callers: `GetAvailableModels` (:420, via `getLiveCatalog`), `StartCascade` (:793), `SendUserCascadeMessage` (:806), `GetCascadeTrajectorySteps` (:824), `GetModelResponse` (:913).\n- Same file, :217-226 — `checkHeartbeat` uses `signal: AbortSignal.timeout(1500)`, so a wedged-but-listening server passes health checks while its RPCs hang: `ensureActive` succeeds, then the request waits indefinitely.\n- The cascade poll loop (:822-843) has a nominal cap (120 attempts × 250 ms, then \"Cascade execution timed out after 30 seconds\") that a single hung `GetCascadeTrajectorySteps` callRpc defeats — the loop never advances to the next attempt.\n- `getLiveCatalog` (:417-430) caches for 60 s, but a hung first pull never resolves and never caches, so every `/v1/models` and chat request piles onto the same indefinite wait.\n\n## Probe (laptop, 2026-10-28, shipped file unmodified)\n\nProbe dir: `~/git/fleet/probe-2026-10-28-laneB-lsrpc/` (laptop) — stub language server that answers `Heartbeat` with 200 and never responds to any other RPC (the test file's own env attach path, `ANTIGRAVITY_LS_ADDRESS`/`ANTIGRAVITY_CSRF_TOKEN`), shipped proxy on an alternate port:\n\n- Proxy starts and `/health` answers (heartbeat path works against the stub).\n- `GET /v1/models`: **no response after 8001 ms** (client-side abort fired; stub logged the hanging `GetAvailableModels` RPC).\n- `POST /v1/chat/completions`: **no response after 8002 ms** (blocked on the same hanging `GetAvailableModels` callRpc, before any cascade RPC).\n\n## Why it matters\n\nThis proxy fronts a language server that is a separate, crash- and deadlock-prone process. The failure mode \"process alive, RPCs wedged\" is exactly the one the heartbeat cannot distinguish — and it converts a backend wedge into indefinitely hung client requests with no error, no log line, and no recovery short of restarting the proxy (which doesn't unwedge the server). Every sibling call site in the fleet already bounds this wait (heartbeat 1500 ms here; sync-models 3000 ms for the same RPC; clef-proxy 10 s, #2100; design-code-proxy dispatch, #2097).\n\n## Acceptance criteria\n\n- [ ] `callRpc` carries a bounded timeout (triage pins the value; it must comfortably exceed normal `GetModelResponse`/cascade-step latency — a generous per-RPC bound, not a total-request deadline), and a timed-out RPC surfaces as an error the existing `catch` paths already handle (e.g. `getLiveCatalog`'s last-known-good fallback engages instead of hanging).\n- [ ] A language server that heartbeats but never answers RPCs: `/v1/models` answers within a bounded time (live catalog or static floor), and a chat request fails with a clean error within a bounded time — never an indefinite hang.\n- [ ] The cascade poll loop's 30-second cap becomes effective: a hung poll RPC counts against it instead of defeating it.\n- [ ] Tests in `bin/antigravity-ls-proxy.test.mjs` style: stub LS in heartbeat-ok/RPC-hang mode → models and chat requests resolve (value or clean error) within a bounded time; slow-but-alive LS (answers after a delay under the bound) still succeeds.\n- [ ] Existing behaviours unchanged: heartbeat timeout, live-catalog 60 s cache + last-known-good, model resolution (#686 tests), cascade and direct-RPC chat paths against a healthy stub.\n\n## Dedup\n\n`gh issue list --search \"antigravity-ls-proxy timeout callRpc\"` and `--search \"antigravity\"`: no issue covers a missing `callRpc` timeout. Related but distinct: #2097 (design-code-proxy backend dispatch), #2100 (clef-proxy data-path fetch), #494 (closed, LS address parsing).\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-10-29T03:57:55Z","url":"https://github.com/developing-today/code/issues/2102"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:c93b88b3-fa9a-fc2d-f6d8-078805c9ecfc |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BD5E:33943:C60F1B:1005AD8:6B063F83 |
| html-safe-nonce | 17f41c77778cc181fa1cf46c080f3df6bbe9ca20ad65a62ceeeb113904c32cfc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRDVFOjMzOTQzOkM2MEYxQjoxMDA1QUQ4OjZCMDYzRjgzIiwidmlzaXRvcl9pZCI6IjE3MzUyNTkwNDA5ODIxMjIzNzEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | f5805bf75c4c5e43f6fddaa1610f8fc8712970db13b8c1e3cd1738607a738b24 |
| hovercard-subject-tag | issue:6092440803 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/developing-today/code/2102/issue_layout |
| twitter:image | https://opengraph.githubassets.com/16094a07fcdd148c71ac31de31db1bfe71d96a28f5f19f572d7ee3d0a1aa1376/developing-today/code/issues/2102 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/16094a07fcdd148c71ac31de31db1bfe71d96a28f5f19f572d7ee3d0a1aa1376/developing-today/code/issues/2102 |
| og:image:alt | Summary bin/antigravity-ls-proxy.mjs's callRpc — the single method every language-server RPC goes through — calls fetch with no timeout signal. A language server that is alive enough to pass the pr... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dezren39 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 1bff4f6bfaa96dc9c42cacf315424c24ebb548b06142ced5e3aaccb2a42dd652 |
| turbo-cache-control | no-preview |
| go-import | github.com/developing-today/code git https://github.com/developing-today/code.git |
| octolytics-dimension-user_id | 26439447 |
| octolytics-dimension-user_login | developing-today |
| octolytics-dimension-repository_id | 627308783 |
| octolytics-dimension-repository_nwo | developing-today/code |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 627308783 |
| octolytics-dimension-repository_network_root_nwo | developing-today/code |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ac613d3698d3d8565651455086e1f74da07bf277 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width