diff --git a/apps/frontend/src/main/ipc-handlers/claude-code-handlers.ts b/apps/frontend/src/main/ipc-handlers/claude-code-handlers.ts index e257bd63..81013500 100644 --- a/apps/frontend/src/main/ipc-handlers/claude-code-handlers.ts +++ b/apps/frontend/src/main/ipc-handlers/claude-code-handlers.ts @@ -8,7 +8,7 @@ */ import { ipcMain } from 'electron'; -import { execFileSync, spawn, execFile } from 'child_process'; +import { exec, execFileSync, spawn, execFile } from 'child_process'; import { existsSync, promises as fsPromises } from 'fs'; import path from 'path'; import os from 'os'; @@ -502,8 +502,6 @@ export async function openTerminalWithCommand(command: string): Promise { // For Windows, use exec with a properly formed command string // This is more reliable than spawn for complex PowerShell commands with pipes - const { exec } = require('child_process'); - const runWindowsCommand = (cmdString: string): Promise => { return new Promise((resolve) => { console.log(`[Claude Code] Executing: ${cmdString}`);