diff --git a/apps/frontend/src/main/ipc-handlers/task/execution-handlers.ts b/apps/frontend/src/main/ipc-handlers/task/execution-handlers.ts index 46c93557..3cd68bbd 100644 --- a/apps/frontend/src/main/ipc-handlers/task/execution-handlers.ts +++ b/apps/frontend/src/main/ipc-handlers/task/execution-handlers.ts @@ -210,7 +210,7 @@ export function registerTaskExecutionHandlers( // Start spec creation process - pass the existing spec directory // so spec_runner uses it instead of creating a new one // Also pass baseBranch so worktrees are created from the correct branch - agentManager.startSpecCreation(task.specId, project.path, taskDescription, specDir, task.metadata, baseBranch); + agentManager.startSpecCreation(taskId, project.path, taskDescription, specDir, task.metadata, baseBranch); } else if (needsImplementation) { // Spec exists but no subtasks - run run.py to create implementation plan and execute // Read the spec.md to get the task description @@ -783,7 +783,7 @@ export function registerTaskExecutionHandlers( // No spec file - need to run spec_runner.py to create the spec const taskDescription = task.description || task.title; console.warn('[TASK_UPDATE_STATUS] Starting spec creation for:', task.specId); - agentManager.startSpecCreation(task.specId, project.path, taskDescription, specDir, task.metadata, baseBranchForUpdate); + agentManager.startSpecCreation(taskId, project.path, taskDescription, specDir, task.metadata, baseBranchForUpdate); } else if (needsImplementation) { // Spec exists but no subtasks - run run.py to create implementation plan and execute console.warn('[TASK_UPDATE_STATUS] Starting task execution (no subtasks) for:', task.specId); @@ -1163,7 +1163,7 @@ export function registerTaskExecutionHandlers( // No spec file - need to run spec_runner.py to create the spec const taskDescription = task.description || task.title; console.warn(`[Recovery] Starting spec creation for: ${task.specId}`); - agentManager.startSpecCreation(task.specId, project.path, taskDescription, specDirForWatcher, task.metadata, baseBranchForRecovery); + agentManager.startSpecCreation(taskId, project.path, taskDescription, specDirForWatcher, task.metadata, baseBranchForRecovery); } else { // Spec exists - run task execution console.warn(`[Recovery] Starting task execution for: ${task.specId}`);