Update claude command
This commit is contained in:
@@ -26,12 +26,12 @@ impl Executor for ClaudeExecutor {
|
|||||||
.ok_or(ExecutorError::TaskNotFound)?;
|
.ok_or(ExecutorError::TaskNotFound)?;
|
||||||
|
|
||||||
let prompt = format!(
|
let prompt = format!(
|
||||||
"Task: {}\n\nDescription: {}\n\nWorking directory: {}",
|
"Task title: {}
|
||||||
|
Task description:{}",
|
||||||
task.title,
|
task.title,
|
||||||
task.description
|
task.description
|
||||||
.as_deref()
|
.as_deref()
|
||||||
.unwrap_or("No description provided"),
|
.unwrap_or("No description provided")
|
||||||
worktree_path
|
|
||||||
);
|
);
|
||||||
|
|
||||||
// Use Claude CLI to process the task
|
// Use Claude CLI to process the task
|
||||||
@@ -40,10 +40,9 @@ impl Executor for ClaudeExecutor {
|
|||||||
.stdout(std::process::Stdio::piped())
|
.stdout(std::process::Stdio::piped())
|
||||||
.stderr(std::process::Stdio::piped())
|
.stderr(std::process::Stdio::piped())
|
||||||
.current_dir(worktree_path)
|
.current_dir(worktree_path)
|
||||||
// .arg("--no-color")
|
.arg(&prompt)
|
||||||
// .arg("--")
|
.arg("-p")
|
||||||
// .arg(&prompt)
|
.arg("--dangerously-skip-permissions")
|
||||||
.arg("--help")
|
|
||||||
.spawn()
|
.spawn()
|
||||||
.map_err(ExecutorError::SpawnFailed)?;
|
.map_err(ExecutorError::SpawnFailed)?;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user