File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -161,6 +161,10 @@ async def on_event(self, event: Event):
161
161
await self .set_agent_state_to (event .agent_state ) # type: ignore
162
162
elif isinstance (event , MessageAction ):
163
163
if event .source == EventSource .USER :
164
+ logger .info (
165
+ event ,
166
+ extra = {'msg_type' : 'ACTION' , 'event_source' : EventSource .USER },
167
+ )
164
168
if self .get_agent_state () != AgentState .RUNNING :
165
169
await self .set_agent_state_to (AgentState .RUNNING )
166
170
elif event .source == EventSource .AGENT and event .wait_for_response :
Original file line number Diff line number Diff line change 10
10
from opendevin .core .schema import AgentState
11
11
from opendevin .core .schema .action import ActionType
12
12
from opendevin .core .schema .config import ConfigType
13
- from opendevin .events .action import Action , ChangeAgentStateAction , NullAction
13
+ from opendevin .events .action import ChangeAgentStateAction , NullAction
14
14
from opendevin .events .event import Event , EventSource
15
15
from opendevin .events .observation import (
16
16
AgentStateChangedObservation ,
@@ -146,10 +146,6 @@ async def dispatch(self, data: dict):
146
146
return
147
147
event = event_from_dict (data .copy ())
148
148
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
- )
153
149
154
150
async def send (self , data : dict [str , object ]) -> bool :
155
151
try :
You can’t perform that action at this time.
0 commit comments