Skip to content

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

chore: files changed src/openhuman/config/workspace/ops.rs,src/openhuman/platform/startup/ops.rs

Steven Enamakel7ba67d369f3b
diff --git a/src/openhuman/config/workspace/ops.rs b/src/openhuman/config/workspace/ops.rs
index a287997071..a45a8c40bd 100644
--- a/src/openhuman/config/workspace/ops.rs
+++ b/src/openhuman/config/workspace/ops.rs
@@ -1,7 +1,7 @@
use serde_json::json;
use crate::openhuman::config::rpc as config_rpc;
-use crate::openhuman::skills::{init_workflows_dir, install_bundled_skills};
+use crate::openhuman::skills::init_workflows_dir;
use std::path::Path;
const BOOTSTRAP_FILES: [(&str, &str); 2] = [
@@ -102,11 +102,6 @@ pub async fn init_workspace(force: bool) -> Result<serde_json::Value, String> {
init_workflows_dir(&workspace_dir)
.map_err(|e| format!("failed to initialize skills dir: {e}"))?;
- // Materialise the skills compiled into this binary. Deliberately not
- // fallible: a workspace that cannot take a builtin skill boots without it
- // (the failure is logged per skill) rather than refusing to boot at all —
- // these are conveniences the model looks up, not state anything depends on.
- install_bundled_skills(&workspace_dir);
// Report what the call actually did, not what it was expected to do.
//
diff --git a/src/openhuman/platform/startup/ops.rs b/src/openhuman/platform/startup/ops.rs
index b693990649..34c268baa9 100644
--- a/src/openhuman/platform/startup/ops.rs
+++ b/src/openhuman/platform/startup/ops.rs
@@ -5,6 +5,15 @@ use std::path::Path;
/// Failures are logged and do not abort startup. Individual migration helpers
/// remain responsible for their own idempotency markers.
pub fn run_workspace_migrations(workspace_dir: &Path) {
+ // Skills compiled into the binary, written out under
+ // `<workspace>/.openhuman/builtin-skills/` so discovery finds them like any
+ // other bundle. Here rather than in `init_workspace` because that is a
+ // one-shot RPC: an existing workspace never runs it again, so an upgrade
+ // that ships a new page would reach nobody. This runs on every core boot,
+ // which is also every workspace switch (login/logout restarts the core),
+ // and a bundle whose digest already matches is a single file read.
+ crate::openhuman::skills::install_bundled_skills(workspace_dir);
+
match crate::openhuman::agent::harness::session::migrate_session_layout_if_needed(workspace_dir)
{
Ok(outcome) if outcome.already_done => {