From 6f043959d4b956a1b0743e660c748f5a7d2c8dec Mon Sep 17 00:00:00 2001 From: Peter Kirkham Date: Tue, 2 Jun 2026 11:57:27 +0100 Subject: [PATCH 1/4] Remove "Stop All" button from command center toolbar Generated-By: PostHog Code Task-Id: 9b8fb3a5-83c9-4ca0-9a49-274c18e45792 --- .../components/CommandCenterToolbar.tsx | 38 +------------------ .../components/CommandCenterView.tsx | 2 +- 2 files changed, 3 insertions(+), 37 deletions(-) diff --git a/apps/code/src/renderer/features/command-center/components/CommandCenterToolbar.tsx b/apps/code/src/renderer/features/command-center/components/CommandCenterToolbar.tsx index a6bd878d18..42b798c413 100644 --- a/apps/code/src/renderer/features/command-center/components/CommandCenterToolbar.tsx +++ b/apps/code/src/renderer/features/command-center/components/CommandCenterToolbar.tsx @@ -1,15 +1,10 @@ -import { getSessionService } from "@features/sessions/service/service"; import { MagnifyingGlassMinus, MagnifyingGlassPlus, - Stop, Trash, } from "@phosphor-icons/react"; import { Flex, Select, Text } from "@radix-ui/themes"; -import type { - CommandCenterCellData, - StatusSummary, -} from "../hooks/useCommandCenterData"; +import type { StatusSummary } from "../hooks/useCommandCenterData"; import { type LayoutPreset, useCommandCenterStore, @@ -68,7 +63,6 @@ const LAYOUT_OPTIONS: { interface CommandCenterToolbarProps { summary: StatusSummary; - cells: CommandCenterCellData[]; } function StatusSummaryText({ summary }: { summary: StatusSummary }) { @@ -85,10 +79,7 @@ function StatusSummaryText({ summary }: { summary: StatusSummary }) { ); } -export function CommandCenterToolbar({ - summary, - cells, -}: CommandCenterToolbarProps) { +export function CommandCenterToolbar({ summary }: CommandCenterToolbarProps) { const layout = useCommandCenterStore((s) => s.layout); const setLayout = useCommandCenterStore((s) => s.setLayout); const clearAll = useCommandCenterStore((s) => s.clearAll); @@ -96,20 +87,6 @@ export function CommandCenterToolbar({ const zoomIn = useCommandCenterStore((s) => s.zoomIn); const zoomOut = useCommandCenterStore((s) => s.zoomOut); - const hasActiveAgents = summary.running > 0 || summary.waiting > 0; - - const stopAll = () => { - const service = getSessionService(); - for (const cell of cells) { - if ( - cell.taskId && - (cell.status === "running" || cell.status === "waiting") - ) { - service.cancelPrompt(cell.taskId); - } - } - }; - return ( - -