From 16376c58918477da4fe5bbded7b6096b43355ab0 Mon Sep 17 00:00:00 2001 From: Godopu Date: Sat, 12 Sep 2026 23:11:55 +0900 Subject: [PATCH] test(adapters): align agy exit-key expectation with /exit 4d444ce changed the agy adapter's exit_key to /exit for a clean graceful shutdown but left test_cli_bridge_subcommands_and_quote_safety expecting the old 'Exit', so the full suite has failed on that one case since. Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_01VCgu9Fa9iT7TbJUSzdq4Ff --- tests/test_a4_adapter_contract.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_a4_adapter_contract.py b/tests/test_a4_adapter_contract.py index 3b1ee65..1a7d0d7 100644 --- a/tests/test_a4_adapter_contract.py +++ b/tests/test_a4_adapter_contract.py @@ -512,7 +512,7 @@ def test_cli_bridge_subcommands_and_quote_safety(): assert res.stdout.strip() == "/bin/claude --dangerously-skip-permissions --session-id uuid-test" # 3. exit-key - for agent, expected_key in [('claude', '/exit'), ('agy', 'Exit'), ('hermes', '/exit'), ('grok', '/exit'), ('opencode', '/exit'), ('codex', 'Ctrl+C')]: + for agent, expected_key in [('claude', '/exit'), ('agy', '/exit'), ('hermes', '/exit'), ('grok', '/exit'), ('opencode', '/exit'), ('codex', 'Ctrl+C')]: res = subprocess.run([sys.executable, "-m", "lib_py.agents", "exit-key", agent], capture_output=True, text=True, env=env) assert res.returncode == 0 assert res.stdout.strip() == expected_key