The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(cli): classic view /plan and /goal reach the model as this session's turns
Tekniume1da66bf2cb0
diff --git a/tests/hermes_cli/test_gateway_chat_commands_live.py b/tests/hermes_cli/test_gateway_chat_commands_live.pyindex 063c3c49226..e2a778cc98c 100644--- a/tests/hermes_cli/test_gateway_chat_commands_live.py+++ b/tests/hermes_cli/test_gateway_chat_commands_live.py@@ -160,3 +160,18 @@ def test_classic_view_retry_undo_new_match_main(tmp_path):second = session_id()assert second != sidassert db("SELECT title FROM sessions WHERE id=?", second) == [("Second Thread",)]++[email protected]("linux")+def test_classic_view_plan_and_goal_run_on_the_gateway(tmp_path):+ """/plan queues main's plan-mode turn; /goal sets the session's goal and kicks it off. Both reach+ the model as normal turns of this session (the loopback model echoes the user text)."""+ with classic_session(tmp_path) as (send, _screen, db, session_id):+ send("first question", "RECOVERY_ACK_first question")+ send("/plan add a cache", "RECOVERY_ACK_[/plan")+ send("/goal ship the cache", "Goal set")+ send("/goal status", "Goal (")+ sid = session_id()+ users = [r[0] for r in db("SELECT content FROM messages WHERE session_id=? AND role='user'", sid)]+ assert any("add a cache" in u and "PLAN MODE" in u for u in users), users+ assert "ship the cache" in users, users