mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-24 16:54:43 +00:00
test: isolate quiet compaction status assertions
This commit is contained in:
parent
4035d70bbe
commit
28dced2440
1 changed files with 6 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue