π OpenHands: AI-Driven Development
main.py: Fix redundant ChangeAgentStateAction (#2064)
Boxuan Li7d6cb69a519d
diff --git a/opendevin/core/main.py b/opendevin/core/main.pyindex af1320247c..c74f40a2ab 100644--- a/opendevin/core/main.py+++ b/opendevin/core/main.py@@ -10,7 +10,7 @@ from opendevin.core.config import args, get_llm_config_argfrom opendevin.core.logger import opendevin_logger as loggerfrom opendevin.core.schema import AgentStatefrom opendevin.events import EventSource, EventStream, EventStreamSubscriber-from opendevin.events.action import ChangeAgentStateAction, MessageAction+from opendevin.events.action import MessageActionfrom opendevin.events.event import Eventfrom opendevin.events.observation import AgentStateChangedObservationfrom opendevin.llm.llm import LLM@@ -93,9 +93,6 @@ async def main(runtime.init_sandbox_plugins(controller.agent.sandbox_plugins)await event_stream.add_event(MessageAction(content=task), EventSource.USER)- await event_stream.add_event(- ChangeAgentStateAction(agent_state=AgentState.RUNNING), EventSource.USER- )async def on_event(event: Event):if isinstance(event, AgentStateChangedObservation):