Skip to content

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

test(session_host): seed managed inference credential in juice test

Steven Enamakelfe61aba34c0a
diff --git a/crates/openhuman-core/src/agent/session_host/runtime_session_juice_tests.rs b/crates/openhuman-core/src/agent/session_host/runtime_session_juice_tests.rs
index 65f166aeea..4b06cbaad4 100644
--- a/crates/openhuman-core/src/agent/session_host/runtime_session_juice_tests.rs
+++ b/crates/openhuman-core/src/agent/session_host/runtime_session_juice_tests.rs
@@ -55,6 +55,11 @@ async fn a_resumed_thread_keeps_recorded_juice_specs_and_executors_when_repl_is_
current_config.tokenjuice.router_enabled = false;
current_config.tokenjuice.ccr_enabled = false;
current_config.tokenjuice.repl_handle_enabled = false;
+ crate::security::credentials::api_key::store_api_key(
+ &current_config,
+ "test-session-fixture-key",
+ )
+ .expect("store the managed inference fixture credential");
assert!(repl_tools_for(&current_config).is_empty());
let mut host = crate::agent::OpenHumanSessionHost::from_config_for_agent(
&crate::core::runtime::DispatchCtx::ambient(),