From 377ae6d8e6e39ef25b0abd184dcc2243fc7bbe29 Mon Sep 17 00:00:00 2001 From: xintaofei Date: Thu, 23 Apr 2026 11:45:25 +0800 Subject: [PATCH] fix(command-dropdown): preserve running command status across folder switches --- src/components/layout/command-dropdown.tsx | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/components/layout/command-dropdown.tsx b/src/components/layout/command-dropdown.tsx index 5448cd3..65d9507 100644 --- a/src/components/layout/command-dropdown.tsx +++ b/src/components/layout/command-dropdown.tsx @@ -110,11 +110,9 @@ export function CommandDropdown() { useEffect(() => { if (!folderId) { setSelectedCommandIdState(null) - setRunningCommandTerminals({}) return } setSelectedCommandIdState(getSelectedCommandId(folderId)) - setRunningCommandTerminals({}) }, [folderId]) const refreshCommands = useCallback(async () => {