fix(gateway): pin paired reconnect metadata for node policy

This commit is contained in:
Peter Steinberger
2026-02-26 14:10:00 +01:00
parent cf311978ea
commit 7d8aeaaf06
13 changed files with 282 additions and 39 deletions

View File

@@ -202,6 +202,7 @@ describe("node.invoke approval bypass", () => {
readyResolve = resolve;
});
const resolvedDeviceIdentity = deviceIdentity ?? createDeviceIdentity();
const client = new GatewayClient({
url: `ws://127.0.0.1:${port}`,
// Keep challenge timeout realistic in tests; 0 maps to a 250ms timeout and can
@@ -215,7 +216,7 @@ describe("node.invoke approval bypass", () => {
mode: GATEWAY_CLIENT_MODES.NODE,
scopes: [],
commands: ["system.run"],
deviceIdentity,
deviceIdentity: resolvedDeviceIdentity,
onHelloOk: () => readyResolve?.(),
onEvent: (evt) => {
if (evt.event !== "node.invoke.request") {