Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

docs(automation): document OrganizationIs condition as reserved

Richie McIlroyad4ed6726215
diff --git a/crates/automation/src/lib.rs b/crates/automation/src/lib.rs
index 763ec0b99..f1b9fc39f 100644
--- a/crates/automation/src/lib.rs
+++ b/crates/automation/src/lib.rs
@@ -170,6 +170,9 @@ fn evaluate_condition(condition: &Condition, ctx: &TriggerContext) -> bool {
.window_title
.as_ref()
.is_some_and(|t| t.to_lowercase().contains(&pattern.to_lowercase())),
+ // Reserved for future per-organization filtering: no trigger currently populates
+ // `organization_id`, and the desktop UI hides this condition (CONDITION_REQUIRES maps it to
+ // null), so this arm stays inert until org context is plumbed through the trigger pipeline.
Condition::OrganizationIs { id } => ctx.organization_id.as_ref() == Some(id),
}
}