From 60524bad0e6a6404a0f7e44aba374afa0411a1c5 Mon Sep 17 00:00:00 2001 From: "tao.chen" <93983997+taochen-ct@users.noreply.github.com> Date: Fri, 3 Jul 2026 16:00:58 +0800 Subject: [PATCH] fix(web): show toolbar and status bar when no workspace selected Co-Authored-By: Claude --- web/src/components/layout/WorkspaceShell.tsx | 80 +++++++++++--------- web/src/pages/workspace/WorkspacePage.tsx | 11 --- 2 files changed, 45 insertions(+), 46 deletions(-) diff --git a/web/src/components/layout/WorkspaceShell.tsx b/web/src/components/layout/WorkspaceShell.tsx index 19792ee..ce41e8b 100644 --- a/web/src/components/layout/WorkspaceShell.tsx +++ b/web/src/components/layout/WorkspaceShell.tsx @@ -19,7 +19,7 @@ import { } from "@/lib/api/process"; interface WorkspaceShellProps { - workspaceId: string; + workspaceId: string | null; } export function WorkspaceShell({ workspaceId }: WorkspaceShellProps) { @@ -75,7 +75,7 @@ export function WorkspaceShell({ workspaceId }: WorkspaceShellProps) { variant="ghost" size="sm" className="h-7 px-2 text-xs" - onClick={() => start.mutate(workspaceId)} + onClick={() => workspaceId && start.mutate(workspaceId)} disabled={!workspaceId || statusUnknown || isRunning || start.isPending} >