MCPcopy Create free account
hub / github.com/GongShichen/LuminaCode / ClonePermissionState

Function ClonePermissionState

agent/loop.go:1521–1534  ·  view source on GitHub ↗
(state *security.PermissionState)

Source from the content-addressed store, hash-verified

1519 if state.PermissionState != nil && state.PermissionState.IsToolConfirmed(tc.Name) {
1520 return false
1521 }
1522 if tool.ConfirmsFilePaths() && state.PermissionState != nil {
1523 if fp := stringFromAny(tc.Input["file_path"]); fp != "" && state.PermissionState.IsPathConfirmed(fp) {
1524 return false
1525 }
1526 }
1527 return tool.NeedsPermission(validated)
1528}
1529
1530func (e *CoreExecutionEngine) rememberAPIError(state *AgentState, msg string) {
1531 state.RecentApiErrors = append(state.RecentApiErrors, msg)
1532 if len(state.RecentApiErrors) > 5 {
1533 state.RecentApiErrors = state.RecentApiErrors[len(state.RecentApiErrors)-5:]
1534 }
1535}
1536
1537func (e *CoreExecutionEngine) apiErrorEvent(msg string, metadata map[string]any) StreamEvent {

Callers 1

BuildSubagentStateFunction · 0.85

Calls 3

DefaultPermissionStateFunction · 0.92
ToMapMethod · 0.45

Tested by

no test coverage detected