Skip to content

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

merge: resolve conflicts with upstream/main

Steven Enamakel838fc3ba447c
diff --cc src/core/runtime/services.rs
index a864c4cbd3,cc540efb73..70d9e0e365
--- a/src/core/runtime/services.rs
+++ b/src/core/runtime/services.rs
@@@ -392,37 -393,8 +393,28 @@@ async fn run_legacy_migrations(config:
Ok(_) => {}
Err(e) => log::warn!("[todos] legacy→crate task-board migration failed: {e}"),
}
+
+ // The `*.runs.json` claim/heartbeat ledgers that sat beside those boards
+ // move with them: run records now live in the crate `graph.todos.runs`
+ // store, so a board and its run log cannot drift apart across a restart.
+ // Left behind, an in-flight claim would be invisible to the reclaim sweep
+ // and its card would stay wedged at `in_progress` forever.
+ match crate::openhuman::threads::todos::runs::migrate_legacy_task_runs(&config.workspace_dir)
+ .await
+ {
+ Ok(report) if report.total > 0 => {
+ log::info!(
+ "[todos] legacy→crate run-ledger migration: total={} copied={} skipped={}",
+ report.total,
+ report.copied,
+ report.skipped
+ );
+ }
+ Ok(_) => {}
+ Err(e) => log::warn!("[todos] legacy→crate run-ledger migration failed: {e}"),
+ }
}
- fn spawn_mcp_reconnect_supervisor(config: Config) {
- static SUPERVISOR_SPAWNED: Once = Once::new();
- SUPERVISOR_SPAWNED.call_once(|| {
- tokio::spawn(async move {
- crate::openhuman::mcp::registry::supervisor::run(config).await;
- });
- });
- }
-
/// Auto-connect Socket.IO to the backend when enabled by the service selection.
pub fn spawn_socket_auto_connect(
services: ServiceSet,