Skip to content

Commit e4e0da6

Browse files
fix(seer): Use AND for feature flags so translate flag acts as killswitch
Change the state endpoint feature flag check from OR to AND so that gen-ai-search-agent-translate must always be enabled for access. This lets the translate flag serve as a global killswitch for all search agent functionality. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent c143df6 commit e4e0da6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sentry/seer/endpoints/search_agent_state.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def get(self, request: Request, organization: Organization, run_id: str) -> Resp
8383
"""
8484
has_feature = features.has(
8585
"organizations:gen-ai-search-agent-translate", organization, actor=request.user
86-
) or features.has(
86+
) and features.has(
8787
"organizations:gen-ai-explore-metrics-search", organization, actor=request.user
8888
)
8989
if not has_feature:

0 commit comments

Comments
 (0)