Skip to content

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

fix(cron): retain opened backend in document port

Steven Enamakelee77993cf2be
diff --git a/crates/openhuman-core/src/cron/documents_port.rs b/crates/openhuman-core/src/cron/documents_port.rs
index 5de3ca4720..19707fb02d 100644
--- a/crates/openhuman-core/src/cron/documents_port.rs
+++ b/crates/openhuman-core/src/cron/documents_port.rs
@@ -87,7 +87,10 @@ impl DocScope {
Ok(Self {
workspace_dir: config.workspace_dir.clone(),
scope: opened.scope,
- backend: None,
+ // The schedule call crosses the synchronous storage bridge before
+ // TinyFlows calls this host document port. Keep the backend we
+ // already opened so the callback does not re-enter that bridge.
+ backend: Some(opened.backend),
})
}