Skip to content

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

chore: files changed crates/openhuman-core/src/memory/import.rs

Steven Enamakeldae66cd2b104
diff --git a/crates/openhuman-core/src/memory/import.rs b/crates/openhuman-core/src/memory/import.rs
index 1fee02197c..3f973f7d5f 100644
--- a/crates/openhuman-core/src/memory/import.rs
+++ b/crates/openhuman-core/src/memory/import.rs
@@ -269,12 +269,16 @@ async fn launch(
started: false,
});
}
+ let action = match mode {
+ Mode::Import => "import",
+ Mode::Retry | Mode::ResumeRetry => "retry",
+ };
let reason = if MIGRATION.is_running(&workspace) {
- "memory is being organized; import once that finishes"
+ format!("memory is being organized; {action} once that finishes")
} else {
- "a conversation backfill is running; import once it finishes"
+ format!("a conversation backfill is running; {action} once it finishes")
};
- return Err(Error::InvalidRequest(reason.into()));
+ return Err(Error::InvalidRequest(reason));
};
let bound = engine::resolve(config).engine()?;
let driver = importer(config, bound.engine, consent, paused);