The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(tui_gateway): pin the tools.configure busy refusal during a compaction
kshitijk4poor352fd687577d
diff --git a/tests/tui_gateway/test_busy_compression_demotion.py b/tests/tui_gateway/test_busy_compression_demotion.pyindex bb7d3ba041f..b5d93d421ce 100644--- a/tests/tui_gateway/test_busy_compression_demotion.py+++ b/tests/tui_gateway/test_busy_compression_demotion.py@@ -220,6 +220,8 @@ def test_submit_during_manual_compress_is_queued_and_reply_persists(monkeypatch)assert session["running"] is Truesecond = server._methods["session.compress"]("r3", {"session_id": "sid"}) # the locked claim maps to busyassert second["error"]["code"] == 4009+ # tools.configure rebuilds the agent (history_version bump): refused before it reads the action+ assert server._methods["tools.configure"]("r4", {"session_id": "sid"})["error"]["code"] == 4009# "/compress --aggressive" never touches history: answered without claiming (or draining) the busy sessionassert server._compress_live_with_feedback("sid", session, agent, "--aggressive", snapshot_kwargs=True) == \ccm.AGGRESSIVE_UNSUPPORTED