Issue view title generation calls Seer (127.0.0.1:9091) on self-hosted; hide_ai_features cannot be set in the UI
Maintainer thường phản hồi trong vòng 2 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 42/100
Hướng nghiên cứu
Start by tracing the self-hosted configuration and the referenced createIssueViewModal.tsx, useGenerateIssueViewTitle.tsx, and sentry.seer.endpoints.issue_view_title_generate paths. Check how sentry:hide_ai_features and Seer availability are represented in configuration and organization settings. Done means self-hosted without Seer does not send the title-generation request and the settings toggle reflects the effective option.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Self-Hosted Version
26.10.0
CPU Architecture
x86_64
Docker Version
Docker Engine on Flatcar Container Linux
Docker Compose Version
v2
Machine Specification
- My system meets the minimum system requirements of Sentry
Installation Type
Fresh install / regular upgrades via ./install.sh
Steps to Reproduce
- Run self-hosted 26.10.0 (no Seer service).
- Go to Issues and create a new issue view (custom view) without entering a name.
- The "Create view" modal (
createIssueViewModal.tsx) callsuseGenerateIssueViewTitle, which POSTs to/api/0/organizations/{org}/issue-view-title/generate/.
Expected Result
On self-hosted without Seer, generative AI features are not used, and no request is sent to a Seer service.
Actual Result
The endpoint sentry.seer.endpoints.issue_view_title_generate calls Seer at the default URL and fails. Every time, the internal project gets a new error event:
MaxRetryError: HTTPConnectionPool(host='127.0.0.1', port=9091): Max retries exceeded with url: /v1/llm/generate (Caused by NewConnectionError(... Failed to establish a new connection: [Errno 111] Connection refused))
logger: sentry.seer.endpoints.issue_view_title_generate
Related, same cause: ProcessingDeadlineExceeded: execution deadline of 35 seconds exceeded by sentry.tasks.ai_agent_monitoring.fetch_ai_model.
Why it is hard to turn off on self-hosted:
-
Backend: the endpoint only checks
organization.get_option("sentry:hide_ai_features", False). No feature flag guards it, soSENTRY_FEATURESinsentry.conf.pycannot disable it. -
Frontend:
useGenerateIssueViewTitle.tsxruns the request when!organization.hideAiFeatures && enabled && !!query. -
Organization Settings → "Show Generative AI Features": on self-hosted the toggle is shown greyed out and off, but the option is not set. The API still returns
hideAiFeatures: false, so the request is sent. -
The only workaround is to set the option manually:
docker compose exec web sentry exec -c "from sentry.models.organization import Organization; [o.update_option('sentry:hide_ai_features', True) for o in Organization.objects.all()]"
Suggestions:
- Default
sentry:hide_ai_featurestoTrueon self-hosted (for example viaSENTRY_SELF_HOSTEDor when no Seer URL is configured), or - let the Seer endpoints and the UI check a feature flag / whether Seer is configured, and
- make the greyed-out toggle reflect the real option value.
Event ID
No response
- Ngôn ngữ chính
- Shell
- Star
- 9.7k
- Fork
- 2k
- Merge trung bình
- 3 ngày 2 giờ
- Pull request đã merge (30 ngày)
- 16
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của getsentry/self-hosted
-
Waiting for: Product Owner
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
getsentry/self-hosted#4644 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
getsentry/self-hosted#4518 · 3 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Waiting for: Product Owner
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 73/100
getsentry/self-hosted#4642 · 3 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Waiting for: Community
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 28/100
getsentry/self-hosted#4637 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Waiting for: Product Owner
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
getsentry/self-hosted#4634 ·
Maintainer thường phản hồi trong vòng 2 ngày
Tất cả issue của getsentry/self-hosted
Issue tương tự
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
ajithakdev/claude-desktop-rpm#43 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
aws/aws-networking-best-practices#256 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
area:terraform source:reader type:content-error
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
stephrobert/blog-roadmap#268 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
fossi-foundation/globalfoundries-pdk-libs-gf180mcu_fd_pv#61 ·
-
ChatGPT directory is behind mainĐang mởopenai-directory
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100