Skip to content

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

refactor(memory): update tinyhumans engine key check

Steven Enamakel7ac0b800d081
diff --git a/crates/openhuman-core/src/memory/engine.rs b/crates/openhuman-core/src/memory/engine.rs
index 202053dede..a21ed9a17f 100644
--- a/crates/openhuman-core/src/memory/engine.rs
+++ b/crates/openhuman-core/src/memory/engine.rs
@@ -494,7 +494,10 @@ pub fn clear_cortexdb_key(config: &Config) -> Result<bool> {
#[must_use]
pub fn has_key(config: &Config, id: &str) -> bool {
match id {
- TINYHUMANS_ENGINE => resolve(config).is_on(),
+ TINYHUMANS_ENGINE => {
+ crate::security::credentials::session_support::resolve_backend_credential(config)
+ .is_ok()
+ }
CORTEXDB_ENGINE => matches!(read_cortexdb_key(config), Ok(Some(_))),
_ => false,
}