mirror of
https://github.com/aaif-goose/goose.git
synced 2026-07-03 14:10:03 +02:00
fix(claude-code): Permission routing for smart-approve (#7501)
Signed-off-by: rabi <ramishra@redhat.com>
This commit is contained in:
@@ -344,7 +344,7 @@ impl ClaudeCodeProvider {
|
||||
cmd
|
||||
}
|
||||
|
||||
/// Returns true when the control protocol is enabled (Approve mode).
|
||||
/// Returns true when the control protocol is enabled.
|
||||
fn apply_permission_flags(cmd: &mut Command) -> Result<bool, ProviderError> {
|
||||
let config = Config::global();
|
||||
let goose_mode = config.get_goose_mode().unwrap_or(GooseMode::Auto);
|
||||
@@ -354,11 +354,7 @@ impl ClaudeCodeProvider {
|
||||
cmd.arg("--dangerously-skip-permissions");
|
||||
Ok(false)
|
||||
}
|
||||
GooseMode::SmartApprove => {
|
||||
cmd.arg("--permission-mode").arg("acceptEdits");
|
||||
Ok(false)
|
||||
}
|
||||
GooseMode::Approve => {
|
||||
GooseMode::SmartApprove | GooseMode::Approve => {
|
||||
cmd.arg("--permission-prompt-tool").arg("stdio");
|
||||
Ok(true)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user