Skip to content

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

feat(threads): migrate welcome messages into thread history

Steven Enamakel935056f29378
diff --git a/crates/openhuman-core/src/core/runtime/context.rs b/crates/openhuman-core/src/core/runtime/context.rs
index e73da88d9b..30e1da1f5e 100644
--- a/crates/openhuman-core/src/core/runtime/context.rs
+++ b/crates/openhuman-core/src/core/runtime/context.rs
@@ -305,7 +305,7 @@ impl CoreContext {
// background jobs start later, from CoreRuntime::start_services(), after a transport binds
// succeeds.
let runtime_config = config.clone();
- super::bootstrap::bootstrap_core_runtime(host_kind, config, domains, &DispatchCtx::new(ctx.clone()))
+ super::bootstrap::bootstrap_core_runtime(host_kind, config, domains, &super::DispatchCtx::new(ctx.clone()))
.await;
Ok((ctx, has_operator_token, runtime_config))
diff --git a/crates/openhuman-core/src/threads/welcome_migration.rs b/crates/openhuman-core/src/threads/welcome_migration.rs
index fbb0a845c6..87a7e3a207 100644
--- a/crates/openhuman-core/src/threads/welcome_migration.rs
+++ b/crates/openhuman-core/src/threads/welcome_migration.rs
@@ -37,6 +37,7 @@ pub struct WelcomeMigrationResult {
}
pub fn migrate_welcome_agent_artifacts(
+ ctx: &DispatchCtx,
workspace_dir: &Path,
) -> Result<WelcomeMigrationResult, String> {
let marker = workspace_dir.join(MIGRATION_MARKER);