Skip to content

The agent that grows with you

test: keep attempt-cap probe on provider-confirmed fallback

Teknium73ddf0672cd7
diff --git a/tests/run_agent/test_preflight_compression_cap_e2e.py b/tests/run_agent/test_preflight_compression_cap_e2e.py
index b952b86e801..52ca3ce3a20 100644
--- a/tests/run_agent/test_preflight_compression_cap_e2e.py
+++ b/tests/run_agent/test_preflight_compression_cap_e2e.py
@@ -102,6 +102,9 @@ def test_preflight_runs_fourth_compaction_pass_at_cap_six(monkeypatch, tmp_path)
# makes material (~10% > the 5% progress floor) headway.
compressor = agent.context_compressor
compressor.threshold_tokens = 50_000
+ # This is the attempt-cap invariant, not first-request deferral: the provider
+ # is already known to omit usage, so its heuristic fallback may compact.
+ compressor.note_usage_less_response()
estimate_state = {"tokens": 1_000_000.0, "calls": 0}