Skip to content

Open-source Grok Bot alternative with a virtual machine that bots can use

Private desktop setup: Details shows only the private desktop panel (#5554)

Bugfixer 2de08ea669291
diff --git a/apps/docs/content/docs/computers/local-vm.mdx b/apps/docs/content/docs/computers/local-vm.mdx
index 615d55e08e..95abf2c545 100644
--- a/apps/docs/content/docs/computers/local-vm.mdx
+++ b/apps/docs/content/docs/computers/local-vm.mdx
@@ -14,13 +14,15 @@ To put the desktop container on your own Linux server instead of this host, foll
- Enough local memory and disk for the desktop image
- A healthy container runtime available to the OpenMausBot process
+The runtime must be reachable from the MausBot server itself. The published server image (the Docker install from [Deploy on a VPS](/docs/self-hosting/deploy-vps)) has no Docker or Podman inside its container, so private desktops stay at **Install the app that runs private desktops** there even when the host has Docker. On that kind of install, use [Cloud desktops](/docs/computers/cloud-and-vps) or [Your own VPS (BYO)](/docs/computers/byo-vps) instead.
+
On Windows, Podman is the preferred Local VM runtime. MausBot checks Podman before Docker and validates the exact Windows-to-VM workspace mount before reusing a container.
Before starting two desktops on Windows, confirm the Podman machine is running and has enough shared CPU, memory, and disk for both. Podman Desktop exposes that machine under **Settings → Resources**; both MausBot desktops consume the same machine budget.
## Run two bot desktops
-1. Open **App Settings → Bot desktops**, prepare the managed desktop image, and choose **Per bot**.
+1. Open **Settings → Desktops & browser**, choose **Set up** next to **Private desktops**, then **Details**. Prepare the managed desktop image and, under **Isolation**, choose **Per bot**.
2. Set **Maximum per-bot desktops** to `2`.
3. Give two bots **Private desktop** as their computer and create each desktop from that bot's Screen panel.
4. Choose **Open two desktops** from either bot to watch both in one workspace.
diff --git a/src/components/LocalComputerSection.test.ts b/src/components/LocalComputerSection.test.ts
index 4d45aefbed..1f758c6949 100644
--- a/src/components/LocalComputerSection.test.ts
+++ b/src/components/LocalComputerSection.test.ts
@@ -576,6 +576,14 @@ describe("Settings → Computers on an OMB Cloud home", () => {
expect(titles).not.toContain("Private desktops");
expect(titles).not.toContain("Setup");
});
+
+ it("shows only the private desktop cards inside the private desktop setup's Details", () => {
+ const markup = renderToStaticMarkup(createElement(LocalComputerSection, { privateOnly: true }));
+ const titles = [...markup.matchAll(/<div class="text-\[16px\] font-semibold text-ink[^"]*">([^<]+)<\/div>/g)].map((match) => match[1]);
+ expect(titles).toEqual(expect.arrayContaining(["Private desktops", "Setup"]));
+ expect(titles).not.toContain("Cloud desktops");
+ expect(markup).not.toContain("Self-hosted VPS computers");
+ });
});
describe("Local VM idle timeout setting", () => {
diff --git a/src/components/LocalComputerSection.tsx b/src/components/LocalComputerSection.tsx
index 5d36cda2e7..1da3c6c68c 100644
--- a/src/components/LocalComputerSection.tsx
+++ b/src/components/LocalComputerSection.tsx
@@ -761,7 +761,7 @@ function SafetyLine({ perBot, path }: { perBot: boolean; path: string }) {
</div>;
}
-export function LocalComputerSection() {
+export function LocalComputerSection({ privateOnly = false }: { privateOnly?: boolean }) {
const cloudHome = useStore().state.config?.cloudHome === true;
const [status, setStatus] = useState<Status | null>(null);
const [loading, setLoading] = useState(true);
@@ -908,6 +908,7 @@ export function LocalComputerSection() {
}, [inventoryRefreshKey, refreshInventory, status?.mode]);
useEffect(() => {
+ if (privateOnly) return;
const controller = new AbortController();
setCloudLoading(true);
void refreshCloudInventory(controller.signal)
@@ -920,9 +921,10 @@ export function LocalComputerSection() {
if (!controller.signal.aborted) setCloudLoading(false);
});
return () => controller.abort();
- }, [cloudRefreshKey, refreshCloudInventory]);
+ }, [cloudRefreshKey, privateOnly, refreshCloudInventory]);
useEffect(() => {
+ if (privateOnly) return;
const controller = new AbortController();
setVpsLoading(true);
void refreshVpsInventory(controller.signal)
@@ -935,7 +937,7 @@ export function LocalComputerSection() {
if (!controller.signal.aborted) setVpsLoading(false);
});
return () => controller.abort();
- }, [refreshVpsInventory, vpsRefreshKey]);
+ }, [privateOnly, refreshVpsInventory, vpsRefreshKey]);
const post = async (action: Exclude<Action, "recreate">, signal: AbortSignal) => {
const response = await fetch(`/api/local-computer/${action}`, {
@@ -1189,7 +1191,7 @@ export function LocalComputerSection() {
return (
<>
<p role="status" aria-live="polite" aria-atomic="true" className="sr-only">{announcement}</p>
- <CloudComputersCard
+ {!privateOnly && <><CloudComputersCard
instances={cloudInventory}
configured={cloudConfigured}
loading={cloudLoading}
@@ -1200,7 +1202,6 @@ export function LocalComputerSection() {
onSleep={(instance) => void actOnCloudComputer("sleep", instance)}
onDelete={(instance) => void actOnCloudComputer("delete", instance)}
/>
-
<VpsComputersCard
instances={vpsInventory}
configured={vpsConfigured}
@@ -1212,8 +1213,7 @@ export function LocalComputerSection() {
onRefresh={() => setVpsRefreshKey((key) => key + 1)}
onRemove={(instance) => void removeVpsComputer(instance)}
/>
-
- <MacLocalControl />
+ <MacLocalControl /></>}
{!cloudHome && <>
<Card
diff --git a/src/components/settings/DesktopKinds.tsx b/src/components/settings/DesktopKinds.tsx
index 5d85d45bdd..ccdb14869f 100644
--- a/src/components/settings/DesktopKinds.tsx
+++ b/src/components/settings/DesktopKinds.tsx
@@ -52,7 +52,7 @@ function PrivateSetup({ status, onCheck, onClose }: { status: PrivateStatus; onC
</li>
))}
</ol>
- {details && <div data-desktop-details="" className="max-h-[40vh] overflow-y-auto"><LocalComputerSection /></div>}
+ {details && <div data-desktop-details="" className="max-h-[40vh] overflow-y-auto"><LocalComputerSection privateOnly /></div>}
</SettingsDialog>
);
}