diff --git a/.openclaw-sync/source.json b/.openclaw-sync/source.json index e74f89ded..7150b5d67 100644 --- a/.openclaw-sync/source.json +++ b/.openclaw-sync/source.json @@ -1,5 +1,5 @@ { "repository": "openclaw/openclaw", - "sha": "0a8a2557335a3cdea616506b1d9d383c3268aaa5", - "syncedAt": "2026-04-29T04:51:38.868Z" + "sha": "7994833fac212be4b383b9019a9cfd24e15cdc7e", + "syncedAt": "2026-04-29T04:54:57.375Z" } diff --git a/docs/gateway/protocol.md b/docs/gateway/protocol.md index 021581cf8..d863a6ad3 100644 --- a/docs/gateway/protocol.md +++ b/docs/gateway/protocol.md @@ -550,19 +550,19 @@ enumeration of `src/gateway/server-methods/*.ts`. The reference client in `src/gateway/client.ts` uses these defaults. Values are stable across protocol v3 and are the expected baseline for third-party clients. -| Constant | Default | Source | -| ----------------------------------------- | ----------------------------------------------------- | ---------------------------------------------------------- | -| `PROTOCOL_VERSION` | `3` | `src/gateway/protocol/schema/protocol-schemas.ts` | -| Request timeout (per RPC) | `30_000` ms | `src/gateway/client.ts` (`requestTimeoutMs`) | -| Preauth / connect-challenge timeout | `15_000` ms | `src/gateway/handshake-timeouts.ts` (clamp `250`–`15_000`) | -| Initial reconnect backoff | `1_000` ms | `src/gateway/client.ts` (`backoffMs`) | -| Max reconnect backoff | `30_000` ms | `src/gateway/client.ts` (`scheduleReconnect`) | -| Fast-retry clamp after device-token close | `250` ms | `src/gateway/client.ts` | -| Force-stop grace before `terminate()` | `250` ms | `FORCE_STOP_TERMINATE_GRACE_MS` | -| `stopAndWait()` default timeout | `1_000` ms | `STOP_AND_WAIT_TIMEOUT_MS` | -| Default tick interval (pre `hello-ok`) | `30_000` ms | `src/gateway/client.ts` | -| Tick-timeout close | code `4000` when silence exceeds `tickIntervalMs * 2` | `src/gateway/client.ts` | -| `MAX_PAYLOAD_BYTES` | `25 * 1024 * 1024` (25 MB) | `src/gateway/server-constants.ts` | +| Constant | Default | Source | +| ----------------------------------------- | ----------------------------------------------------- | ------------------------------------------------------------------------------------------ | +| `PROTOCOL_VERSION` | `3` | `src/gateway/protocol/schema/protocol-schemas.ts` | +| Request timeout (per RPC) | `30_000` ms | `src/gateway/client.ts` (`requestTimeoutMs`) | +| Preauth / connect-challenge timeout | `15_000` ms | `src/gateway/handshake-timeouts.ts` (config/env can raise the paired server/client budget) | +| Initial reconnect backoff | `1_000` ms | `src/gateway/client.ts` (`backoffMs`) | +| Max reconnect backoff | `30_000` ms | `src/gateway/client.ts` (`scheduleReconnect`) | +| Fast-retry clamp after device-token close | `250` ms | `src/gateway/client.ts` | +| Force-stop grace before `terminate()` | `250` ms | `FORCE_STOP_TERMINATE_GRACE_MS` | +| `stopAndWait()` default timeout | `1_000` ms | `STOP_AND_WAIT_TIMEOUT_MS` | +| Default tick interval (pre `hello-ok`) | `30_000` ms | `src/gateway/client.ts` | +| Tick-timeout close | code `4000` when silence exceeds `tickIntervalMs * 2` | `src/gateway/client.ts` | +| `MAX_PAYLOAD_BYTES` | `25 * 1024 * 1024` (25 MB) | `src/gateway/server-constants.ts` | The server advertises the effective `policy.tickIntervalMs`, `policy.maxPayload`, and `policy.maxBufferedBytes` in `hello-ok`; clients should honor those values