Skip to content

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

fix(plan_exit): block build flip when tenant context is missing

Steven Enamakelb421f6be7443
diff --git a/crates/openhuman-core/src/agent/tools/plan_exit.rs b/crates/openhuman-core/src/agent/tools/plan_exit.rs
index 95de13b9ed..cfdecdd27e 100644
--- a/crates/openhuman-core/src/agent/tools/plan_exit.rs
+++ b/crates/openhuman-core/src/agent/tools/plan_exit.rs
@@ -114,6 +114,11 @@ impl PlanExitTool {
thread_id = %thread_id,
"[tool][plan_exit] a plan review is still parked on this thread — not flipping to build"
);
+ } else if tenant.is_none() {
+ tracing::warn!(
+ thread_id = %thread_id,
+ "[tool][plan_exit] tenant context is unavailable — not flipping to build"
+ );
} else {
tracing::info!(
thread_id = %thread_id,