Skip to content

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

fix(session): invert cold turn integration refresh guard

Steven Enamakeldb62ea7f57a8
diff --git a/crates/openhuman-core/src/agent/session_host/runtime_session.rs b/crates/openhuman-core/src/agent/session_host/runtime_session.rs
index a754cae11b..f85f6bc429 100644
--- a/crates/openhuman-core/src/agent/session_host/runtime_session.rs
+++ b/crates/openhuman-core/src/agent/session_host/runtime_session.rs
@@ -223,14 +223,9 @@ impl OpenHumanTurnPrelude {
}
async fn refresh_turn_boundary(&self, cold: bool) {
- // Fetch whenever the session has no integration view yet, warm turn or
- // not. The builder only prewarms from the TTL-bound cache, so a session
- // built after it expired starts uninitialized; a resumed (warm) turn
- // used to read that same expired cache, get nothing, and run with zero
- // integration actions — a cron job could not reach `GMAIL_SEND_EMAIL`.
- // A no-op once initialized.
- self.refresh_cold_integrations().await;
- if !cold {
+ if cold {
+ self.refresh_cold_integrations().await;
+ } else {
self.refresh_dynamic_announcements().await;
}
// Integration changes are authority changes, not only display