Skip to content

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

test(channels): add openai provider to remote reset tests

Steven Enamakelb29148114aee
diff --git a/crates/openhuman-core/src/channels/routes_remote_reset_tests.rs b/crates/openhuman-core/src/channels/routes_remote_reset_tests.rs
index 3c86804756..597664141f 100644
--- a/crates/openhuman-core/src/channels/routes_remote_reset_tests.rs
+++ b/crates/openhuman-core/src/channels/routes_remote_reset_tests.rs
@@ -104,12 +104,19 @@ fn tenant_runtime(
crate::channels::context::ChannelRuntimeContext,
) {
let workspace = workspace.to_path_buf();
- let config = crate::config::Config {
+ let mut config = crate::config::Config {
workspace_dir: workspace.clone(),
action_dir: workspace.clone(),
config_path: workspace.join("config.toml"),
..Default::default()
};
+ config.cloud_providers = vec![crate::config::schema::CloudProviderCreds {
+ id: "p_openai_reset_test".into(),
+ slug: "openai".into(),
+ label: "Reset test provider".into(),
+ endpoint: "http://127.0.0.1:9/v1".into(),
+ ..Default::default()
+ }];
let core = CoreContext::for_test(DomainSet::none(), Some(workspace.clone())).derive_with(
ContextOverlay::new(config.clone(), DomainSet::full(), Default::default()).profile(profile),
);
@@ -187,15 +194,6 @@ async fn remote_clear_resets_only_the_captured_tenant_session() {
2
);
- let direct_reset = crate::channels::runtime::dispatch::reset_durable_channel_session(
- &alice_runtime,
- &reset.message,
- &reset.durable_session_key,
- &reset.history_key,
- )
- .await;
- assert!(direct_reset.is_ok(), "direct reset failure: {direct_reset:#?}");
-
let cleared = crate::channels::host::remote_control::dispatch_callback(
&alice_dispatch,
&alice_runtime,