test: isolate quiet compaction status assertions

This commit is contained in:
Stephen Schoettler 2026-06-08 00:42:16 -07:00 committed by Teknium
parent 4035d70bbe
commit 28dced2440

View file

@ -776,6 +776,9 @@ class TestPreflightCompression:
def test_compress_context_suppresses_automatic_status_when_engine_opts_out(self, agent):
"""Plugin engines can make successful automatic compaction silent."""
# Keep this isolated from the lazy aux-provider feasibility warning,
# which is unrelated to automatic compaction lifecycle status.
agent.compression_enabled = False
events = []
agent.status_callback = lambda ev, msg: events.append((ev, msg))
agent.context_compressor.emit_automatic_compaction_status = False
@ -801,6 +804,9 @@ class TestPreflightCompression:
def test_compress_context_force_keeps_manual_status_when_engine_opts_out(self, agent):
"""Manual /compress remains visible even for quiet automatic engines."""
# Keep this isolated from the lazy aux-provider feasibility warning,
# which is unrelated to manual compression lifecycle status.
agent.compression_enabled = False
events = []
agent.status_callback = lambda ev, msg: events.append((ev, msg))
agent.context_compressor.emit_automatic_compaction_status = False