fix: route voice wake to main

This commit is contained in:
Peter Steinberger committed 2025-12-20 15:33:28 +01:00
1 parent 066a2828c4
commit cf96ad8ef9
4 files changed
+53 -4

No files matched your search

+3 -1
View File
@@ -1800,8 +1800,10 @@ export async function startGatewayServer(
if (text.length > 20_000) return;
const sessionKeyRaw =
typeof obj.sessionKey === "string" ? obj.sessionKey.trim() : "";
const mainKey =
(loadConfig().inbound?.session?.mainKey ?? "main").trim() || "main";
const sessionKey =
sessionKeyRaw.length > 0 ? sessionKeyRaw : `node-${nodeId}`;
sessionKeyRaw.length > 0 ? sessionKeyRaw : mainKey;
const { storePath, store, entry } = loadSessionEntry(sessionKey);
const now = Date.now();
const sessionId = entry?.sessionId ?? randomUUID();