Skip to content

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

fix(integrations): handle missing task source store gracefully

Steven Enamakelac9d256c5e4f
diff --git a/src/openhuman/integrations/task_sources/store.rs b/src/openhuman/integrations/task_sources/store.rs
index a9503ef968..6908534f39 100644
--- a/src/openhuman/integrations/task_sources/store.rs
+++ b/src/openhuman/integrations/task_sources/store.rs
@@ -574,7 +574,7 @@ fn ensure_schema_initialized(conn: &mut Connection, db_path: &Path) -> Result<()
/// completed initialization between the caller's lock-free check and the
/// `BEGIN IMMEDIATE`, we bail early. This prevents stamping a stale version
/// on a database a concurrent process already migrated (CodeRabbit #5709).
-fn init_schema(conn: &Connection) -> Result<()> {
+fn init_schema(conn: &mut Connection) -> Result<()> {
// Immediate transaction: blocks other writers (and readers in WAL mode
// with IMMEDIATE) so no two processes can migrate the same database
// concurrently. `BEGIN IMMEDIATE` succeeds even in WAL mode.