mirror of
https://github.com/qingchencloud/clawpanel.git
synced 2026-05-29 04:10:00 +08:00
OpenClaw 2026.5.18/2026.5.19 still uses Gateway WS protocol v4 (PROTOCOL_VERSION=4, MIN_CLIENT_PROTOCOL_VERSION=4), so there is no v5 handshake to implement. The compatibility break is the hello payload shape: current upstream sends the runtime version at `hello.server.version` while ClawPanel only read the old flat `hello.serverVersion` field. Read both shapes so latest kernels keep populating wsClient.serverVersion, which in turn keeps Dashboard display, kernel snapshot feature gates and isLatest checks working after the WebSocket handshake succeeds. Also bump the recommended OpenClaw targets to the current npm latests: - official: 2026.5.19 - chinese: 2026.5.18-zh.1 Verification: - node --test tests/kernel.test.js - npm run build - manual module check: simulated both hello.server.version and legacy hello.serverVersion payloads, both report serverVersion and protocol v4
3.1 KiB
3.1 KiB