Restore Boat desktop input before computer access

Probe IBus without replacing a healthy daemon. Rebind a failed restored socket to the same user private runtime directory before viewer access or Cua MCP startup; headless execution stays independent.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
DottaandPaperclip committed 2026-10-10 10:47:31 -05:00
1 parent 6e4bd77b58
commit 3308a116d4
6 files changed
+107 -2

No files matched your search

@@ -53,6 +53,7 @@ export interface ComputerBackend {
id: string,
): Promise<{ id: string; status: string }>;
renew(record: ComputerRecord): Promise<void>;
computerTool(): { command: string; args: string[] };
desktop(
record: ComputerRecord,
): Promise<{ viewerUrl: string; expiresAt: string }>;
@@ -63,6 +63,7 @@ function fixture() {
stop: vi.fn(async () => ({ id: "stop_1", status: stopStatus })),
stopStatus: vi.fn(async () => ({ id: "stop_1", status: stopStatus })),
renew: vi.fn(async () => {}),
computerTool: () => ({ command: "cua-driver", args: ["mcp"] }),
desktop: vi.fn(async () => ({
viewerUrl: "https://test.on.boat.dev/#credential",
expiresAt: new Date(clock.getTime() + 540_000).toISOString(),
@@ -289,6 +289,7 @@ finally:
return {
owner: ownerRef,
runner: runnerFor(false),
computerTool: backend.computerTool(),
process: {
runner: runnerFor(true),
async ingress(input?: { port?: number; path?: string }) {