Skip to content

Your lightweight open-source personal agent.

style(agent): remove inline comment in runtime-context history filter

Kim286e67ddef6c
diff --git a/nanobot/agent/loop.py b/nanobot/agent/loop.py
index eb34b312c..7ae263425 100644
--- a/nanobot/agent/loop.py
+++ b/nanobot/agent/loop.py
@@ -472,8 +472,6 @@ class AgentLoop:
and isinstance(entry.get("content"), str)
and entry["content"].startswith(ContextBuilder._RUNTIME_CONTEXT_TAG)
):
- # Runtime metadata is injected per-turn for model context only; do not persist it
- # into long-lived session history to avoid semantic drift and repetitive replies.
continue
if entry.get("role") == "user" and isinstance(entry.get("content"), list):
entry["content"] = [