Skip to content

The agent that grows with you

test(goal): pin is_goal_control for control verbs with trailing words

kshitijk4poora56c054b40f3
diff --git a/tests/hermes_cli/test_goal_dispatch.py b/tests/hermes_cli/test_goal_dispatch.py
index f0dca0eb771..be466d06d2a 100644
--- a/tests/hermes_cli/test_goal_dispatch.py
+++ b/tests/hermes_cli/test_goal_dispatch.py
@@ -133,6 +133,8 @@ def test_control_verb_with_trailing_words_never_replaces_the_goal(command, pause
mgr.set('original objective')
if paused:
mgr.pause(reason='user-paused')
+ from hermes_cli.goal_command import is_goal_control
+ assert is_goal_control(command) # gateway busy path dispatches instead of rejecting
result = _dispatch(mgr, command)
assert goals.load_goal(mgr.session_id).goal == 'original objective'
assert ('(ignored ' in result.output) == (' ' in command)