Skip to content

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

docs(storage): note the libtest thread-name assumption

M3gA-Mind245ebd9d00ab
diff --git a/crates/openhuman-core/src/storage/mod.rs b/crates/openhuman-core/src/storage/mod.rs
index 0250680620..35f177e803 100644
--- a/crates/openhuman-core/src/storage/mod.rs
+++ b/crates/openhuman-core/src/storage/mod.rs
@@ -267,6 +267,11 @@ fn slot_visible_here() -> bool {
}
/// libtest names each test's thread after its path (`module::tests::name`).
+///
+/// Assumes no other thread is named with `::`: runtime workers, the storage
+/// bridge and the module runtime are not. A test that spawns a helper thread
+/// with such a name makes it a "different test", so the helper stops seeing
+/// the slot its installer test set, and that installer test fails.
#[cfg(test)]
fn is_test_thread(name: &str) -> bool {
name.contains("::")