Skip to content

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

chore: files changed crates/openhuman-core/src/platform/about_app/ops.rs,crates/openhuman-core/src/p

Steven Enamakel432987fcb6eb
diff --git a/crates/openhuman-core/src/platform/about_app/ops.rs b/crates/openhuman-core/src/platform/about_app/ops.rs
index 82ecd92c18..fa27c79fd1 100644
--- a/crates/openhuman-core/src/platform/about_app/ops.rs
+++ b/crates/openhuman-core/src/platform/about_app/ops.rs
@@ -27,6 +27,11 @@ pub fn apply_components(capability: Capability, components: &ComponentSet) -> Ca
let component = match capability.id {
"security.sandbox_backends" => Some("sandbox"),
"conversation.reply_remix" => Some("memes"),
+ // Scheduled jobs run in the tinyflows module.
+ "automation.view_cron_jobs"
+ | "automation.set_job_intervals"
+ | "automation.view_execution_history"
+ | "automation.morning_briefing" => Some("tinyflows"),
_ => component_for_domain(capability.domain),
};
match component {
diff --git a/crates/openhuman-core/src/platform/about_app/ops_tests.rs b/crates/openhuman-core/src/platform/about_app/ops_tests.rs
index ef299ef6ed..3d2200f854 100644
--- a/crates/openhuman-core/src/platform/about_app/ops_tests.rs
+++ b/crates/openhuman-core/src/platform/about_app/ops_tests.rs
@@ -69,6 +69,25 @@ fn reply_remix_capability_shows_disabled_when_the_memes_component_is_off() {
assert_eq!(apply_components(cap, &off("voice")).status, cap.status);
}
+#[test]
+fn scheduled_job_capabilities_show_disabled_when_the_tinyflows_component_is_off() {
+ for id in [
+ "automation.view_cron_jobs",
+ "automation.set_job_intervals",
+ "automation.view_execution_history",
+ "automation.morning_briefing",
+ ] {
+ let cap = super::super::lookup(id).expect(id);
+ assert_ne!(cap.status, CapabilityStatus::Disabled, "{id}");
+ assert_eq!(
+ apply_components(cap, &off("tinyflows")).status,
+ CapabilityStatus::Disabled,
+ "{id}"
+ );
+ assert_eq!(apply_components(cap, &off("flows")).status, cap.status, "{id}");
+ }
+}
+
#[tokio::test]
async fn an_explicit_context_decides_which_capabilities_are_disabled() {
use crate::core::runtime::context::CoreContext;