fix(agent): avoid tool compaction echo loops

This commit is contained in:
chengyongru
2026-07-03 00:36:22 +08:00
committed by Xubin Ren
parent 34535b4e7c
commit aecb5fbc33
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -427,7 +427,7 @@ class ContextGovernor:
@staticmethod
def _summary_for(message: dict[str, Any]) -> str:
name = message.get("name", "tool")
return f"[{name} result omitted from context]"
return f"[Prior {name} result compacted to fit context; the tool call already completed.]"
def _legal_history_tail(
self,