diff --git a/backend/src/executors/amp.rs b/backend/src/executors/amp.rs index 7a602c3d..ce87fd04 100644 --- a/backend/src/executors/amp.rs +++ b/backend/src/executors/amp.rs @@ -41,12 +41,19 @@ impl Executor for AmpExecutor { let prompt = if let Some(task_description) = task.description { format!( - r#"Task title: {} + r#"project_id: {} + +Task title: {} Task description: {}"#, - task.title, task_description + task.project_id, task.title, task_description ) } else { - task.title.clone() + format!( + r#"project_id: {} + +Task title: {}"#, + task.project_id, task.title + ) }; // Use shell command for cross-platform compatibility diff --git a/backend/src/executors/claude.rs b/backend/src/executors/claude.rs index 5d8626b1..0f74ebf9 100644 --- a/backend/src/executors/claude.rs +++ b/backend/src/executors/claude.rs @@ -38,12 +38,19 @@ impl Executor for ClaudeExecutor { let prompt = if let Some(task_description) = task.description { format!( - r#"Task title: {} + r#"project_id: {} + +Task title: {} Task description: {}"#, - task.title, task_description + task.project_id, task.title, task_description ) } else { - task.title.clone() + format!( + r#"project_id: {} + +Task title: {}"#, + task.project_id, task.title + ) }; // Use shell command for cross-platform compatibility @@ -61,7 +68,8 @@ Task description: {}"#, .stderr(std::process::Stdio::piped()) .current_dir(worktree_path) .arg(shell_arg) - .arg(&claude_command); + .arg(&claude_command) + .env("NODE_NO_WARNINGS", "1"); let child = command .group_spawn() // Create new process group so we can kill entire tree @@ -261,7 +269,7 @@ impl ClaudeExecutor { fn make_path_relative(&self, path: &str, worktree_path: &str) -> String { let path_obj = Path::new(path); - tracing::info!("Making path relative: {} -> {}", path, worktree_path); + tracing::debug!("Making path relative: {} -> {}", path, worktree_path); // If path is already relative, return as is if path_obj.is_relative() { diff --git a/backend/src/executors/gemini.rs b/backend/src/executors/gemini.rs index d08a8592..5336367e 100644 --- a/backend/src/executors/gemini.rs +++ b/backend/src/executors/gemini.rs @@ -37,12 +37,19 @@ impl Executor for GeminiExecutor { let prompt = if let Some(task_description) = task.description { format!( - r#"Task title: {} + r#"project_id: {} + +Task title: {} Task description: {}"#, - task.title, task_description + task.project_id, task.title, task_description ) } else { - task.title.clone() + format!( + r#"project_id: {} + +Task title: {}"#, + task.project_id, task.title + ) }; // Use shell command for cross-platform compatibility diff --git a/backend/src/executors/opencode.rs b/backend/src/executors/opencode.rs index 903b02e6..4e4c31b9 100644 --- a/backend/src/executors/opencode.rs +++ b/backend/src/executors/opencode.rs @@ -36,12 +36,19 @@ impl Executor for OpencodeExecutor { let prompt = if let Some(task_description) = task.description { format!( - r#"Task title: {} + r#"project_id: {} + +Task title: {} Task description: {}"#, - task.title, task_description + task.project_id, task.title, task_description ) } else { - task.title.clone() + format!( + r#"project_id: {} + +Task title: {}"#, + task.project_id, task.title + ) }; // Use shell command for cross-platform compatibility