From 2b1a2eb96897c811df1add85977797ff75857c20 Mon Sep 17 00:00:00 2001 From: Engel Nyst Date: Wed, 15 Jan 2025 04:01:22 +0100 Subject: [PATCH] remove messing with history for now --- openhands/agenthub/micro/agent.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/openhands/agenthub/micro/agent.py b/openhands/agenthub/micro/agent.py index b0ec514a4d48..2c22e3840a51 100644 --- a/openhands/agenthub/micro/agent.py +++ b/openhands/agenthub/micro/agent.py @@ -52,9 +52,7 @@ def history_to_json(self, history: list[Event], max_events: int = 20, **kwargs): # everything starts with a message # the first message is already in the prompt as the task - # so we don't need to include it in the history - if event_count < max_events: - processed_history.pop(0) + # TODO: so we don't need to include it in the history return json.dumps(processed_history, **kwargs)