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]);