Skip to content

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

refactor(subagent_host): simplify terminal agent id check

Steven Enamakelb98741bb7fb7
diff --git a/crates/openhuman-core/src/agent/subagent_host/lifecycle.rs b/crates/openhuman-core/src/agent/subagent_host/lifecycle.rs
index 059c6a89b5..679a91cb88 100644
--- a/crates/openhuman-core/src/agent/subagent_host/lifecycle.rs
+++ b/crates/openhuman-core/src/agent/subagent_host/lifecycle.rs
@@ -595,9 +595,8 @@ impl OpenHumanPersistence {
) -> Result<Option<(String, u64)>, SubagentError> {
let record = self.store()?.record(key)?;
if let Some(terminal) = record.terminal {
- return Ok(
- (!terminal.agent_id.is_empty()).then_some((terminal.agent_id, terminal.elapsed_ms))
- );
+ let named = !terminal.agent_id.is_empty();
+ return Ok(named.then_some((terminal.agent_id, terminal.elapsed_ms)));
}
Ok(Self::pause_of(&record, key)?.and_then(|checkpoint| {
(!checkpoint.agent_id.is_empty())
diff --git a/scripts/ci/check-gated-test-allowlist.sh b/scripts/ci/check-gated-test-allowlist.sh
index 0427b2b25c..06778edcb2 100755
--- a/scripts/ci/check-gated-test-allowlist.sh
+++ b/scripts/ci/check-gated-test-allowlist.sh
@@ -46,7 +46,6 @@ modules/ops_components_tests.rs
modules/registry_tests.rs
modules/runtime.rs
modules/runtime_tests.rs
-modules/storage_grant_tinywallet_tests.rs
platform/socket/event_handlers.rs
profiles/surface_tests.rs
threads/store/mod.rs