fix: run Claude Code agents with auto-accepted edits
This commit is contained in:
parent
ebf6197279
commit
18d26d7431
1 changed files with 10 additions and 2 deletions
|
|
@ -74,7 +74,11 @@ impl AgentTool {
|
||||||
"mcp_servers.tuleap.enabled=false".to_string(),
|
"mcp_servers.tuleap.enabled=false".to_string(),
|
||||||
"-".to_string(),
|
"-".to_string(),
|
||||||
],
|
],
|
||||||
AgentTool::ClaudeCode => vec!["-p".to_string()],
|
AgentTool::ClaudeCode => vec![
|
||||||
|
"-p".to_string(),
|
||||||
|
"--permission-mode".to_string(),
|
||||||
|
"acceptEdits".to_string(),
|
||||||
|
],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -415,7 +419,11 @@ mod tests {
|
||||||
);
|
);
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
AgentTool::ClaudeCode.to_non_interactive_args(),
|
AgentTool::ClaudeCode.to_non_interactive_args(),
|
||||||
vec!["-p".to_string()]
|
vec![
|
||||||
|
"-p".to_string(),
|
||||||
|
"--permission-mode".to_string(),
|
||||||
|
"acceptEdits".to_string()
|
||||||
|
]
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue