Skip to content

armgit / fuobe

Public Imported from GitHub
0

The open creative studio on ComfyUI: images, video, 3D and audio on open weights, on your own GPU or the cloud. Camera motions, effects, apps, Cinema, Layers, Image to 3D and an AI agent.

Connect your GPU: say why Safari, phones and non-secure pages can't reach ComfyUI, then the way that works here

Adarsh25425517db70
diff --git a/src/components/gpu/connect-choice.tsx b/src/components/gpu/connect-choice.tsx
index 60b09e2e..dae43922 100644
--- a/src/components/gpu/connect-choice.tsx
+++ b/src/components/gpu/connect-choice.tsx
@@ -665,7 +665,7 @@ export function OwnerComfyWhere({ value, onChange }: { value: string; onChange:
})}
</div>
{support !== "ok" && (picking || computer) ? (
- <p className="text-[13px] text-muted-foreground">{unsupportedWords(support)}</p>
+ <p className="text-[13px] text-muted-foreground">{unsupportedWords(support, true)}</p>
) : picking && !computer ? (
<ThisComputer
connect={async () => {
diff --git a/src/components/gpu/this-computer.tsx b/src/components/gpu/this-computer.tsx
index ceec4927..8e76eeb9 100644
--- a/src/components/gpu/this-computer.tsx
+++ b/src/components/gpu/this-computer.tsx
@@ -102,17 +102,24 @@ function blockedSteps(): string {
return "Click the icon to the left of the address, turn on Apps on device, then reload.";
}
+/**
+ * Why this browser can't use the ComfyUI on the person's computer, in their terms, then the way that works from right
+ * here: the web address form shown below these words. The person already has Fuobe open, so no line tells them to open
+ * it; the browser switch is only a last line, said as what those browsers allow.
+ */
const UNSUPPORTED: Record<"safari" | "phone" | "http", string> = {
- phone: "Your phone can't run ComfyUI. Open Fuobe on your computer to use its ComfyUI, or give your ComfyUI a web address.",
- safari: "Safari can't reach apps on this computer from a website. Open Fuobe in Chrome, Edge or Firefox to use your ComfyUI directly, or give your ComfyUI a web address.",
- http: "Your browser only lets a secure page reach apps on this computer. Open Fuobe on the computer that runs ComfyUI, or give your ComfyUI a web address.",
+ phone: "A phone or tablet can't reach the ComfyUI on your computer from a website. Give your ComfyUI a web address below, and your runs reach it from here.",
+ safari:
+ "Safari doesn't let a website talk to programs on your Mac, so this page can't reach your ComfyUI. Give your ComfyUI a web address below, and it works from Safari. Chrome, Edge and Firefox allow this, so switching browser also works.",
+ http: "Your browser marks this page as not secure, so it doesn't let the page talk to programs on this computer, like ComfyUI. Give your ComfyUI a web address below, and it works from here.",
};
-/** The owner's second way is a ComfyUI at a server address (a cloud GPU, a tunnel), not an account's link. */
+/** The owner's way from here is a ComfyUI at a server address (a cloud GPU, a tunnel), shown below these words. */
const UNSUPPORTED_OWNER: Record<"safari" | "phone" | "http", string> = {
- phone: "Your phone can't run ComfyUI. Open Fuobe on your computer to use its ComfyUI, or use a ComfyUI on a server below.",
- safari: "Safari can't reach apps on this computer from a website. Open Fuobe in Chrome, Edge or Firefox to use your ComfyUI directly, or use a ComfyUI on a server below.",
- http: "Your browser only lets a secure page reach apps on this computer. Open the studio over https, or on the computer that runs ComfyUI, or use a ComfyUI on a server below.",
+ phone: "A phone or tablet can't reach the ComfyUI on your computer from a website. Use a ComfyUI on a server below, and your runs reach it from here.",
+ safari:
+ "Safari doesn't let a website talk to programs on your Mac, so this page can't reach your ComfyUI. Use a ComfyUI on a server below, and it works from Safari. Chrome, Edge and Firefox allow this, so switching browser also works.",
+ http: "Your browser marks this page as not secure, so it doesn't let the page talk to programs on this computer, like ComfyUI. Use a ComfyUI on a server below, or give this studio a secure address.",
};
export const unsupportedWords = (why: "safari" | "phone" | "http", owner = false) => (owner ? UNSUPPORTED_OWNER : UNSUPPORTED)[why];
diff --git a/tests/e2e/computer-mode.mjs b/tests/e2e/computer-mode.mjs
index 94bf2def..7492e232 100644
--- a/tests/e2e/computer-mode.mjs
+++ b/tests/e2e/computer-mode.mjs
@@ -448,7 +448,7 @@ try {
const iphone = "Mozilla/5.0 (iPhone; CPU iPhone OS 18_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.0 Mobile/15E148 Safari/604.1";
const { ctx, page } = await account("[email protected]", { viewport: { width: 390, height: 844 }, isMobile: true, hasTouch: true, userAgent: iphone });
await page.goto(`${SITE}/connect`, { waitUntil: "load" });
- const phone = await until(() => page.getByText("Your phone can't run ComfyUI.").first().isVisible(), 30_000);
+ const phone = await until(() => page.getByText("A phone or tablet can't reach the ComfyUI on your computer from a website.").first().isVisible(), 30_000);
check("a phone gets the link option, with why", !!phone && (await page.getByText(/public address/i).first().isVisible()));
check("…and only the tunnel steps: nothing looks for a ComfyUI on the phone", !(await page.getByText(/No ComfyUI answered|may ask to let this site reach/).first().isVisible().catch(() => false)) && ctx.loopback.length === 0, ctx.loopback.slice(0, 3).join(" "));
await page.screenshot({ path: path.join(shots, "6-phone.png") });
@@ -465,7 +465,7 @@ try {
// Safari has no navigator.userAgentData (Chromium keeps its own under another user agent).
await s.ctx.addInitScript(() => Object.defineProperty(Navigator.prototype, "userAgentData", { get: () => undefined }));
await s.page.goto(`${SITE}/connect`, { waitUntil: "load" });
- const sa = await until(() => s.page.getByText("Safari can't reach apps on this computer").first().isVisible(), 30_000);
+ const sa = await until(() => s.page.getByText("Safari doesn't let a website talk to programs on your Mac").first().isVisible(), 30_000);
check("Safari gets the link option, with why", !!sa);
await s.ctx.close();
}
diff --git a/tests/e2e/owner-computer.mjs b/tests/e2e/owner-computer.mjs
index a9786c36..58058f7d 100644
--- a/tests/e2e/owner-computer.mjs
+++ b/tests/e2e/owner-computer.mjs
@@ -345,7 +345,7 @@ async function hosted() {
await signIn(p, "owner");
await p.goto(`${SITE}/settings`, { waitUntil: "load" });
const s = p.locator("#comfyui");
- check("a phone: the phone line", !!(await until(() => s.getByText(/Your phone can't run ComfyUI\. .* or use a ComfyUI on a server below\./).isVisible(), 30_000)));
+ check("a phone: the phone line", !!(await until(() => s.getByText(/A phone or tablet can't reach the ComfyUI on your computer from a website\. Use a ComfyUI on a server below/).isVisible(), 30_000)));
check("a phone: the computer's state from the server", await s.getByText(/Your computer/).first().isVisible());
check("a phone: the server address right there", await s.getByRole("textbox", { name: "Server address" }).isVisible());
await s.scrollIntoViewIfNeeded();