diff --git a/apps/web/app/components/workspace/empty-state.tsx b/apps/web/app/components/workspace/empty-state.tsx index 484abf35712..c4311883375 100644 --- a/apps/web/app/components/workspace/empty-state.tsx +++ b/apps/web/app/components/workspace/empty-state.tsx @@ -1,21 +1,20 @@ "use client"; -import { useState } from "react"; -import { CreateWorkspaceDialog } from "./create-workspace-dialog"; +function shortenPath(p: string): string { + return p + .replace(/^\/Users\/[^/]+/, "~") + .replace(/^\/home\/[^/]+/, "~") + .replace(/^[A-Za-z]:[/\\]Users[/\\][^/\\]+/, "~"); +} export function EmptyState({ workspaceExists, expectedPath, - onWorkspaceCreated, }: { workspaceExists: boolean; /** The resolved workspace path to display (e.g. from the tree API). */ expectedPath?: string | null; - /** Called after a workspace is created from this empty state. */ - onWorkspaceCreated?: () => void; }) { - const [showCreate, setShowCreate] = useState(false); - return (
{/* Icon */} @@ -90,31 +89,14 @@ export function EmptyState({ ) : ( <> The workspace directory was not - found. Create one to get started, or start a + found. Run the ironclaw bootstrap flow or start a conversation and the agent will set it up - automatically. + automatically in the managed profile. )}

- {/* Create workspace button — prominent when no workspace exists */} - {!workspaceExists && ( - - )} - {/* Hint */}
{expectedPath - ? expectedPath.replace(/^\/Users\/[^/]+/, "~") + ? shortenPath(expectedPath) : "~/.openclaw/workspace"} @@ -180,13 +162,6 @@ export function EmptyState({ Back to Home - - {/* Create workspace dialog */} - setShowCreate(false)} - onCreated={onWorkspaceCreated} - />
); }