Skip to content

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

fix(config): remove unnecessary dereference in overlay path lookup

Steven Enamakeld45ae155005d
diff --git a/crates/openhuman-core/src/config/schema/load/context_overlay.rs b/crates/openhuman-core/src/config/schema/load/context_overlay.rs
index 02adff858b..a38fd806d4 100644
--- a/crates/openhuman-core/src/config/schema/load/context_overlay.rs
+++ b/crates/openhuman-core/src/config/schema/load/context_overlay.rs
@@ -94,7 +94,7 @@ impl ConfigContextOverlay {
// Some owned defaults are omitted by serde (for example Legacy
// memory layout). Record absence as an explicit removal so a
// refreshed document cannot override the profile's default.
- let value = value_at_path(&child_value, *path).cloned();
+ let value = value_at_path(&child_value, path).cloned();
let path: Vec<String> = path.iter().map(|part| (*part).to_string()).collect();
changes.retain(|change| !change.path.starts_with(&path));
changes.push(Change { path, value });