Skip to content

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

chore(agent): remove unused rpc registry module

Steven Enamakel9600f411b3ed
diff --git a/crates/openhuman-core/src/agent/registry/rpc.rs b/crates/openhuman-core/src/agent/registry/rpc.rs
index 83966c28cc..4e81a475ff 100644
--- a/crates/openhuman-core/src/agent/registry/rpc.rs
+++ b/crates/openhuman-core/src/agent/registry/rpc.rs
@@ -105,8 +105,10 @@ impl CreateCustomRequest {
system_prompt: self.system_prompt,
tool_allowlist: self.tool_allowlist,
tool_denylist: self.tool_denylist,
- // Passed through: an empty set clears the entry's rules (`apply_patch`).
- tool_rules: self.tool_rules,
+ // A new entry never stores a no-op rule set. (Clearing is an
+ // `update`: `AgentRegistryPatch` passes an empty set through to
+ // `apply_patch`, which clears the field.)
+ tool_rules: self.tool_rules.filter(|rules| !rules.is_permissive()),
subagents: self.subagents,
tags: self.tags,
metadata: self.metadata.unwrap_or(Value::Null),