Skip to content

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

refactor(config): simplify watcher scope creation

Steven Enamakele77017fb7860
diff --git a/crates/openhuman-core/src/config/workspace/state.rs b/crates/openhuman-core/src/config/workspace/state.rs
index 5a75dfcdc5..88fe0ce40a 100644
--- a/crates/openhuman-core/src/config/workspace/state.rs
+++ b/crates/openhuman-core/src/config/workspace/state.rs
@@ -49,9 +49,8 @@ impl WatcherStateStore {
}
fn from_backend(backend: Arc<dyn StorageBackend>) -> Result<Self> {
- let scope = Scope::new("local/vault-watcher").context("build watcher scope")?;
let storage = backend
- .for_scope(&scope)
+ .for_scope(&Scope::local())
.map_err(anyhow::Error::from)
.context("open watcher scope")?;
Ok(Self {