Skip to content

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

feat(storage): expose full-text rebuild count during session import

Steven Enamakel0c975fbeb2a0
diff --git a/crates/openhuman-core/src/agent/goals/mod.rs b/crates/openhuman-core/src/agent/goals/mod.rs
index 9d7b44180c..c7194f14d2 100644
--- a/crates/openhuman-core/src/agent/goals/mod.rs
+++ b/crates/openhuman-core/src/agent/goals/mod.rs
@@ -11,6 +11,7 @@ use std::sync::{Arc, Mutex};
use tinyagents_harness_tools::goals::{
GoalObserver, GoalStore, GoalTool, GoalToolKind, ThreadGoal,
};
+use tinyagents_session::port::SessionStoreProvider;
use tinytools::{PermissionLevel, Tool, ToolCallOptions, ToolPolicy, ToolResult, ToolRunContext};
/// Serialize a [`ThreadGoal`] for the existing goal event and RPC payload.
diff --git a/crates/openhuman-core/src/storage/import/sessions.rs b/crates/openhuman-core/src/storage/import/sessions.rs
index f320444154..1569b75365 100644
--- a/crates/openhuman-core/src/storage/import/sessions.rs
+++ b/crates/openhuman-core/src/storage/import/sessions.rs
@@ -100,11 +100,13 @@ fn import(backend: &Arc<dyn StorageBackend>, config: &Config) -> Result<Outcome>
report.members,
report.tasks,
report.tool_effects,
- report.entries,
] {
found += counts.read;
written += counts.imported;
}
+ // The new owner report exposes the final full-text rebuild count
+ // separately from per-family source import counts.
+ written += report.fts_rows;
}
if raw.is_dir() {