Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

test(orchestration): update steering message assertion

Steven Enamakel50096a0440d0
diff --git a/crates/openhuman-core/src/agent/orchestration/running_subagents_steering_tests.rs b/crates/openhuman-core/src/agent/orchestration/running_subagents_steering_tests.rs
index 8999ce22b5..796e56399b 100644
--- a/crates/openhuman-core/src/agent/orchestration/running_subagents_steering_tests.rs
+++ b/crates/openhuman-core/src/agent/orchestration/running_subagents_steering_tests.rs
@@ -64,7 +64,12 @@ async fn steer_prefers_registered_tinyagents_handle() {
assert_eq!(commands.len(), 1);
match &commands[0] {
SteeringCommand::InjectMessage(message) => {
- assert_eq!(message.text(), "[User steering message]: refocus");
+ // TinyAgents frames a parent's steer to a running subagent as coming
+ // from the parent agent, with the text escaped inside a tagged block.
+ assert_eq!(
+ message.text(),
+ "[Steering message from the parent agent, not the user]: <parent_agent_message>\n\"refocus\"\n</parent_agent_message>"
+ );
}
other => panic!("expected injected steering message, got {other:?}"),
}