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 Enamakela3140b6f8776
diff --git a/src/openhuman/integrations/task_sources/store.rs b/src/openhuman/integrations/task_sources/store.rs
index 44fe03efeb..a9503ef968 100644
--- a/src/openhuman/integrations/task_sources/store.rs
+++ b/src/openhuman/integrations/task_sources/store.rs
@@ -514,7 +514,7 @@ const TASK_SOURCES_SCHEMA_VERSION: i64 = 1;
/// whose on-disk version no longer matches was initialized by *this* process and
/// has since been deleted or replaced, which is worth a warning; a path absent
/// from the set is an ordinary first-ever init and stays silent.
-fn ensure_schema_initialized(conn: &Connection, db_path: &Path) -> Result<()> {
+fn ensure_schema_initialized(conn: &mut Connection, db_path: &Path) -> Result<()> {
let is_current = || -> bool {
let version = conn
.query_row("PRAGMA user_version", [], |row| row.get::<_, i64>(0))