From cb39be92e428acb251860bd554368ac036a8d088 Mon Sep 17 00:00:00 2001 From: liuhao1024 Date: Fri, 3 Jul 2026 00:53:05 +0800 Subject: [PATCH] fix: update test assertions for /compact -> /compress rename --- tests/acp/test_server.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/acp/test_server.py b/tests/acp/test_server.py index c9c9820a577b..e60f3e8feb74 100644 --- a/tests/acp/test_server.py +++ b/tests/acp/test_server.py @@ -287,7 +287,7 @@ class TestSessionOps: "tools", "context", "reset", - "compact", + "compress", "steer", "queue", "version", @@ -1527,7 +1527,7 @@ class TestSlashCommands: assert "Context usage: ~25,000 / 100,000 tokens (25.0%)" in result assert "Compression: ~55,000 tokens until threshold (~80,000, 80%)" in result - assert "Tip: run /compact" in result + assert "Tip: run /compress" in result def test_context_says_compression_due_when_past_threshold(self, agent, mock_manager): state = self._make_state(mock_manager) @@ -1544,7 +1544,7 @@ class TestSlashCommands: result = agent._handle_slash_command("/context", state) assert "Context usage: ~82,000 / 100,000 tokens (82.0%)" in result - assert "Compression: due now (threshold ~80,000, 80%). Run /compact." in result + assert "Compression: due now (threshold ~80,000, 80%). Run /compress." in result def test_reset_clears_history(self, agent, mock_manager): state = self._make_state(mock_manager) @@ -1620,7 +1620,7 @@ class TestSlashCommands: side_effect=[40, 12], ), ): - result = agent._handle_slash_command("/compact", state) + result = agent._handle_slash_command("/compress", state) assert "Context compressed: 4 -> 1 messages" in result assert "~40 -> ~12 tokens" in result