Fix : app unresponsive on startup (#4668)

This commit is contained in:
tofarr 2024-10-31 15:30:33 -06:00 committed by GitHub
parent be77baea31
commit dd55290f4e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -139,7 +139,7 @@ class Session:
await self.send(event_to_dict(event))
# NOTE: ipython observations are not sent here currently
elif event.source == EventSource.ENVIRONMENT and isinstance(
event, CmdOutputObservation
event, (CmdOutputObservation, AgentStateChangedObservation)
):
# feedback from the environment to agent actions is understood as agent events by the UI
event_dict = event_to_dict(event)