Skip to content

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

test(session_host): set dynamic prompt source in refresh prelude

Steven Enamakeladc67660f72d
diff --git a/crates/openhuman-core/src/agent/session_host/runtime_session/prompt_refresh_tests.rs b/crates/openhuman-core/src/agent/session_host/runtime_session/prompt_refresh_tests.rs
index 5937e356a3..ecbb400a1a 100644
--- a/crates/openhuman-core/src/agent/session_host/runtime_session/prompt_refresh_tests.rs
+++ b/crates/openhuman-core/src/agent/session_host/runtime_session/prompt_refresh_tests.rs
@@ -298,7 +298,10 @@ fn composed_prelude(root: &std::path::Path, prompt: SystemPromptBuilder) -> Open
&model(Vec::new()),
root,
prompt,
- |definition| definition.extensions.refresh_prompt_on_resume = true,
+ |definition| {
+ definition.system_prompt = PromptSource::Dynamic(());
+ definition.extensions.refresh_prompt_on_resume = true;
+ },
))
}