From a3f4bb74fff5d7220ed4abb5401dc426f2c33360 Mon Sep 17 00:00:00 2001 From: chengyongru <2755839590@qq.com> Date: Fri, 13 Feb 2026 22:10:39 +0800 Subject: [PATCH] fix: increase max_messages to 500 as temporary workaround Temporarily increase default max_messages from 50 to 500 to allow more context in conversations until a proper consolidation strategy is implemented. --- nanobot/session/manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nanobot/session/manager.py b/nanobot/session/manager.py index 9549fd2..9fce9ee 100644 --- a/nanobot/session/manager.py +++ b/nanobot/session/manager.py @@ -41,7 +41,7 @@ class Session: self.messages.append(msg) self.updated_at = datetime.now() - def get_history(self, max_messages: int = 50) -> list[dict[str, Any]]: + def get_history(self, max_messages: int = 500) -> list[dict[str, Any]]: """ Get message history for LLM context.