Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

fix(slack-app): pass region when evaluating slack-app-assistant flag (#63561)

Vojta Bartoš883c012b71b5
diff --git a/products/slack_app/backend/api.py b/products/slack_app/backend/api.py
index 3f532740f821..a8909e68faf6 100644
--- a/products/slack_app/backend/api.py
+++ b/products/slack_app/backend/api.py
@@ -1718,6 +1718,9 @@ def _assistant_enabled(team: Team) -> bool:
_ASSISTANT_FEATURE_FLAG,
str(team.uuid),
groups={"organization": str(team.organization_id)},
+ person_properties={"region": get_instance_region() or "unknown"},
+ only_evaluate_locally=False,
+ send_feature_flag_events=False,
)
)
except Exception: