(fix): Condensation events to reconstruct contexts added to event stream (#7353)

Co-authored-by: Calvin Smith <calvin@all-hands.dev>
This commit is contained in:
Calvin Smith
2025-03-27 13:16:31 -06:00
committed by GitHub
parent 76c992e2df
commit 42712a44d8
17 changed files with 485 additions and 422 deletions

View File

@@ -54,7 +54,7 @@ from openhands.events.action import (
MessageAction,
NullAction,
)
from openhands.events.action.agent import RecallAction
from openhands.events.action.agent import CondensationAction, RecallAction
from openhands.events.event import Event
from openhands.events.observation import (
AgentCondensationObservation,
@@ -305,6 +305,8 @@ class AgentController:
return True
if isinstance(event, AgentDelegateAction):
return True
if isinstance(event, CondensationAction):
return True
return False
if isinstance(event, Observation):
if (