From 9374b8ac64cf08fb44f4ea2e4f2b2344f522a869 Mon Sep 17 00:00:00 2001 From: DrSmoothl <1787882683@qq.com> Date: Thu, 4 Jun 2026 23:36:22 +0800 Subject: [PATCH] fix(protocol): invokeOidb rejects on packet send failure (success=false) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit invokeOidb only threw on success=false when an OIDB errorCode was set (the block added in #69); a send failure with no errorCode silently resolved with an undecoded result. Surface it — throw errorMessage || 'packet send failed', matching runOidb and the oidb-service tests that were already red on dev. --- packages/protocol/src/oidb-service.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/protocol/src/oidb-service.ts b/packages/protocol/src/oidb-service.ts index b5ec017b..98667ce1 100644 --- a/packages/protocol/src/oidb-service.ts +++ b/packages/protocol/src/oidb-service.ts @@ -128,6 +128,9 @@ export async function invokeOidb