Skip to content

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

chore(web_chat): add DBG_NOCACHE escape hatch to session checkin

Steven Enamakel8ecca07e20b7
diff --git a/crates/openhuman-core/src/web_chat/session.rs b/crates/openhuman-core/src/web_chat/session.rs
index fa0570287a..6385b6b081 100644
--- a/crates/openhuman-core/src/web_chat/session.rs
+++ b/crates/openhuman-core/src/web_chat/session.rs
@@ -586,6 +586,7 @@ pub(crate) async fn checkin_session_agent(
fingerprint: SessionCacheFingerprint,
) {
let mut sessions = super::ops::thread_sessions(ctx).lock_owned().await;
+ if std::env::var("DBG_NOCACHE").is_ok() { drop(agent); let _ = fingerprint; return; }
sessions.insert(
super::ops::key_for(ctx, thread_id),
SessionEntry { agent, fingerprint },