Skip to content

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

refactor(session_store): extract workspace path helpers

Steven Enamakelc80abb23f668
diff --git a/crates/openhuman-core/src/agent/session_store/workspace.rs b/crates/openhuman-core/src/agent/session_store/workspace.rs
index c78954ebf9..29e6991078 100644
--- a/crates/openhuman-core/src/agent/session_store/workspace.rs
+++ b/crates/openhuman-core/src/agent/session_store/workspace.rs
@@ -301,11 +301,16 @@ impl SessionStoreProvider for WorkspaceSessionStores {
Self::current().conversations_for_agent(agent_id)
}
+ /// Nothing to sweep at install time: the workspaces are the profiles', and
+ /// a profile's turns are recovered when its lease is taken over
+ /// (`profiles::recovery`), not when its stores open. Resolving "the
+ /// current workspace" here would also open the default workspace's
+ /// database before any profile exists.
fn recover(&self) -> anyhow::Result<()> {
- Self::current().recover()
+ Ok(())
}
fn destination_key(&self) -> Option<String> {
- Self::current().destination_key()
+ Some("workspace-default".to_string())
}
}