File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -161,6 +161,10 @@ async def on_event(self, event: Event):
161161 await self .set_agent_state_to (event .agent_state ) # type: ignore
162162 elif isinstance (event , MessageAction ):
163163 if event .source == EventSource .USER :
164+ logger .info (
165+ event ,
166+ extra = {'msg_type' : 'ACTION' , 'event_source' : EventSource .USER },
167+ )
164168 if self .get_agent_state () != AgentState .RUNNING :
165169 await self .set_agent_state_to (AgentState .RUNNING )
166170 elif event .source == EventSource .AGENT and event .wait_for_response :
Original file line number Diff line number Diff line change 1010from opendevin .core .schema import AgentState
1111from opendevin .core .schema .action import ActionType
1212from opendevin .core .schema .config import ConfigType
13- from opendevin .events .action import Action , ChangeAgentStateAction , NullAction
13+ from opendevin .events .action import ChangeAgentStateAction , NullAction
1414from opendevin .events .event import Event , EventSource
1515from opendevin .events .observation import (
1616 AgentStateChangedObservation ,
@@ -146,10 +146,6 @@ async def dispatch(self, data: dict):
146146 return
147147 event = event_from_dict (data .copy ())
148148 self .agent_session .event_stream .add_event (event , EventSource .USER )
149- if isinstance (event , Action ):
150- logger .info (
151- event , extra = {'msg_type' : 'ACTION' , 'event_source' : EventSource .USER }
152- )
153149
154150 async def send (self , data : dict [str , object ]) -> bool :
155151 try :
You can’t perform that action at this time.
0 commit comments