The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
fix(tests): correct skill detection when tools array is empty
Steven Enamakel9cab8cb34968
diff --git a/tests/agent_harness_e2e.rs b/tests/agent_harness_e2e.rsindex 1a11f2be25..2dcba4ff7a 100644--- a/tests/agent_harness_e2e.rs+++ b/tests/agent_harness_e2e.rs@@ -3552,19 +3552,23 @@ fn system_prompt_text(request: &Value) -> String {#[cfg(feature = "skills")]fn use_skill_offers_pack(request: &Value, pack: &str) -> bool {let quoted = format!("\"{pack}\"");- let in_schema = request+ let Some(tools) = request.pointer("/body/tools").and_then(Value::as_array)- .into_iter()- .flatten()+ .filter(|tools| !tools.is_empty())+ else {+ return system_prompt_text(request).contains(&format!("`{pack}`"))+ || system_prompt_text(request).contains("ed);+ };+ tools+ .iter().filter(|tool| {tool.pointer("/function/name").or_else(|| tool.get("name")).and_then(Value::as_str)== Some("use_skill")})- .any(|tool| tool.to_string().contains("ed));- in_schema || system_prompt_text(request).contains(pack)+ .any(|tool| tool.to_string().contains("ed))}/// One scripted turn in which the orchestrator hands a request to a specialist