Don't try to send the new events in the UI (#7277)

This commit is contained in:
Engel Nyst
2025-03-17 14:50:22 +01:00
committed by GitHub
parent a4d632498c
commit a4b836b5f9

View File

@@ -6,10 +6,14 @@ from openhands.core.logger import openhands_logger as logger
from openhands.events.action import (
NullAction,
)
from openhands.events.action.agent import RecallAction
from openhands.events.observation import (
NullObservation,
)
from openhands.events.observation.agent import AgentStateChangedObservation
from openhands.events.observation.agent import (
AgentStateChangedObservation,
RecallObservation,
)
from openhands.events.serialization import event_to_dict
from openhands.events.stream import AsyncEventStreamWrapper
from openhands.server.shared import (
@@ -56,10 +60,7 @@ async def connect(connection_id: str, environ):
async for event in async_stream:
if isinstance(
event,
(
NullAction,
NullObservation,
),
(NullAction, NullObservation, RecallAction, RecallObservation),
):
continue
elif isinstance(event, AgentStateChangedObservation):