From bd6378830bd449392a03a01abb182958c6401f01 Mon Sep 17 00:00:00 2001 From: Siyuan Miao Date: Thu, 4 Sep 2025 16:58:19 +0200 Subject: [PATCH] chore: change version handle --- ui/src/hooks/useHidRpc.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ui/src/hooks/useHidRpc.ts b/ui/src/hooks/useHidRpc.ts index 36ba038e..ea0c7112 100644 --- a/ui/src/hooks/useHidRpc.ts +++ b/ui/src/hooks/useHidRpc.ts @@ -81,8 +81,11 @@ export function useHidRpc(onHidRpcMessage?: (payload: RpcMessage) => void) { return; } - if (message.version < HID_RPC_VERSION) { - console.error("Server is using an older HID RPC version than the client", message); + if (message.version > HID_RPC_VERSION) { + // we assume that the UI is always using the latest version of the HID RPC protocol + // so we can't support this + // TODO: use capabilities to determine rather than version number + console.error("Server is using a newer HID RPC version than the client", message); return; }