Your lightweight open-source personal agent.
Python agent-frameworkai-agentai-agentschatbotchatopsdiscord-botllm-agentsllmslocal-llmmcpmodel-context-protocolmulti-agentopenai-compatibleopenclawpersonal-ai-assistantpythonself-hostedtelegram-bot-ai-assistantwebuiworkflow-automation
Merge branch 'main' into fix/session-history-timestamps
Xubin Ren4a4ba1efc118
diff --cc nanobot/agent/loop.pyindex 3bc7c4372,22ad14b25..dce1890af--- a/nanobot/agent/loop.py+++ b/nanobot/agent/loop.py@@@ -831,8 -851,11 +851,11 @@@ class AgentLoopis_subagent = msg.sender_id == "subagent"if is_subagent and self._persist_subagent_followup(session, msg):self.sessions.save(session)- self._set_tool_context(channel, chat_id, msg.metadata.get("message_id"))+ self._set_tool_context(+ channel, chat_id, msg.metadata.get("message_id"),+ msg.metadata, session_key=key,+ )- history = session.get_history(max_messages=0)+ history = session.get_history(max_messages=0, include_timestamps=True)current_role = "assistant" if is_subagent else "user"# Subagent content is already in `history` above; passing it again