Skip to content

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

refactor(tinyagents): simplify call effect middleware

Steven Enamakeldbbe402bd5f6
diff --git a/crates/openhuman-core/src/agent/tinyagents/middleware/call_effect.rs b/crates/openhuman-core/src/agent/tinyagents/middleware/call_effect.rs
index 38f5bbe37e..a1be76ca59 100644
--- a/crates/openhuman-core/src/agent/tinyagents/middleware/call_effect.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/middleware/call_effect.rs
@@ -215,8 +215,5 @@ pub(crate) fn call_effect(lookup: Option<&ToolFactsLookup>, tool: &str, args: &V
// A target the lookup does not know (a Composio slug, a packed tool) is
// judged by its name alone: being reached through a read-only-declared
// dispatcher says nothing about it.
- match leaf_effect(inner_facts, target.tool) {
- CallEffect::Unknown => CallEffect::Unknown,
- known => known,
- }
+ leaf_effect(inner_facts, target.tool)
}