Check if a tool should skip confirmation (YOLO lane check) Returns true if the tool's lane is in YOLO mode, meaning it should be auto-approved even when `PermissionPolicy` returns `Ask`.
(&self, tool_name: &str)
| 85 | /// Returns true if the tool's lane is in YOLO mode, meaning it should |
| 86 | /// be auto-approved even when `PermissionPolicy` returns `Ask`. |
| 87 | pub fn is_yolo(&self, tool_name: &str) -> bool { |
| 88 | if !self.enabled { |
| 89 | return true; // HITL disabled = everything auto-approved |
| 90 | } |
| 91 | let lane = SessionLane::from_tool_name(tool_name); |
| 92 | self.yolo_lanes.contains(&lane) |
| 93 | } |
| 94 | |
| 95 | /// Check if a tool requires confirmation |
| 96 | /// |
no test coverage detected