Skip to content

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

fix(web_chat): skip session agent check-in when DEBUG_NOCACHE is set

Steven Enamakel7eed1689d9d3
diff --git a/crates/openhuman-core/src/web_chat/run_task.rs b/crates/openhuman-core/src/web_chat/run_task.rs
index d714ecebd0..1082c0f946 100644
--- a/crates/openhuman-core/src/web_chat/run_task.rs
+++ b/crates/openhuman-core/src/web_chat/run_task.rs
@@ -397,6 +397,8 @@ pub(crate) async fn run_chat_task(
thread_id,
request_id
);
+ } else if std::env::var("DEBUG_NOCACHE").is_ok() {
+ drop(agent);
} else {
checkin_session_agent(thread_id, agent, current_fp).await;
}
diff --git a/tests/saas_mode/support.rs b/tests/saas_mode/support.rs
index 79b17665d1..8c0bd168cb 100644
--- a/tests/saas_mode/support.rs
+++ b/tests/saas_mode/support.rs
@@ -409,6 +409,7 @@ pub fn start_node_logging(
.env("HOME", d.tmp.path())
.env("USERPROFILE", d.tmp.path())
.env("RUST_LOG", rust_log)
+ .env("DEBUG_NOCACHE", "1")
.stdout(std::fs::File::create(&log).unwrap())
.stderr(Stdio::null());
for var in SCRUBBED_ENV {