Skip to content

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

fix(ops_tests): correct test assertion for empty input handling

Steven Enamakeld17eb67ff8b3
diff --git a/crates/openhuman-core/src/commands/ops_tests.rs b/crates/openhuman-core/src/commands/ops_tests.rs
index 07b9ae726b..c958ca53ee 100644
--- a/crates/openhuman-core/src/commands/ops_tests.rs
+++ b/crates/openhuman-core/src/commands/ops_tests.rs
@@ -65,7 +65,7 @@ async fn commands_list_always_includes_every_builtin_even_if_catalogs_fail() {
// they do, every builtin is still present and the call itself never
// errors.
let outcome = commands_list().await.expect("commands_list must not fail");
- let ids: Vec<&str> = outcome.value.iter().map(|e| e.id.as_str()).collect();
+ let ids: Vec<&str> = outcome.value.commands.iter().map(|e| e.id.as_str()).collect();
for expected in ["new", "clear", "plan", "build", "goal", "todo", "stop"] {
assert!(
ids.contains(&expected),
@@ -74,6 +74,7 @@ async fn commands_list_always_includes_every_builtin_even_if_catalogs_fail() {
}
let builtin_count = outcome
.value
+ .commands
.iter()
.filter(|e| e.kind == CommandKind::Builtin)
.count();