MCPcopy Create free account
hub / github.com/github/gh-aw / isEditToolExplicitlyDisabled

Function isEditToolExplicitlyDisabled

pkg/workflow/claude_engine.go:540–552  ·  view source on GitHub ↗
(tools map[string]any)

Source from the content-addressed store, hash-verified

538}
539
540func 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).

Callers 2

GetExecutionStepsMethod · 0.85

Calls

no outgoing calls

Tested by 1