π OpenHands: AI-Driven Development
Fix log for clearing pending action to be at the same level (#8430)
Engel Nyst9af132933c9e
diff --git a/openhands/controller/agent_controller.py b/openhands/controller/agent_controller.pyindex a1a7bd7cfe..9948b70f4c 100644--- a/openhands/controller/agent_controller.py+++ b/openhands/controller/agent_controller.py@@ -772,7 +772,7 @@ class AgentController:"""Executes a single step of the parent or delegate agent. Detects stuck agents and limits on the number of iterations and the task budget."""if self.get_agent_state() != AgentState.RUNNING:self.log(- 'info',+ 'debug',f'Agent not stepping because state is {self.get_agent_state()} (not RUNNING)',extra={'msg_type': 'STEP_BLOCKED_STATE'},)@@ -782,7 +782,7 @@ class AgentController:action_id = getattr(self._pending_action, 'id', 'unknown')action_type = type(self._pending_action).__name__self.log(- 'info',+ 'debug',f'Agent not stepping because of pending action: {action_type} (id={action_id})',extra={'msg_type': 'STEP_BLOCKED_PENDING_ACTION'},)