The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
docs(compression): say why the seeded-prompt early return skips the tool refresh
kshitijk4poorf82d1ee449b3
diff --git a/agent/conversation_compression.py b/agent/conversation_compression.pyindex c25a0c2d4e1..08e5d124da0 100644--- a/agent/conversation_compression.py+++ b/agent/conversation_compression.py@@ -3148,6 +3148,8 @@ def _rebuild_system_prompt_at_boundary(agent: Any, system_message: str) -> str:# surface: its builder output drops the skills index, external provider blocks and tool guidance,# and the commit below would persist that over the live session's snapshot (restored verbatim by# the next fresh agent). Keep the seeded bytes; the live agent's own compaction propagates updates.+ # Returning here also deliberately skips _refresh_agent_tool_definitions: its MCP refresh persists+ # the agent's tool names, which would overwrite the session's saved tools[] with the memory-only set.seeded_system_prompt = agent._cached_system_prompt or ""agent._cached_system_prompt = seeded_system_promptif seeded_system_prompt: