Skip to content

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

refactor(skills): simplify snapshot key and path comparisons

Steven Enamakel06275e9e43f6
diff --git a/crates/openhuman-core/src/skills/bundled/flow_authoring.rs b/crates/openhuman-core/src/skills/bundled/flow_authoring.rs
index 5f27baab89..9a947f046b 100644
--- a/crates/openhuman-core/src/skills/bundled/flow_authoring.rs
+++ b/crates/openhuman-core/src/skills/bundled/flow_authoring.rs
@@ -207,7 +207,7 @@ async fn prewarm_locked(
if let Err(error) = publish_snapshot(workspace, gate, resources) {
tracing::warn!(%error, "[skills][bundled] flow-authoring materialization failed; hiding builtin");
- clear_snapshot(&key);
+ clear_snapshot(key);
}
}
@@ -417,7 +417,7 @@ fn materialization_matches(workspace: &Path, gate: &DiscoveryGate, snapshot: &Sn
let Some(expected) = snapshot
.files
.iter()
- .find(|file| PathBuf::from(&file.path) == *path)
+ .find(|file| Path::new(file.path.as_str()) == path.as_path())
.map(|file| file.contents.as_str())
else {
return false;