Skip to content

Commit 38a0c12

Browse files
committed
fix(nodes): add actionable hint for 'unknown requestId' pairing error
The 'nodes approve' command shows a raw GatewayClientRequestError: unknown requestId with no explanation. Added a hint suggesting the user check pending requests and verify the companion app sent a valid requestId. Closes #94040
1 parent 02330f3 commit 38a0c12

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

‎src/cli/nodes-cli/cli-utils.ts‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,16 @@ export function runNodesCommand(label: string, action: () => Promise<void>) {
2828
if (hint) {
2929
defaultRuntime.error(warn(hint));
3030
}
31+
// Provide actionable hints for common gateway RPC errors.
32+
const normalizedMessage = message.toLowerCase();
33+
if (normalizedMessage.includes("unknown requestid")) {
34+
defaultRuntime.error(
35+
warn(
36+
"The pairing request may have expired or was already processed. " +
37+
"Check pending requests with `openclaw nodes status` and ensure the companion app sent a valid requestId.",
38+
),
39+
);
40+
}
3141
defaultRuntime.exit(1);
3242
});
3343
}

0 commit comments

Comments
 (0)