π OpenHands: AI-Driven Development
fix(security): extend action type coverage in security check (#12870)
Nelson Spencec34fdf4b372f
diff --git a/openhands/controller/agent_controller.py b/openhands/controller/agent_controller.pyindex 710e912435..193314d08c 100644--- a/openhands/controller/agent_controller.py+++ b/openhands/controller/agent_controller.py@@ -64,11 +64,14 @@ from openhands.events.action import (AgentFinishAction,AgentRejectAction,BrowseInteractiveAction,+ BrowseURLAction,ChangeAgentStateAction,CmdRunAction,FileEditAction,FileReadAction,+ FileWriteAction,IPythonRunCellAction,+ MCPAction,MessageAction,NullAction,SystemMessageAction,@@ -977,8 +980,11 @@ class AgentController:type(action) is CmdRunActionor type(action) is IPythonRunCellActionor type(action) is BrowseInteractiveAction+ or type(action) is BrowseURLActionor type(action) is FileEditActionor type(action) is FileReadAction+ or type(action) is FileWriteAction+ or type(action) is MCPAction):# Handle security risk analysis using the dedicated methodawait self._handle_security_analyzer(action)