From 4bac9f0048e432da93c9ed6ed02bedfc4e8d94e3 Mon Sep 17 00:00:00 2001 From: Calvin Smith Date: Thu, 26 Mar 2026 13:53:13 -0600 Subject: [PATCH 1/9] incremental view construction, first pass --- .../openhands/sdk/context/view/view.py | 57 ++++++++++++------- 1 file changed, 36 insertions(+), 21 deletions(-) diff --git a/openhands-sdk/openhands/sdk/context/view/view.py b/openhands-sdk/openhands/sdk/context/view/view.py index 7d5a68d9bf8..047540265e8 100644 --- a/openhands-sdk/openhands/sdk/context/view/view.py +++ b/openhands-sdk/openhands/sdk/context/view/view.py @@ -121,44 +121,59 @@ def enforce_properties( ) return current_view_events - @staticmethod - def from_events(events: Sequence[Event]) -> View: - """Create a view from a list of events, respecting the semantics of any - condensation events. - """ - output: list[LLMConvertibleEvent] = [] - condensations: list[Condensation] = [] + def append_event(self, event: Event) -> None: + """Append an event to the end of the view, applying any condensation semantics + as we do. - # Generate the LLMConvertibleEvent objects the agent can send to the LLM by - # removing un-sendable events and applying condensations in order. - for event in events: - # By the time we come across a Condensation event, the output list should + Modifies the view in-place. + """ + match event: + # By the time we come across a Condensation event, the event list should # already reflect the events seen by the agent up to that point. We can - # therefore apply the condensation semantics directly to the output list. - if isinstance(event, Condensation): - condensations.append(event) - output = event.apply(output) + # therefore apply the condensation semantics directly to the stored events. + case Condensation(): + self.events = event.apply(self.events) + self.unhandled_condensation_request = False + + case CondensationRequest(): + self.unhandled_condensation_request = True - elif isinstance(event, LLMConvertibleEvent): - output.append(event) + case LLMConvertibleEvent(): + self.events.append(event) # If the event isn't related to condensation and isn't LLMConvertible, it # should not be in the resulting view. Examples include certain internal # events used for state tracking that the LLM does not need to see -- see, # for example, ConversationStateUpdateEvent, PauseEvent, and (relevant here) # CondensationRequest. - else: + case _: logger.debug( f"Skipping non-LLMConvertibleEvent of type {type(event)} " - "in View.from_events" + "in View.append_event" ) - output = View.enforce_properties(output, events) + @staticmethod + def from_events(events: Sequence[Event]) -> View: + """Create a view from a list of events, respecting the semantics of any + condensation events. + """ + result: View = View(events=[]) + + # Generate the LLMConvertibleEvent objects the agent can send to the LLM by + # adding them one at a time to the result view. This ensures condensations are + # applied in the order they were generated and condensation requests are + # appropriately tracked. + for event in events: + result.append_event(event) + + output = View.enforce_properties(result.events, events) return View( events=output, unhandled_condensation_request=View.unhandled_condensation_request_exists( events ), - condensations=condensations, + condensations=[ + event for event in events if isinstance(event, Condensation) + ], ) From 7df308d6d1cdeac3591186480f3122ad767411e1 Mon Sep 17 00:00:00 2001 From: Calvin Smith Date: Thu, 26 Mar 2026 13:54:59 -0600 Subject: [PATCH 2/9] removing unused state-tracking code --- .../openhands/sdk/context/view/view.py | 28 ++----------------- 1 file changed, 2 insertions(+), 26 deletions(-) diff --git a/openhands-sdk/openhands/sdk/context/view/view.py b/openhands-sdk/openhands/sdk/context/view/view.py index 047540265e8..ce62132b1a6 100644 --- a/openhands-sdk/openhands/sdk/context/view/view.py +++ b/openhands-sdk/openhands/sdk/context/view/view.py @@ -28,14 +28,11 @@ class View(BaseModel): in deciding whether further condensation is needed. """ - events: list[LLMConvertibleEvent] + events: list[LLMConvertibleEvent] = Field(default_factory=list) unhandled_condensation_request: bool = False """Whether there is an unhandled condensation request in the view.""" - condensations: list[Condensation] = Field(default_factory=list) - """A list of condensations that were processed to produce the view.""" - def __len__(self) -> int: return len(self.events) @@ -75,22 +72,6 @@ def __getitem__( else: raise ValueError(f"Invalid key type: {type(key)}") - @staticmethod - def unhandled_condensation_request_exists( - events: Sequence[Event], - ) -> bool: - """Check if there is an unhandled condensation request in the list of events. - - An unhandled condensation request is defined as a CondensationRequest event - that appears after the most recent Condensation event in the list. - """ - for event in reversed(events): - if isinstance(event, Condensation): - return False - if isinstance(event, CondensationRequest): - return True - return False - @staticmethod def enforce_properties( current_view_events: list[LLMConvertibleEvent], all_events: Sequence[Event] @@ -170,10 +151,5 @@ def from_events(events: Sequence[Event]) -> View: return View( events=output, - unhandled_condensation_request=View.unhandled_condensation_request_exists( - events - ), - condensations=[ - event for event in events if isinstance(event, Condensation) - ], + unhandled_condensation_request=result.unhandled_condensation_request, ) From 8626f8cf917add3f2e6751cb53725d7293d480b5 Mon Sep 17 00:00:00 2001 From: Calvin Smith Date: Thu, 26 Mar 2026 14:03:11 -0600 Subject: [PATCH 3/9] enforce_propertes now modifies view in place --- .../openhands/sdk/context/view/view.py | 39 ++++++++++--------- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/openhands-sdk/openhands/sdk/context/view/view.py b/openhands-sdk/openhands/sdk/context/view/view.py index ce62132b1a6..8296b9fef44 100644 --- a/openhands-sdk/openhands/sdk/context/view/view.py +++ b/openhands-sdk/openhands/sdk/context/view/view.py @@ -72,10 +72,10 @@ def __getitem__( else: raise ValueError(f"Invalid key type: {type(key)}") - @staticmethod def enforce_properties( - current_view_events: list[LLMConvertibleEvent], all_events: Sequence[Event] - ) -> list[LLMConvertibleEvent]: + self, + all_events: Sequence[Event], + ) -> None: """Enforce all properties on the list of current view events. Repeatedly applies each property's enforcement mechanism until the list of view @@ -86,21 +86,26 @@ def enforce_properties( enforced a warning is logged. """ for property in ALL_PROPERTIES: - events_to_forget = property.enforce(current_view_events, all_events) + events_to_forget = property.enforce(self.events, all_events) if events_to_forget: logger.warning( f"Property {property.__class__} enforced, " f"{len(events_to_forget)} events dropped." ) - return View.enforce_properties( - [ - event - for event in current_view_events - if event.id not in events_to_forget - ], - all_events, - ) - return current_view_events + + self.events = [ + event for event in self.events if event.id not in events_to_forget + ] + break + + # If we get all the way through the loop without hitting a break, that means no + # properties needed to be enforced and we can keep the view as-is. + else: + return + + # If we did hit a break in the loop, a property applied and now we need to check + # all the properties again to see if any are unblocked. + self.enforce_properties(all_events) def append_event(self, event: Event) -> None: """Append an event to the end of the view, applying any condensation semantics @@ -147,9 +152,5 @@ def from_events(events: Sequence[Event]) -> View: for event in events: result.append_event(event) - output = View.enforce_properties(result.events, events) - - return View( - events=output, - unhandled_condensation_request=result.unhandled_condensation_request, - ) + result.enforce_properties(events) + return result From cceeb4df1f911c5456360fa90fa255f81f353a67 Mon Sep 17 00:00:00 2001 From: Calvin Smith Date: Thu, 26 Mar 2026 14:03:56 -0600 Subject: [PATCH 4/9] minor --- openhands-sdk/openhands/sdk/context/view/view.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/openhands-sdk/openhands/sdk/context/view/view.py b/openhands-sdk/openhands/sdk/context/view/view.py index 8296b9fef44..8497173a52a 100644 --- a/openhands-sdk/openhands/sdk/context/view/view.py +++ b/openhands-sdk/openhands/sdk/context/view/view.py @@ -1,7 +1,6 @@ from __future__ import annotations from collections.abc import Sequence -from functools import cached_property from logging import getLogger from typing import overload @@ -36,7 +35,7 @@ class View(BaseModel): def __len__(self) -> int: return len(self.events) - @cached_property + @property def manipulation_indices(self) -> ManipulationIndices: """The indices where the view events can be manipulated without violating the properties expected by LLM APIs. @@ -84,6 +83,8 @@ def enforce_properties( Since enforcement is intended as a fallback to inductively maintaining the properties via the associated manipulation indices, any time a property must be enforced a warning is logged. + + Modifies the view in-place. """ for property in ALL_PROPERTIES: events_to_forget = property.enforce(self.events, all_events) From 60102975842154879ee2e84ba7989876d0c38235 Mon Sep 17 00:00:00 2001 From: Calvin Smith Date: Thu, 26 Mar 2026 14:08:40 -0600 Subject: [PATCH 5/9] fixing tests --- tests/sdk/context/view/test_view.py | 81 ----------------------------- 1 file changed, 81 deletions(-) diff --git a/tests/sdk/context/view/test_view.py b/tests/sdk/context/view/test_view.py index dceabc67b5a..32d4f30839d 100644 --- a/tests/sdk/context/view/test_view.py +++ b/tests/sdk/context/view/test_view.py @@ -293,84 +293,3 @@ def test_condensation_request_always_removed_from_view() -> None: assert not isinstance(event, CondensationRequest) assert not isinstance(event, Condensation) - -def test_condensations_field_empty_when_no_condensations() -> None: - """Test that condensations field is empty when there are no condensation events.""" - events: list[Event] = [message_event(f"Event {i}") for i in range(3)] - view = View.from_events(events) - - assert view.condensations == [] - - -def test_condensations_field_stores_all_condensations_in_order() -> None: - """Test that condensations field stores all condensation events in chronological - order. - """ - message_events = [message_event(f"Event {i}") for i in range(5)] - - # Create multiple condensations - condensation1 = Condensation( - forgotten_event_ids=[message_events[0].id], - summary="Summary 1", - llm_response_id="condensation_response_1", - ) - condensation2 = Condensation( - forgotten_event_ids=[message_events[1].id], - summary="Summary 2", - llm_response_id="condensation_response_2", - ) - condensation3 = Condensation( - forgotten_event_ids=[], - summary="Summary 3", - llm_response_id="condensation_response_3", - ) - - events: list[Event] = [ - message_events[0], - message_events[1], - condensation1, - message_events[2], - condensation2, - message_events[3], - message_events[4], - condensation3, - ] - - view = View.from_events(events) - - # Check that all condensations are stored in order - assert len(view.condensations) == 3 - assert view.condensations[0] == condensation1 - assert view.condensations[1] == condensation2 - assert view.condensations[2] == condensation3 - - -def test_condensations_field_with_mixed_events() -> None: - """Test condensations field behavior with mixed event types including requests.""" - message_events = [message_event(f"Event {i}") for i in range(4)] - - condensation1 = Condensation( - forgotten_event_ids=[message_events[0].id], - llm_response_id="condensation_response_1", - ) - condensation2 = Condensation( - forgotten_event_ids=[], llm_response_id="condensation_response_2" - ) - - events: list[Event] = [ - message_events[0], - CondensationRequest(), # Should not appear in condensations - message_events[1], - condensation1, - message_events[2], - CondensationRequest(), # Should not appear in condensations - condensation2, - message_events[3], - ] - - view = View.from_events(events) - - # Only actual Condensation events should be in the condensations field - assert len(view.condensations) == 2 - assert view.condensations[0] == condensation1 - assert view.condensations[1] == condensation2 From bf22bac1bce4a50162f9c2f8ca62baf2d98692de Mon Sep 17 00:00:00 2001 From: Calvin Smith Date: Thu, 26 Mar 2026 14:26:32 -0600 Subject: [PATCH 6/9] minor --- openhands-sdk/openhands/sdk/context/view/view.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/openhands-sdk/openhands/sdk/context/view/view.py b/openhands-sdk/openhands/sdk/context/view/view.py index 8497173a52a..ad9838ab6e4 100644 --- a/openhands-sdk/openhands/sdk/context/view/view.py +++ b/openhands-sdk/openhands/sdk/context/view/view.py @@ -144,7 +144,7 @@ def from_events(events: Sequence[Event]) -> View: """Create a view from a list of events, respecting the semantics of any condensation events. """ - result: View = View(events=[]) + result: View = View() # Generate the LLMConvertibleEvent objects the agent can send to the LLM by # adding them one at a time to the result view. This ensures condensations are @@ -153,5 +153,8 @@ def from_events(events: Sequence[Event]) -> View: for event in events: result.append_event(event) + # Once all the events are loaded enforce the relevant properties to ensure + # the construction was done properly. result.enforce_properties(events) + return result From 8f55437bdcf5f528a67f956e65b98efb01a78dcf Mon Sep 17 00:00:00 2001 From: Calvin Smith Date: Thu, 26 Mar 2026 14:36:16 -0600 Subject: [PATCH 7/9] linting --- tests/sdk/context/view/test_view.py | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/sdk/context/view/test_view.py b/tests/sdk/context/view/test_view.py index 32d4f30839d..071dfdaa91d 100644 --- a/tests/sdk/context/view/test_view.py +++ b/tests/sdk/context/view/test_view.py @@ -292,4 +292,3 @@ def test_condensation_request_always_removed_from_view() -> None: for event in view_handled: assert not isinstance(event, CondensationRequest) assert not isinstance(event, Condensation) - From 2a93e3e0f525ffc398d5a076e8997a6dd9676e51 Mon Sep 17 00:00:00 2001 From: Calvin Smith Date: Thu, 26 Mar 2026 14:44:20 -0600 Subject: [PATCH 8/9] updated view test cases --- .../context/view/test_view_append_event.py | 379 ++++++++++++++++++ 1 file changed, 379 insertions(+) create mode 100644 tests/sdk/context/view/test_view_append_event.py diff --git a/tests/sdk/context/view/test_view_append_event.py b/tests/sdk/context/view/test_view_append_event.py new file mode 100644 index 00000000000..73e9bd25891 --- /dev/null +++ b/tests/sdk/context/view/test_view_append_event.py @@ -0,0 +1,379 @@ +"""Tests for View.append_event.""" + +from openhands.sdk.context.view import View +from openhands.sdk.event.condenser import ( + Condensation, + CondensationRequest, + CondensationSummaryEvent, +) +from openhands.sdk.event.conversation_state import ConversationStateUpdateEvent +from openhands.sdk.event.llm_convertible import MessageEvent +from tests.sdk.context.view.conftest import ( + create_action_event, + create_observation_event, + message_event, +) + + +# --- LLMConvertibleEvent branch --- + + +class TestAppendLLMConvertibleEvent: + def test_append_message_event_to_empty_view(self) -> None: + view = View() + msg = message_event("hello") + view.append_event(msg) + + assert len(view) == 1 + assert view.events[0] is msg + + def test_append_multiple_message_events(self) -> None: + view = View() + msgs = [message_event(f"msg {i}") for i in range(3)] + for msg in msgs: + view.append_event(msg) + + assert len(view) == 3 + assert view.events == msgs + + def test_append_action_event(self) -> None: + view = View() + action = create_action_event( + llm_response_id="resp_1", tool_call_id="tc_1", thinking="think" + ) + view.append_event(action) + + assert len(view) == 1 + assert view.events[0] is action + + def test_append_observation_event(self) -> None: + view = View() + obs = create_observation_event(tool_call_id="tc_1") + view.append_event(obs) + + assert len(view) == 1 + assert view.events[0] is obs + + def test_append_does_not_change_unhandled_flag(self) -> None: + view = View() + view.append_event(message_event("hello")) + + assert view.unhandled_condensation_request is False + + +# --- Condensation branch --- + + +class TestAppendCondensation: + def test_condensation_forgets_events(self) -> None: + view = View() + msgs = [message_event(f"msg {i}") for i in range(3)] + for msg in msgs: + view.append_event(msg) + + condensation = Condensation( + forgotten_event_ids=[msgs[0].id, msgs[2].id], + llm_response_id="resp_1", + ) + view.append_event(condensation) + + assert len(view) == 1 + assert view.events[0] is msgs[1] + + def test_condensation_forgets_all_events(self) -> None: + view = View() + msgs = [message_event(f"msg {i}") for i in range(3)] + for msg in msgs: + view.append_event(msg) + + condensation = Condensation( + forgotten_event_ids=[m.id for m in msgs], + llm_response_id="resp_1", + ) + view.append_event(condensation) + + assert len(view) == 0 + assert view.events == [] + + def test_condensation_on_empty_view(self) -> None: + view = View() + condensation = Condensation( + forgotten_event_ids=[], + llm_response_id="resp_1", + ) + view.append_event(condensation) + + assert len(view) == 0 + + def test_condensation_with_no_forgotten_ids(self) -> None: + view = View() + msgs = [message_event(f"msg {i}") for i in range(2)] + for msg in msgs: + view.append_event(msg) + + condensation = Condensation( + forgotten_event_ids=[], + llm_response_id="resp_1", + ) + view.append_event(condensation) + + assert len(view) == 2 + assert view.events == msgs + + def test_condensation_inserts_summary(self) -> None: + view = View() + msgs = [message_event(f"msg {i}") for i in range(3)] + for msg in msgs: + view.append_event(msg) + + condensation = Condensation( + forgotten_event_ids=[msgs[0].id], + summary="Summary of msg 0", + summary_offset=0, + llm_response_id="resp_1", + ) + view.append_event(condensation) + + assert len(view) == 3 # 2 remaining + 1 summary + assert isinstance(view.events[0], CondensationSummaryEvent) + assert view.events[0].summary == "Summary of msg 0" + assert view.events[1] is msgs[1] + assert view.events[2] is msgs[2] + + def test_condensation_inserts_summary_at_end(self) -> None: + view = View() + msgs = [message_event(f"msg {i}") for i in range(2)] + for msg in msgs: + view.append_event(msg) + + condensation = Condensation( + forgotten_event_ids=[], + summary="End summary", + summary_offset=2, + llm_response_id="resp_1", + ) + view.append_event(condensation) + + assert len(view) == 3 + assert view.events[0] is msgs[0] + assert view.events[1] is msgs[1] + assert isinstance(view.events[2], CondensationSummaryEvent) + assert view.events[2].summary == "End summary" + + def test_condensation_clears_unhandled_flag(self) -> None: + view = View() + view.append_event(message_event("msg")) + view.append_event(CondensationRequest()) + + assert view.unhandled_condensation_request is True + + view.append_event( + Condensation(forgotten_event_ids=[], llm_response_id="resp_1") + ) + + assert view.unhandled_condensation_request is False + + def test_condensation_clears_flag_even_without_prior_request(self) -> None: + view = View() + view.append_event(message_event("msg")) + + assert view.unhandled_condensation_request is False + + view.append_event( + Condensation(forgotten_event_ids=[], llm_response_id="resp_1") + ) + + assert view.unhandled_condensation_request is False + + def test_condensation_not_added_to_events(self) -> None: + view = View() + view.append_event(message_event("msg")) + view.append_event( + Condensation(forgotten_event_ids=[], llm_response_id="resp_1") + ) + + for event in view.events: + assert not isinstance(event, Condensation) + + +# --- CondensationRequest branch --- + + +class TestAppendCondensationRequest: + def test_sets_unhandled_flag(self) -> None: + view = View() + view.append_event(CondensationRequest()) + + assert view.unhandled_condensation_request is True + + def test_not_added_to_events(self) -> None: + view = View() + view.append_event(message_event("msg")) + view.append_event(CondensationRequest()) + + assert len(view) == 1 + for event in view.events: + assert not isinstance(event, CondensationRequest) + + def test_multiple_requests_keep_flag_true(self) -> None: + view = View() + view.append_event(CondensationRequest()) + view.append_event(CondensationRequest()) + + assert view.unhandled_condensation_request is True + assert len(view) == 0 + + +# --- Default (non-LLMConvertible, non-condensation) branch --- + + +class TestAppendNonLLMConvertibleEvent: + def test_skipped_silently(self) -> None: + view = View() + view.append_event(message_event("msg")) + view.append_event(ConversationStateUpdateEvent(key="k", value="v")) + + assert len(view) == 1 + + def test_does_not_affect_unhandled_flag(self) -> None: + view = View() + view.append_event(ConversationStateUpdateEvent(key="k", value="v")) + + assert view.unhandled_condensation_request is False + + def test_events_unchanged_after_skip(self) -> None: + view = View() + msgs = [message_event(f"msg {i}") for i in range(2)] + for msg in msgs: + view.append_event(msg) + + view.append_event(ConversationStateUpdateEvent(key="k", value="v")) + + assert view.events == msgs + + +# --- Interaction sequences --- + + +class TestAppendEventInteractions: + def test_request_then_condensation_clears_flag(self) -> None: + view = View() + view.append_event(message_event("msg 0")) + view.append_event(CondensationRequest()) + + assert view.unhandled_condensation_request is True + + view.append_event( + Condensation(forgotten_event_ids=[], llm_response_id="resp_1") + ) + + assert view.unhandled_condensation_request is False + + def test_condensation_then_request_sets_flag(self) -> None: + view = View() + view.append_event(message_event("msg 0")) + view.append_event( + Condensation(forgotten_event_ids=[], llm_response_id="resp_1") + ) + + assert view.unhandled_condensation_request is False + + view.append_event(CondensationRequest()) + + assert view.unhandled_condensation_request is True + + def test_multiple_condensations_in_sequence(self) -> None: + view = View() + msgs = [message_event(f"msg {i}") for i in range(4)] + for msg in msgs: + view.append_event(msg) + + view.append_event( + Condensation( + forgotten_event_ids=[msgs[0].id, msgs[1].id], + llm_response_id="resp_1", + ) + ) + assert len(view) == 2 + assert view.events == [msgs[2], msgs[3]] + + view.append_event( + Condensation( + forgotten_event_ids=[msgs[2].id], + llm_response_id="resp_2", + ) + ) + assert len(view) == 1 + assert view.events == [msgs[3]] + + def test_interleaved_messages_and_condensations(self) -> None: + view = View() + msg0 = message_event("msg 0") + msg1 = message_event("msg 1") + + view.append_event(msg0) + view.append_event( + Condensation( + forgotten_event_ids=[msg0.id], + summary="Summary of msg 0", + summary_offset=0, + llm_response_id="resp_1", + ) + ) + view.append_event(msg1) + + assert len(view) == 2 + assert isinstance(view.events[0], CondensationSummaryEvent) + assert view.events[1] is msg1 + + def test_non_llm_events_interspersed(self) -> None: + """Non-LLMConvertible events mixed in don't affect the view.""" + view = View() + msg0 = message_event("msg 0") + msg1 = message_event("msg 1") + + view.append_event(msg0) + view.append_event(ConversationStateUpdateEvent(key="k", value="v")) + view.append_event(msg1) + view.append_event(ConversationStateUpdateEvent(key="k2", value="v2")) + + assert len(view) == 2 + assert view.events == [msg0, msg1] + + def test_full_lifecycle(self) -> None: + """Simulate a realistic sequence: messages, request, condensation, more + messages. + """ + view = View() + + # Initial messages + msgs = [message_event(f"msg {i}") for i in range(3)] + for msg in msgs: + view.append_event(msg) + assert len(view) == 3 + assert view.unhandled_condensation_request is False + + # Request condensation + view.append_event(CondensationRequest()) + assert view.unhandled_condensation_request is True + assert len(view) == 3 # request not in events + + # Condensation handles the request + view.append_event( + Condensation( + forgotten_event_ids=[msgs[0].id, msgs[1].id], + summary="Summary of early messages", + summary_offset=0, + llm_response_id="resp_1", + ) + ) + assert view.unhandled_condensation_request is False + assert len(view) == 2 # summary + msgs[2] + assert isinstance(view.events[0], CondensationSummaryEvent) + assert view.events[1] is msgs[2] + + # More messages after condensation + msg3 = message_event("msg 3") + view.append_event(msg3) + assert len(view) == 3 + assert view.events[2] is msg3 From 3dc1b516d6f44a20a9be27b7f756e3193f5ade08 Mon Sep 17 00:00:00 2001 From: Calvin Smith Date: Thu, 26 Mar 2026 14:49:19 -0600 Subject: [PATCH 9/9] linting --- tests/sdk/context/view/test_view_append_event.py | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/sdk/context/view/test_view_append_event.py b/tests/sdk/context/view/test_view_append_event.py index 73e9bd25891..2dd5a23dce6 100644 --- a/tests/sdk/context/view/test_view_append_event.py +++ b/tests/sdk/context/view/test_view_append_event.py @@ -7,7 +7,6 @@ CondensationSummaryEvent, ) from openhands.sdk.event.conversation_state import ConversationStateUpdateEvent -from openhands.sdk.event.llm_convertible import MessageEvent from tests.sdk.context.view.conftest import ( create_action_event, create_observation_event,