The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
docs(compression): note why adoption runs before the primary-runtime restore
kshitijk4poor62ceb7f4d7c9
diff --git a/agent/conversation_compression.py b/agent/conversation_compression.pyindex 7a21b550235..1b6cca41a9c 100644--- a/agent/conversation_compression.py+++ b/agent/conversation_compression.py@@ -1694,6 +1694,7 @@ def _adopt_live_compression_child(agent._session_db_created = True# The turn skips restore/rebuild while this slot is set, so it may hold only the child's own# prompt, and only when that prompt matches the current runtime (otherwise None -> rebuild).+ # Turn-start adoption runs before _restore_primary_runtime on purpose; a reject here is re-checked by the normal restore.from agent.conversation_loop import _stored_prompt_matches_runtimechild_prompt = child.get("system_prompt")agent._cached_system_prompt = (