π OpenHands: AI-Driven Development
perf : optimizations to send event logging performance (#1635)
mzyddde1a1c9a00c99
diff --git a/opendevin/server/agent/agent.py b/opendevin/server/agent/agent.pyindex 8e89cea611..6661b006bd 100644--- a/opendevin/server/agent/agent.py+++ b/opendevin/server/agent/agent.py@@ -134,13 +134,9 @@ class AgentUnit:Args:event: The agent event (Observation or Action)."""- if isinstance(event, NullAction):- return- if isinstance(event, NullObservation):- return- if event.source == 'agent':+ if event.source == 'agent' and not isinstance(event, (NullAction, NullObservation)):await self.send(event.to_dict())- return+ returndef close(self):if self.controller is not None: