Skip to content

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

fix(update): use platform-aware staged binary name

Steven Enamakel0a0b93d40844
diff --git a/crates/openhuman-core/src/platform/update/core.rs b/crates/openhuman-core/src/platform/update/core.rs
index e0acf64b81..59564381d9 100644
--- a/crates/openhuman-core/src/platform/update/core.rs
+++ b/crates/openhuman-core/src/platform/update/core.rs
@@ -116,6 +116,14 @@ fn staged_binary_name() -> &'static str {
}
}
+fn staged_binary_staging_name() -> &'static str {
+ if cfg!(windows) {
+ "openhuman-core-staged.exe"
+ } else {
+ "openhuman-core.staged"
+ }
+}
+
/// Make `tmp` executable and move it onto `dest` atomically, cleaning up `tmp`
/// if the rename fails.
fn finalize_executable(tmp: &std::path::Path, dest: &std::path::Path) -> Result<(), String> {
@@ -457,7 +465,7 @@ pub async fn download_and_stage_with_version(
let staged_path = if is_archive {
// Keep the downloaded binary separate from the running executable;
// the restart flow owns installing/replacing it.
- dir.join(format!("{}.staged", staged_binary_name()))
+ dir.join(staged_binary_staging_name())
} else {
dir.join(asset_name)
};
diff --git a/crates/openhuman-core/src/platform/update/core_tests.rs b/crates/openhuman-core/src/platform/update/core_tests.rs
index 8cd4101143..4c7eeb04de 100644
--- a/crates/openhuman-core/src/platform/update/core_tests.rs
+++ b/crates/openhuman-core/src/platform/update/core_tests.rs
@@ -441,7 +441,7 @@ fn staging_extracts_zip_when_archive_format_is_explicit() {
// on the temporary archive path's extension.
let downloaded = dir.path().join(".release.zip.tmp");
std::fs::copy(&archive, &downloaded).expect("copy to download temp path");
- let dest = dir.path().join(format!("{}.staged", staged_binary_name()));
+ let dest = dir.path().join(staged_binary_staging_name());
extract_core_binary(&downloaded, &dest, true).expect("zip binary must extract");
diff --git a/scripts/ci/agent-runtime-boundary-baseline.json b/scripts/ci/agent-runtime-boundary-baseline.json
index e8d3d41df6..3bb73a33c8 100644
--- a/scripts/ci/agent-runtime-boundary-baseline.json
+++ b/scripts/ci/agent-runtime-boundary-baseline.json
@@ -1077,13 +1077,6 @@
"text": "pub use tinyagents_graph::orchestration::OrchestrationTaskStatus;",
"occurrence": 1
},
- {
- "rule": "openhuman-upstream-reexport",
- "path": "crates/openhuman-core/src/agent/subagent_host/handoff.rs",
- "line": 37,
- "text": "pub(crate) use tinyagents_harness::handoff::{",
- "occurrence": 1
- },
{
"rule": "openhuman-upstream-reexport",
"path": "crates/openhuman-core/src/agent/todos/ops.rs",
diff --git a/scripts/kernel-floor.limits b/scripts/kernel-floor.limits
index 51ee434dd8..2d61fd7ac9 100644
--- a/scripts/kernel-floor.limits
+++ b/scripts/kernel-floor.limits
@@ -13,6 +13,10 @@
# Simulate with: scripts/dep-sim.py --cut <crates>
#
# History
+# 304/283/2 2026-09-29 The TinyMCP 0.3.5 dependency refresh lowers
+# the measured flows profile by three resolved package
+# versions and three unique crate names; native builds
+# remain unchanged. Ratchet to the new floor.
# 307/286/2 2026-09-27 The multi-provider search config directly uses the
# required TinySearch bus contract in always-on settings
# and policy code. This adds one resolved crate/name and
@@ -604,4 +608,4 @@
# into the required host runtime. The migration adds five
# resolved packages and four unique crate names; it does
# not add a native build dependency.
-flows:307:286:2
+flows:304:283:2