fix(gateway): retry startup handshakes before surfacing failures

This commit is contained in:
Peter Steinberger
2026-04-29 10:25:40 +01:00
parent a98a4e6ca5
commit 8d58ad4c15
14 changed files with 430 additions and 7 deletions

View File

@@ -97,6 +97,12 @@ Gateway → Client:
}
```
While the Gateway is still finishing startup sidecars, the `connect` request can
return a retryable `UNAVAILABLE` error with `details.reason` set to
`"startup-sidecars"` and `retryAfterMs`. Clients should retry that response
within their overall connection budget instead of surfacing it as a terminal
handshake failure.
`server`, `features`, `snapshot`, and `policy` are all required by the schema
(`src/gateway/protocol/schema/frames.ts`). `auth` is also required and reports
the negotiated role/scopes. `canvasHostUrl` is optional.