mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 17:20:45 +00:00
Improve gateway diagnostics export for support reports (#70324)
Merged via squash.
Prepared head SHA: 3d6ee85993
Co-authored-by: gumadeiras <5599352+gumadeiras@users.noreply.github.com>
Co-authored-by: gumadeiras <5599352+gumadeiras@users.noreply.github.com>
Reviewed-by: @gumadeiras
This commit is contained in:
committed by
GitHub
parent
6b41ef311f
commit
28818f9140
@@ -18,6 +18,13 @@ handshake time.
|
||||
|
||||
- WebSocket, text frames with JSON payloads.
|
||||
- First frame **must** be a `connect` request.
|
||||
- Pre-connect frames are capped at 64 KiB. After a successful handshake, clients
|
||||
should follow the `hello-ok.policy.maxPayload` and
|
||||
`hello-ok.policy.maxBufferedBytes` limits. With diagnostics enabled,
|
||||
oversized inbound frames and slow outbound buffers emit `payload.large` events
|
||||
before the gateway closes or drops the affected frame. These events keep
|
||||
sizes, limits, surfaces, and safe reason codes. They do not keep the message
|
||||
body, attachment contents, raw frame body, tokens, cookies, or secret values.
|
||||
|
||||
## Handshake (connect)
|
||||
|
||||
@@ -265,6 +272,12 @@ implemented in `src/gateway/server-methods/*.ts`.
|
||||
### System and identity
|
||||
|
||||
- `health` returns the cached or freshly probed gateway health snapshot.
|
||||
- `diagnostics.stability` returns the recent bounded diagnostic stability
|
||||
recorder. It keeps operational metadata such as event names, counts, byte
|
||||
sizes, memory readings, queue/session state, channel/plugin names, and session
|
||||
ids. It does not keep chat text, webhook bodies, tool outputs, raw request or
|
||||
response bodies, tokens, cookies, or secret values. Operator read scope is
|
||||
required.
|
||||
- `status` returns the `/status`-style gateway summary; sensitive fields are
|
||||
included only for admin-scoped operator clients.
|
||||
- `gateway.identity.get` returns the gateway device identity used by relay and
|
||||
|
||||
Reference in New Issue
Block a user