Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
Read the desktop app's tailnet message in the server's existing listener
Milind Soni41bc71789e3b
diff --git a/electron/server-probe.mjs b/electron/server-probe.mjsindex 801ec6e299..c61a83966b 100644--- a/electron/server-probe.mjs+++ b/electron/server-probe.mjs@@ -33,9 +33,9 @@ export const CONNECT_PROBLEM_KEYS = Object.freeze({/*** Why an address only a tailnet reaches did not answer: Tailscale is off on this computer, the name is not on this- * computer's tailnet (MagicDNS answers only names it knows), macOS refused at once (its Local Network permission covers- * Tailscale's addresses too, and refuses with "no route to host" rather than letting the request time out), or the- * computer there is asleep, offline or not sharing.+ * computer's tailnet (MagicDNS answers only names it knows), macOS refused (its Local Network permission, from macOS 15,+ * covers Tailscale's addresses too, and is expected to fail at once with no route to host where a sleeping peer times+ * out), or the computer there is asleep, offline or not sharing.*/function tailnetProblem(kind, platform, tailnet) {if (!tailnet) return "tailscaleOff";diff --git a/server/index.ts b/server/index.tsindex 7c6ca4717a..1541888ed6 100644--- a/server/index.ts+++ b/server/index.ts@@ -1418,7 +1418,7 @@ type UtilityParentPort = {postMessage(message: object): void;};// Only Electron's utility process supplies parentPort, private to the desktop main process; plain Node leaves it absent.-const utilityParentPort = (process as NodeJS.Process & { parentPort?: UtilityParentPort }).parentPort; utilityParentPort?.on("message", (event) => void tailnetShare.receive(event.data, (answer) => utilityParentPort.postMessage(answer)));+const utilityParentPort = (process as NodeJS.Process & { parentPort?: UtilityParentPort }).parentPort;type DesktopPrivateMessage = BrowserCleanupWireRequest | import("./login-handoff.ts").LoginHandoffResult | {type: "openmausbot:browser-control";botId: string;@@ -1487,7 +1487,7 @@ const phoneSecrets = new PhoneSecretBridge(postDesktopPrivateMessage);utilityParentPort?.on("message", (event) => {const message = event?.data;try {- if (applyDesktopMutationTokenMessage(message) || desktopComputer.receive(message)) return;+ if (applyDesktopMutationTokenMessage(message) || desktopComputer.receive(message) || tailnetShare.receive(message, (answer) => utilityParentPort?.postMessage(answer))) return;if (handleDesktopTrustedApprovalMessage(message)) return;if (browserCleanup.receive(message)) return;if (phoneSecrets.receive(message) || botLogins.receiveHandoff(message, postDesktopPrivateMessage, (what) => cloudConnections.handoff(what))) return;