Skip to content

The agent that grows with you

test(compression): initialise idle checkpoint deferral state

GodsBoye4a86ec9edf4
diff --git a/tests/agent/test_idle_compaction_lock_and_guards.py b/tests/agent/test_idle_compaction_lock_and_guards.py
index d1c30a024a3..4426a8804a6 100644
--- a/tests/agent/test_idle_compaction_lock_and_guards.py
+++ b/tests/agent/test_idle_compaction_lock_and_guards.py
@@ -45,6 +45,7 @@ def _prep_idle_agent(db: SessionDB, session_id: str, *, idle_after: int = 60,
agent.context_compressor.summary_target_ratio = 0.20
agent.context_compressor.protect_first_n = 2
agent.context_compressor.protect_last_n = 2
+ agent.context_compressor.awaiting_real_usage_after_compression = False
# No active failure cooldown unless a test installs one.
agent.context_compressor.get_active_compression_failure_cooldown = (
lambda *a, **k: None