Issue view title generation calls Seer (127.0.0.1:9091) on self-hosted; hide_ai_features cannot be set in the UI

オープン
#4,623 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
42/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
docker, docker-compose, shell
領域
backend, frontend

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

Waiting for: Product Owner
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
  1. Run self-hosted 26.10.0 (no Seer service).
  2. Go to Issues and create a new issue view (custom view) without entering a name.
  3. The "Create view" modal (createIssueViewModal.tsx) calls useGenerateIssueViewTitle, 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, so SENTRY_FEATURES in sentry.conf.py cannot disable it.

  • Frontend: useGenerateIssueViewTitle.tsx runs 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_features to True on self-hosted (for example via SENTRY_SELF_HOSTED or 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

主要言語
Shell
スター
9.7k
フォーク
2k
平均マージ
3日 2時間
マージ済み PR(30日)
16

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

getsentry/self-hosted のほかの issue

getsentry/self-hosted の issue をすべて見る

似ている issue

Shell/Bash の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。