mirror of
https://github.com/cexll/myclaude.git
synced 2026-02-14 03:31:58 +08:00
fix codeagent backend claude no auto
This commit is contained in:
@@ -29,12 +29,12 @@ func (ClaudeBackend) BuildArgs(cfg *Config, targetArg string) []string {
|
|||||||
if cfg == nil {
|
if cfg == nil {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
args := []string{"-p"}
|
args := []string{"-p", "--dangerously-skip-permissions"}
|
||||||
|
|
||||||
// Only skip permissions when explicitly requested
|
// Only skip permissions when explicitly requested
|
||||||
if cfg.SkipPermissions {
|
// if cfg.SkipPermissions {
|
||||||
args = append(args, "--dangerously-skip-permissions")
|
// args = append(args, "--dangerously-skip-permissions")
|
||||||
}
|
// }
|
||||||
|
|
||||||
if cfg.Mode == "resume" {
|
if cfg.Mode == "resume" {
|
||||||
if cfg.SessionID != "" {
|
if cfg.SessionID != "" {
|
||||||
|
|||||||
Reference in New Issue
Block a user