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

This commit is contained in:
Kim
2026-02-26 14:21:44 +08:00
parent 45ae410f05
commit 286e67ddef

View File

@@ -472,8 +472,6 @@ class AgentLoop:
and isinstance(entry.get("content"), str) and isinstance(entry.get("content"), str)
and entry["content"].startswith(ContextBuilder._RUNTIME_CONTEXT_TAG) 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 continue
if entry.get("role") == "user" and isinstance(entry.get("content"), list): if entry.get("role") == "user" and isinstance(entry.get("content"), list):
entry["content"] = [ entry["content"] = [