(ch chan bool)
| 267 | if e.Config.Yolo { |
| 268 | e.mcpMu.Unlock() |
| 269 | e.applyMCPTrustDecision(pending, true) |
| 270 | return |
| 271 | } |
| 272 | ch := make(chan bool, 1) |
| 273 | e.mu.Lock() |
| 274 | e.mcpTrustCh = ch |
| 275 | e.mu.Unlock() |
| 276 | e.mcpMu.Unlock() |
| 277 | |
| 278 | event := NewStreamEvent("permission_needed", "mcp_project_trust", map[string]any{ |