(tools map[string]any)
| 538 | } |
| 539 | |
| 540 | func isEditToolExplicitlyDisabled(tools map[string]any) bool { |
| 541 | if tools == nil { |
| 542 | return false |
| 543 | } |
| 544 | |
| 545 | editConfig, hasEdit := tools["edit"] |
| 546 | if !hasEdit { |
| 547 | return false |
| 548 | } |
| 549 | |
| 550 | enabled, isBool := editConfig.(bool) |
| 551 | return isBool && !enabled |
| 552 | } |
| 553 | |
| 554 | // stripClaudePermissionModeArgs removes all --permission-mode flags from args |
| 555 | // (both "--permission-mode <value>" and "--permission-mode=<value>" forms). |
no outgoing calls