Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
fix(cli): drop the terminal serve tip from the desktop pairing refusal
Bugfixer 2a6d59c0131bc
diff --git a/server/cli-pair.test.ts b/server/cli-pair.test.tsindex 77d0e873f0..aca6d6b7fc 100644--- a/server/cli-pair.test.ts+++ b/server/cli-pair.test.ts@@ -147,7 +147,8 @@ describe("openmausbot pair", () => {const message = (failure as Error).message;expect(message).toContain("The OpenMausBot desktop app runs this server");expect(message).toContain("Settings → Remote access");- expect(message).toContain("openmausbot serve");+ // A terminal `serve` would not get the keys the app keeps in its own credential store, so it is not offered.+ expect(message).not.toContain("openmausbot serve");expect(message).not.toContain("server refused to mint a pairing code");});diff --git a/server/cli-pairing.ts b/server/cli-pairing.tsindex 74bf4fd8da..2457aaf1f6 100644--- a/server/cli-pairing.ts+++ b/server/cli-pairing.ts@@ -9,7 +9,7 @@ import type { PhoneRelayStatus } from "./phone-relay.ts";export function desktopOwnedRefusal(status: number, body: unknown): string | null {const error = (body as { error?: unknown } | null)?.error;if (status !== 403 || typeof error !== "string" || !error.includes("must come from the desktop app")) return null;- return `The OpenMausBot desktop app runs this server, so it only pairs devices from the app itself: open OpenMausBot on this computer and use Settings → Remote access. To pair from this terminal instead, quit the desktop app and start the server with ${cliCommand("serve")}.`;+ return "The OpenMausBot desktop app runs this server, so it only pairs devices from the app itself: open OpenMausBot on this computer and use Settings → Remote access.";}/** A clock time a code works until: "11:22", or "tomorrow 11:22" / a date when it runs past today. */