Skip to content

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

fix(saas): keep threads_delete and threads_purge off the user surface

Steven Enamakel1b1e31f5801c
diff --git a/crates/openhuman-core/src/user_agents/surface_tests.rs b/crates/openhuman-core/src/user_agents/surface_tests.rs
index 733fd43d3a..37e9802a02 100644
--- a/crates/openhuman-core/src/user_agents/surface_tests.rs
+++ b/crates/openhuman-core/src/user_agents/surface_tests.rs
@@ -96,3 +96,10 @@ fn a_saas_task_without_scope_sees_nothing() {
assert!(visible_in(false, Scope::None, method, operator), "{method}");
}
}
+
+#[test]
+fn delete_and_purge_stay_closed_to_users() {
+ for method in ["openhuman.threads_delete", "openhuman.threads_purge"] {
+ assert!(!visible_in(true, Scope::User, method, false), "{method}");
+ }
+}