Skip to content

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

fix(agent): correct timestamp import path and add legacy task-board migrations

Steven Enamakel8d4ef27edf67
diff --git a/crates/openhuman-core/src/agent/todos/runs.rs b/crates/openhuman-core/src/agent/todos/runs.rs
index 158e73f692..4edde55c7b 100644
--- a/crates/openhuman-core/src/agent/todos/runs.rs
+++ b/crates/openhuman-core/src/agent/todos/runs.rs
@@ -22,7 +22,7 @@ pub use tinyagents_graph::todos::runs::{
DEFAULT_HEARTBEAT_STALE_SECS, DEFAULT_MAX_RECLAIM_COUNT,
};
-use crate::agent::task_board::normalize_timestamp_for_wire;
+use crate::agent::todos::types::normalize_timestamp_for_wire;
use super::ops::{target, BoardLocation};
diff --git a/crates/openhuman-core/src/core/runtime/services.rs b/crates/openhuman-core/src/core/runtime/services.rs
index 9c40747c5e..15bf9eb6f9 100644
--- a/crates/openhuman-core/src/core/runtime/services.rs
+++ b/crates/openhuman-core/src/core/runtime/services.rs
@@ -432,6 +432,24 @@ async fn run_legacy_migrations(config: &Config) {
Ok(_) => {}
Err(e) => log::warn!("[thread_goals] legacy→crate migration failed: {e}"),
}
+
+ match crate::agent::tinyagents::todos::migrate_legacy_task_boards(&config.workspace_dir).await {
+ Ok(report) if report.total > 0 => log::info!(
+ "[todos] legacy→crate migration: total={} copied={} skipped={}",
+ report.total, report.copied, report.skipped
+ ),
+ Ok(_) => {}
+ Err(e) => log::warn!("[todos] legacy→crate task-board migration failed: {e}"),
+ }
+
+ match crate::agent::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}"),
+ }
}
/// Auto-connect Socket.IO to the backend when enabled by the service selection.