From ac4fe4f423019e0626073f307e77cbc6616f4bc2 Mon Sep 17 00:00:00 2001 From: Andy <119136210+AndyMik90@users.noreply.github.com> Date: Fri, 6 Feb 2026 18:21:37 +0100 Subject: [PATCH] fix(terminal): use each terminal's cwd for invoke Claude all button (#1756) The "Invoke Claude All" button was passing projectPath (project root) to every terminal instead of respecting each terminal's current working directory. Now uses terminal.cwd with projectPath as fallback, matching the single-terminal invoke button behavior. Co-authored-by: Test User Co-authored-by: Claude Opus 4.6 --- apps/frontend/src/renderer/components/TerminalGrid.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/frontend/src/renderer/components/TerminalGrid.tsx b/apps/frontend/src/renderer/components/TerminalGrid.tsx index 4f17af1f..ac5d70bb 100644 --- a/apps/frontend/src/renderer/components/TerminalGrid.tsx +++ b/apps/frontend/src/renderer/components/TerminalGrid.tsx @@ -263,7 +263,7 @@ export function TerminalGrid({ projectPath, onNewTaskClick, isActive = false }: terminals.forEach((terminal) => { if (terminal.status === 'running' && !terminal.isClaudeMode) { setClaudeMode(terminal.id, true); - window.electronAPI.invokeClaudeInTerminal(terminal.id, projectPath); + window.electronAPI.invokeClaudeInTerminal(terminal.id, terminal.cwd || projectPath); } }); }, [terminals, setClaudeMode, projectPath]);