From 299752dde5d2e910b605626142e2e9cb3e82a075 Mon Sep 17 00:00:00 2001 From: abdaraxus Date: Mon, 26 Jan 2026 08:10:20 +0000 Subject: [PATCH] fix: allow node role to access chat methods for iOS Expands NODE_ROLE_METHODS to include chat.history, chat.send, chat.abort, and sessions.list so that iOS/mobile apps can access chat functionality when connected as a node device. --- src/gateway/server-methods.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/gateway/server-methods.ts b/src/gateway/server-methods.ts index 48bf32b59..bf2e85ea4 100644 --- a/src/gateway/server-methods.ts +++ b/src/gateway/server-methods.ts @@ -32,7 +32,16 @@ const APPROVALS_SCOPE = "operator.approvals"; const PAIRING_SCOPE = "operator.pairing"; const APPROVAL_METHODS = new Set(["exec.approval.request", "exec.approval.resolve"]); -const NODE_ROLE_METHODS = new Set(["node.invoke.result", "node.event", "skills.bins"]); +const NODE_ROLE_METHODS = new Set([ + "node.invoke.result", + "node.event", + "skills.bins", + // Allow node role to access chat for iOS/mobile chat UI + "chat.history", + "chat.send", + "chat.abort", + "sessions.list", +]); const PAIRING_METHODS = new Set([ "node.pair.request", "node.pair.list",