diff --git a/agent/context_compressor.py b/agent/context_compressor.py index ee4d7af29858..40e56bc3b3e9 100644 --- a/agent/context_compressor.py +++ b/agent/context_compressor.py @@ -554,7 +554,7 @@ def _summarize_tool_result(tool_name: str, tool_args: str, tool_content: str) -> if tool_name == "skill_view": name = args.get("name", "?") if content_len > 5000: - return f"[skill_view] name={name} ({content_len:,} chars) [SKILL_PRUNED: content lost in compression; reload with skill_view before relying on it]" + return f"[skill_view] name={name} ({content_len:,} chars) [SKILL_PRUNED: content lost in compression; reload with skill_view(name='{name}')]" return f"[skill_view] name={name} ({content_len:,} chars)" if tool_name in {"skills_list", "skill_manage"}: @@ -989,7 +989,7 @@ class ContextCompressor(ContextEngine): f"[skill_view] name={skill_name} " f"({len(original_content):,} chars) " f"[SKILL_PRUNED: content lost in compression; " - f"reload with skill_view before relying on it]" + f"reload with skill_view(name='{skill_name}')]" ) result[idx] = {**result[idx], "content": placeholder} pruned += 1