Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

feat(spaces): Run an agent here when the first Space is ready, teleport explainer, Skip on first run (CUA-1915, CUA-1917) (#5550)

Francesco Bonacci5e6b6a3840b5
diff --git a/apps/cua-spaces-web/src/bridge/first-run.ts b/apps/cua-spaces-web/src/bridge/first-run.ts
index 6e722143db..df41b8ac89 100644
--- a/apps/cua-spaces-web/src/bridge/first-run.ts
+++ b/apps/cua-spaces-web/src/bridge/first-run.ts
@@ -87,7 +87,7 @@ function fallbackView(input: FirstRunInput): FirstRunView {
if (input.step === "connect") {
return {
step: "connect",
- later: "Set up later",
+ later: "Skip for now",
connect: {
title: "A shared Space for every agent.",
accent: "agent",
@@ -111,7 +111,7 @@ function fallbackView(input: FirstRunInput): FirstRunView {
const ok = input.signedIn && Boolean(input.host?.configured);
return {
step: "setup",
- later: "Set up later",
+ later: "Skip for now",
connect: null,
setup: {
title: ok ? `Your agent can use ${place}.` : "Checking your setup.",
diff --git a/apps/cua-spaces-web/src/components/__tests__/first-space-ready.test.tsx b/apps/cua-spaces-web/src/components/__tests__/first-space-ready.test.tsx
new file mode 100644
index 0000000000..08fcab180b
--- /dev/null
+++ b/apps/cua-spaces-web/src/components/__tests__/first-space-ready.test.tsx
@@ -0,0 +1,82 @@
+// SPDX-License-Identifier: FSL-1.1-MIT
+// Copyright (c) 2026 Cua AI, Inc.
+
+import { cleanup, fireEvent, render, screen, waitFor } from "@testing-library/react";
+import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
+
+import type { AgentSetupRow, Space } from "@/bridge";
+import { RunAgentDialog, runAgentPrompt } from "@/components/agents/run-agent-dialog";
+import { SpaceReadyCard } from "@/components/space-ready-card";
+import { EXPLAINED_KEY, needsExplainer, TeleportExplainer } from "@/components/teleport/explainer";
+
+const nav = vi.fn();
+let rows: AgentSetupRow[] = [];
+const configureAgents = vi.fn(async () => rows);
+
+vi.mock("@tanstack/react-router", () => ({ useNavigate: () => nav }));
+vi.mock("@/bridge", async (orig) => ({
+ ...(await orig<typeof import("@/bridge")>()),
+ useAgents: () => ({ agentSetup: async () => rows, configureAgents }),
+}));
+
+const space = { id: "s1", name: "Research" } as Space;
+const row = (over: Partial<AgentSetupRow>): AgentSetupRow => ({ agent: "claude-code", name: "Claude Code", installed: true, configured: false, ...over }) as AgentSetupRow;
+
+beforeEach(() => {
+ nav.mockReset();
+ configureAgents.mockClear();
+ localStorage.clear();
+});
+afterEach(cleanup);
+
+describe("SpaceReadyCard", () => {
+ it("has one primary action, Run an agent here", () => {
+ const onRun = vi.fn();
+ render(<SpaceReadyCard space={space} onRun={onRun} />);
+ expect(screen.getAllByRole("button")).toHaveLength(1);
+ fireEvent.click(screen.getByRole("button", { name: "Run an agent here" }));
+ expect(onRun).toHaveBeenCalledOnce();
+ });
+});
+
+describe("RunAgentDialog", () => {
+ it("shows the request to paste when an agent is connected", async () => {
+ rows = [row({ configured: true })];
+ render(<RunAgentDialog open space={space} onOpenChange={() => {}} />);
+ expect((await screen.findByText(runAgentPrompt("Research"))).hasAttribute("data-run-agent-prompt")).toBe(true);
+ fireEvent.click(screen.getByRole("button", { name: "Copy and see Agents" }));
+ expect(nav).toHaveBeenCalledWith({ to: "/agents" });
+ });
+
+ it("sets an agent up inline when none is connected, then shows the request", async () => {
+ rows = [row({})];
+ configureAgents.mockImplementationOnce(async () => (rows = [row({ configured: true })]));
+ render(<RunAgentDialog open space={space} onOpenChange={() => {}} />);
+ fireEvent.click(await screen.findByRole("button", { name: "Connect Claude Code" }));
+ await waitFor(() => expect(screen.getByText(runAgentPrompt("Research"))).toBeTruthy());
+ expect(configureAgents).toHaveBeenCalledOnce();
+ });
+
+ it("says so when no agent is installed", async () => {
+ rows = [];
+ render(<RunAgentDialog open space={space} onOpenChange={() => {}} onManual={() => {}} />);
+ expect(await screen.findByRole("button", { name: "Show me how" })).toBeTruthy();
+ });
+});
+
+describe("Teleport explainer", () => {
+ it("explains teleport and the Mac's permission prompt in plain words", () => {
+ render(<TeleportExplainer />);
+ const text = screen.getByText(/Your Mac will ask for permission/).closest("p")?.textContent ?? "";
+ expect(text).toMatch(/Keychain/);
+ expect(document.body.textContent).not.toMatch(/relay|MCP|\bhost\b|machine/i);
+ });
+
+ it("shows once on a Mac, never elsewhere", () => {
+ const mac = vi.spyOn(globalThis.navigator, "platform", "get").mockReturnValue("MacIntel");
+ expect(needsExplainer()).toBe(true);
+ localStorage.setItem(EXPLAINED_KEY, "1");
+ expect(needsExplainer()).toBe(false);
+ mac.mockRestore();
+ });
+});
diff --git a/apps/cua-spaces-web/src/components/agents/run-agent-dialog.tsx b/apps/cua-spaces-web/src/components/agents/run-agent-dialog.tsx
new file mode 100644
index 0000000000..9e1398dd24
--- /dev/null
+++ b/apps/cua-spaces-web/src/components/agents/run-agent-dialog.tsx
@@ -0,0 +1,148 @@
+// SPDX-License-Identifier: FSL-1.1-MIT
+// Copyright (c) 2026 Cua AI, Inc.
+
+import { useNavigate } from "@tanstack/react-router";
+import { CheckIcon, CopyIcon } from "lucide-react";
+import { useEffect, useState } from "react";
+
+import { useAgents, type AgentSetupRow, type Space } from "@/bridge";
+import { Button } from "@/components/ui/button";
+import { Dialog, DialogDescription, DialogPopup, DialogTitle } from "@/components/ui/dialog";
+import { toast } from "@/components/ui/toast";
+
+/** What to ask the agent: one request that works in a Space with nothing else set up. */
+export const runAgentPrompt = (spaceName: string) => `Open the Cua Space "${spaceName}" and tell me what's on its screen.`;
+
+/**
+ * "Run an agent here": the shortest way from a ready Space to an agent
+ * working in it. If a coding agent on this computer already works with Cua,
+ * it shows the one request to paste into it. If not, it sets one up here
+ * first (one button) and then shows the request. The agent's work shows up
+ * on the Agents page.
+ */
+export function RunAgentDialog({ open, space, onOpenChange, onManual }: { open: boolean; space: Space; onOpenChange: (open: boolean) => void; onManual?: () => void }) {
+ const { agentSetup, configureAgents } = useAgents();
+ const navigate = useNavigate();
+ const [rows, setRows] = useState<AgentSetupRow[] | null>(null);
+ const [busy, setBusy] = useState(false);
+ const [copied, setCopied] = useState(false);
+
+ useEffect(() => {
+ if (!open) return;
+ let live = true;
+ setRows(null);
+ agentSetup().then(
+ (r) => live && setRows(r),
+ () => live && setRows([]),
+ );
+ return () => {
+ live = false;
+ };
+ // eslint-disable-next-line react-hooks/exhaustive-deps
+ }, [open]);
+
+ const ready = (rows ?? []).filter((r) => r.installed && r.configured);
+ const pending = (rows ?? []).filter((r) => r.installed && !r.configured);
+ const prompt = runAgentPrompt(space.name);
+ const first = ready[0];
+ const toSet = pending[0];
+
+ const setUp = () => {
+ setBusy(true);
+ configureAgents()
+ .then(setRows)
+ .catch((e: unknown) => toast("Couldn't connect your agent", { description: e instanceof Error ? e.message : String(e) }))
+ .finally(() => setBusy(false));
+ };
+ const copy = () => {
+ void navigator.clipboard?.writeText(prompt).then(() => {
+ setCopied(true);
+ setTimeout(() => setCopied(false), 1500);
+ });
+ };
+
+ return (
+ <Dialog open={open} onOpenChange={onOpenChange}>
+ <DialogPopup data-run-agent={rows === null ? "loading" : ready.length ? "ready" : "setup"} className="top-[12vh] w-[min(520px,calc(100vw-2rem))] bg-popover">
+ <div className="px-6 pt-5 pb-6">
+ <DialogTitle className="text-[15px] font-semibold">Run an agent in {space.name}</DialogTitle>
+ {rows === null ? (
+ <DialogDescription className="mt-3 text-[13px] text-muted-foreground">Looking for your agents…</DialogDescription>
+ ) : first ? (
+ <>
+ <DialogDescription className="mt-1.5 text-[13px] leading-relaxed text-muted-foreground">
+ {first.name} is connected. Open it, paste this, and watch it work in {space.name}.
+ </DialogDescription>
+ <div className="mt-4 flex items-start gap-2 rounded-lg border bg-muted/40 py-2 pr-1 pl-3">
+ <p className="min-w-0 flex-1 py-1 text-[13px] leading-relaxed" data-run-agent-prompt="">
+ {prompt}
+ </p>
+ <Button size="icon-sm" variant="ghost" aria-label="Copy" onClick={copy}>
+ {copied ? <CheckIcon className="size-3.5" /> : <CopyIcon className="size-3.5" />}
+ </Button>
+ </div>
+ <p className="mt-3 text-xs text-muted-foreground">If {first.name} was already open, restart it first so it can see Cua.</p>
+ <div className="mt-5 flex justify-end gap-2">
+ <Button variant="outline" onClick={() => onOpenChange(false)}>
+ Close
+ </Button>
+ <Button
+ data-run-agent-watch=""
+ onClick={() => {
+ copy();
+ onOpenChange(false);
+ void navigate({ to: "/agents" });
+ }}
+ >
+ Copy and see Agents
+ </Button>
+ </div>
+ </>
+ ) : toSet ? (
+ <>
+ <DialogDescription className="mt-1.5 text-[13px] leading-relaxed text-muted-foreground">
+ To let an agent work in {space.name}, connect it to Cua first. This takes a few seconds and changes nothing else about {toSet.name}.
+ </DialogDescription>
+ <ul className="mt-4 divide-y rounded-lg border">
+ {pending.map((r) => (
+ <li key={r.agent} className="px-3 py-2 text-[13px]">
+ {r.name}
+ </li>
+ ))}
+ </ul>
+ <div className="mt-5 flex justify-end gap-2">
+ <Button variant="outline" onClick={() => onOpenChange(false)}>
+ Not now
+ </Button>
+ <Button data-run-agent-setup="" disabled={busy} onClick={setUp}>
+ {busy ? "Connecting…" : pending.length === 1 ? `Connect ${toSet.name}` : "Connect these agents"}
+ </Button>
+ </div>
+ </>
+ ) : (
+ <>
+ <DialogDescription className="mt-1.5 text-[13px] leading-relaxed text-muted-foreground">
+ We couldn't find an agent such as Claude Code or Codex on this computer. Install one, then come back here. Or connect one by hand.
+ </DialogDescription>
+ <div className="mt-5 flex justify-end gap-2">
+ <Button variant="outline" onClick={() => onOpenChange(false)}>
+ Close
+ </Button>
+ {onManual ? (
+ <Button
+ onClick={() => {
+ onOpenChange(false);
+ onManual();
+ }}
+ >
+ Show me how
+ </Button>
+ ) : null}
+ </div>
+ </>
+ )}
+ </div>
+ </DialogPopup>
+ </Dialog>
+ );
+}
diff --git a/apps/cua-spaces-web/src/components/getting-started.tsx b/apps/cua-spaces-web/src/components/getting-started.tsx
index 5c16b5facb..1b1c42dabe 100644
--- a/apps/cua-spaces-web/src/components/getting-started.tsx
+++ b/apps/cua-spaces-web/src/components/getting-started.tsx
@@ -53,7 +53,11 @@ function spaceFor(spaces: Space[], offers: (space: Space) => boolean | undefined
return { offered };
}
-export function GettingStarted() {
+/** With a Space ready, the order that leads somewhere: run an agent in it first; Add computer and Share last. */
+const READY_ORDER: ChecklistStep[] = ["run_agent", "create_space", "teleport", "add_machine", "share"];
+
+/** `onRunAgent`: the Space is ready, so Run an agent opens "Run an agent here" and leads the list. */
+export function GettingStarted({ onRunAgent }: { onRunAgent?: () => void } = {}) {
const { view, shown, dismiss } = useChecklist();
const navigate = useNavigate();
const newSpace = useNewSpace();
@@ -102,9 +106,10 @@ export function GettingStarted() {
case "share":
return onSpace("share", (space) => share.open(space, session?.signedIn ?? false), "Share");
case "run_agent":
- return void navigate({ to: "/agents" });
+ return onRunAgent ? onRunAgent() : void navigate({ to: "/agents" });
}
};
+ const rows = onRunAgent ? [...view.rows].sort((a, b) => READY_ORDER.indexOf(a.step) - READY_ORDER.indexOf(b.step)) : view.rows;
return (
<section data-checklist="" aria-labelledby="checklist-title" className="mb-6 rounded-xl border bg-card shadow-xs">
@@ -123,7 +128,7 @@ export function GettingStarted() {
</Button>
</header>
<ol className="divide-y border-t">
- {view.rows.map(({ step, title, detail, action, done }) => (
+ {rows.map(({ step, title, detail, action, done }) => (
<li key={step} data-checklist-step={step} data-done={done || undefined} className="flex items-center gap-3 px-4 py-2.5">
<span
aria-hidden
diff --git a/apps/cua-spaces-web/src/components/space-ready-card.tsx b/apps/cua-spaces-web/src/components/space-ready-card.tsx
new file mode 100644
index 0000000000..d8b1b7dc35
--- /dev/null
+++ b/apps/cua-spaces-web/src/components/space-ready-card.tsx
@@ -0,0 +1,30 @@
+// SPDX-License-Identifier: FSL-1.1-MIT
+// Copyright (c) 2026 Cua AI, Inc.
+
+import { BotIcon } from "lucide-react";
+
+import type { Space } from "@/bridge";
+import { Button } from "@/components/ui/button";
+
+/**
+ * The moment a user's first Space is ready: one thing to do next, "Run an
+ * agent here". Add computer and Share stay in the checklist below it.
+ */
+export function SpaceReadyCard({ space, onRun }: { space: Space; onRun: () => void }) {
+ return (
+ <section data-space-ready="" aria-labelledby="space-ready-title" className="mb-6 flex items-center gap-4 rounded-xl border bg-card px-5 py-4 shadow-xs">
+ <span aria-hidden className="flex size-10 shrink-0 items-center justify-center rounded-[10px] bg-brand/10 text-brand">
+ <BotIcon className="size-5" />
+ </span>
+ <div className="min-w-0 flex-1">
+ <h2 id="space-ready-title" className="text-[14px] font-semibold">
+ {space.name} is ready
+ </h2>
+ <p className="mt-0.5 text-xs text-muted-foreground">Give an agent a task and watch it work on this computer.</p>
+ </div>
+ <Button data-space-ready-run="" onClick={onRun}>
+ Run an agent here
+ </Button>
+ </section>
+ );
+}
diff --git a/apps/cua-spaces-web/src/components/teleport/explainer.tsx b/apps/cua-spaces-web/src/components/teleport/explainer.tsx
new file mode 100644
index 0000000000..c0f7db9aa2
--- /dev/null
+++ b/apps/cua-spaces-web/src/components/teleport/explainer.tsx
@@ -0,0 +1,41 @@
+// SPDX-License-Identifier: FSL-1.1-MIT
+// Copyright (c) 2026 Cua AI, Inc.
+
+import { hostOs } from "@/lib/host-labels";
+
+export const EXPLAINED_KEY = "cua.teleport.explained";
+
+/** The explainer shows once, on a Mac, before the first run (macOS asks for permission during it). */
+export function needsExplainer(): boolean {
+ if (hostOs() !== "macos") return false;
+ try {
+ return localStorage.getItem(EXPLAINED_KEY) !== "1";
+ } catch {
+ return true;
+ }
+}
+
+export function markExplained() {
+ try {
+ localStorage.setItem(EXPLAINED_KEY, "1");
+ } catch {
+ // Nothing to remember it in: it shows again next time.
+ }
+}
+
+/** What teleport does and why the Mac asks, in plain words, before the prompt. */
+export function TeleportExplainer() {
+ return (
+ <div className="space-y-4 px-5 pb-4 text-[13px] leading-relaxed" data-teleport-explainer>
+ <p>
+ <strong className="font-semibold">Teleport copies an app from your Mac to the Space, so you don't have to sign in again there.</strong> An agent working in the
+ Space can then use the app as you.
+ </p>
+ <p>
+ <strong className="font-semibold">Your Mac will ask for permission next.</strong> It may say an app wants to use confidential information stored in your Keychain.
+ That is where your Mac keeps your saved sign-ins. Choose Allow so Cua can read the ones you picked.
+ </p>
+ <p className="text-muted-foreground">Only what you ticked on the last screen is copied. If you say no, the app still arrives, but signed out.</p>
+ </div>
+ );
+}
diff --git a/apps/cua-spaces-web/src/components/teleport/teleport-dialog.tsx b/apps/cua-spaces-web/src/components/teleport/teleport-dialog.tsx
index 360db0c5f3..fe756a72af 100644
--- a/apps/cua-spaces-web/src/components/teleport/teleport-dialog.tsx
+++ b/apps/cua-spaces-web/src/components/teleport/teleport-dialog.tsx
@@ -4,7 +4,7 @@
import { Radio } from "@base-ui/react/radio";
import { RadioGroup } from "@base-ui/react/radio-group";
import { LoaderCircleIcon, SearchIcon } from "lucide-react";
-import type { ReactNode } from "react";
+import { useEffect, useState, type ReactNode } from "react";
import { useFeatureRecorded, useTeleport, type PickerState, type TeleportMove, type TeleportSession, type TeleportStore } from "@/bridge";
import { Button } from "@/components/ui/button";
@@ -14,6 +14,7 @@ import { Input } from "@/components/ui/input";
import { leavesLine } from "@/lib/host-labels";
import { Segmented } from "@/components/ui/segmented";
+import { markExplained, needsExplainer, TeleportExplainer } from "./explainer";
import { TeleportGrid } from "./grid";
import { TeleportReview } from "./review";
@@ -33,7 +34,18 @@ export const MOVE_LABEL: Record<TeleportMove, string> = {
export default function TeleportDialog() {
const { session, images, teleport } = useTeleport();
useFeatureRecorded("teleport_app_picker", Boolean(session));
+ const [explaining, setExplaining] = useState(false);
+ const step = session?.state.step;
+ useEffect(() => {
+ if (step !== "consent") setExplaining(false);
+ }, [step]);
if (!session || !teleport) return null;
+ /** Teleport on the review: the first time on a Mac, the explainer comes before the run (and the prompts it brings). */
+ const confirm = () => {
+ if (!explaining && needsExplainer()) return setExplaining(true);
+ markExplained();
+ void teleport.confirm();
+ };
return (
<Dialog open onOpenChange={(open) => !open && teleport.close()}>
<DialogPopup
@@ -45,9 +57,9 @@ export default function TeleportDialog() {
{title(session)}
</DialogTitle>
<div className="min-h-0 flex-1 overflow-y-auto">
- <Body session={session} teleport={teleport} images={images} />
+ {explaining ? <TeleportExplainer /> : <Body session={session} teleport={teleport} images={images} />}
</div>
- <Footer session={session} teleport={teleport} />
+ <Footer session={session} teleport={teleport} explaining={explaining} onBack={() => setExplaining(false)} onConfirm={confirm} />
</DialogPopup>
</Dialog>
);
@@ -205,9 +217,21 @@ function Running({ session: s }: { session: TeleportSession }) {
);
}
-function Footer({ session: s, teleport }: { session: TeleportSession; teleport: TeleportStore }) {
+function Footer({
+ session: s,
+ teleport,
+ explaining,
+ onBack,
+ onConfirm,
+}: {
+ session: TeleportSession;
+ teleport: TeleportStore;
+ explaining: boolean;
+ onBack: () => void;
+ onConfirm: () => void;
+}) {
const step = s.state.step;
- const leaves = step === "consent" ? leavesLine(s.frame.review?.leavesText ?? "") : null;
+ const leaves = step === "consent" && !explaining ? leavesLine(s.frame.review?.leavesText ?? "") : null;
return (
<div className="flex shrink-0 items-center gap-2 border-t bg-muted/60 px-5 py-3">
{leaves ? (
@@ -236,11 +260,11 @@ function Footer({ session: s, teleport }: { session: TeleportSession; teleport:
</>
) : step === "consent" ? (
<>
- <Button variant="outline" onClick={() => teleport.send({ type: "back" })}>
+ <Button variant="outline" onClick={() => (explaining ? onBack() : teleport.send({ type: "back" }))}>
Back
</Button>
- <Button data-teleport-confirm disabled={!s.frame.review?.canConfirm} onClick={() => void teleport.confirm()}>
- Teleport
+ <Button data-teleport-confirm disabled={!s.frame.review?.canConfirm} onClick={onConfirm}>
+ {explaining ? "Continue" : "Teleport"}
</Button>
</>
) : step === "error" ? (
diff --git a/apps/cua-spaces-web/src/routes/spaces/index.tsx b/apps/cua-spaces-web/src/routes/spaces/index.tsx
index dd35e64b02..80684deb77 100644
--- a/apps/cua-spaces-web/src/routes/spaces/index.tsx
+++ b/apps/cua-spaces-web/src/routes/spaces/index.tsx
@@ -5,9 +5,12 @@ import { createFileRoute, Link } from "@tanstack/react-router";
import { ArrowDownCircleIcon, KeyRoundIcon, LoaderCircleIcon, MonitorIcon, PlusIcon, PowerIcon, SearchIcon } from "lucide-react";
import { useEffect, useRef, useState, type DragEvent } from "react";
-import { emptyHome, spaceResources, useBridge, useResources, useFirstSpaceOffers, useMachines, useNewSpaceWizard, useSpaceAccess, useSpaceFiles, useSpaces, useSpaceThumbnail, useWindowDropTarget, type Space, type SpaceResources } from "@/bridge";
+import { emptyHome, spaceResources, useAgents, useBridge, useChecklist, useResources, useFirstSpaceOffers, useMachines, useNewSpaceWizard, useSpaceAccess, useSpaceFiles, useSpaces, useSpaceThumbnail, useWindowDropTarget, type Space, type SpaceResources } from "@/bridge";
import { EmptyHome } from "@/components/empty-home";
+import { ConnectAgentDialog } from "@/components/agents/connect-dialog";
+import { RunAgentDialog } from "@/components/agents/run-agent-dialog";
import { GettingStarted } from "@/components/getting-started";
+import { SpaceReadyCard } from "@/components/space-ready-card";
import { FirstRunTodosCard, useFirstRunTodosShown } from "@/components/first-run-todos";
import { OsIcon } from "@/components/os-icon";
import { EmptyState, Page, PageHeader } from "@/components/page";
@@ -63,6 +66,14 @@ function SpacesPage() {
const running = spaces.filter((s) => spaceState(s) === "running").length;
// After the first run's Finish later, its to-do list stands in for the checklist.
const firstRunTodos = useFirstRunTodosShown();
+ // The first Space is ready and no agent has worked in it yet: one action, "Run an agent here".
+ const { state: checklist } = useChecklist();
+ const { data: agents } = useAgents();
+ const readySpace = spaces.find((s) => spaceState(s) === "running");
+ const agentRan = checklist.done.run_agent || (agents?.runs.length ?? 0) > 0 || (agents?.agents.length ?? 0) > 0;
+ const runHere = readySpace && !agentRan ? readySpace : undefined;
+ const [runOpen, setRunOpen] = useState(false);
+ const [connectOpen, setConnectOpen] = useState(false);
return (
<Page>
@@ -76,7 +87,14 @@ function SpacesPage() {
}
/>
<FirstRunTodosCard />
- {firstRunTodos ? null : <GettingStarted />}
+ {runHere ? <SpaceReadyCard space={runHere} onRun={() => setRunOpen(true)} /> : null}
+ {firstRunTodos ? null : <GettingStarted onRunAgent={runHere ? () => setRunOpen(true) : undefined} />}
+ {readySpace ? (
+ <>
+ <RunAgentDialog open={runOpen} space={readySpace} onOpenChange={setRunOpen} onManual={() => setConnectOpen(true)} />
+ <ConnectAgentDialog open={connectOpen} onOpenChange={setConnectOpen} />
+ </>
+ ) : null}
<ComputersResources snapshot={resources} machines={machines} />
{sort === "size" ? (
<p data-sorted-by-size="" className="mb-3 flex items-center gap-2 px-1 text-xs text-muted-foreground">
diff --git a/libs/cua/crates/cua-spaces-app-core/src/first_run.rs b/libs/cua/crates/cua-spaces-app-core/src/first_run.rs
index bce555139c..5e4ae50107 100644
--- a/libs/cua/crates/cua-spaces-app-core/src/first_run.rs
+++ b/libs/cua/crates/cua-spaces-app-core/src/first_run.rs
@@ -357,7 +357,7 @@ pub struct SetupView {
#[serde(rename_all = "camelCase")]
pub struct FirstRunView {
pub step: FirstRunStep,
- /// "Set up later" (top right, both screens).
+ /// "Skip for now" (top right, both screens).
pub later: String,
pub connect: Option<ConnectView>,
pub setup: Option<SetupView>,
@@ -873,7 +873,7 @@ pub fn view(input: &FirstRunInput) -> FirstRunView {
let agent = agent_row(input);
let computer = computer_row(input);
let art = art(input, &computer);
- let later = "Set up later".to_string();
+ let later = "Skip for now".to_string();
if input.step == FirstRunStep::Connect {
return FirstRunView {
step: FirstRunStep::Connect,