feat(issues): Add project-level enable option for LLM issue detection#112710
Merged
roggenkemper merged 10 commits intomasterfrom Apr 15, 2026
Merged
feat(issues): Add project-level enable option for LLM issue detection#112710roggenkemper merged 10 commits intomasterfrom
roggenkemper merged 10 commits intomasterfrom
Conversation
Add `llm_issue_detection_enabled` to the performance issue detection settings, consistent with how other detector toggles work. Defaults to True so existing projects are unaffected. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
d7f4586 to
26e33e4
Compare
Each new AI detected group type (HTTP, DB, Runtime Performance, Security, Code Health, General) gets its own enable/disable toggle as a sub-option under the main llm_issue_detection_enabled setting. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Rename the project option key, enum member, and serializer field from llm_issue_detection_enabled to ai_issue_detection_enabled for consistency with the new AI detected group type naming. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…lm-detection-enable-option
…issues Add GROUP_TYPE_TO_SETTING mapping and check the project's performance issue settings for the specific group type (e.g., ai_detected_http_enabled) before producing an issue occurrence. This allows users to disable specific AI detection categories while keeping others enabled. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Member
Author
|
bugbot run |
Contributor
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 2 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 9af4d00. Configure here.
ai_issue_detection_enabled has no entry in project_settings_to_group_map since it doesn't map to a single group type. Add a separate description mapping for parent-only settings so the audit log renders a meaningful message when the global AI detection toggle is changed. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…eralGroupType for audit log The parent toggle had no entry in project_settings_to_group_map, causing an empty audit log message when toggled. Map it to AIDetectedGeneralGroupType so the audit log renders a meaningful description. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…up_map The per-group-type children (ai_detected_http_enabled, etc.) should be treated like other children in thresholds_to_manage_map, not as management-level settings. Issue creation blocking is handled by GROUP_TYPE_TO_SETTING in detection.py. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Only the parent toggle belongs in DEFAULT_PROJECT_PERFORMANCE_DETECTION_SETTINGS, matching how other child thresholds get their defaults elsewhere. The children default to True via the get() fallback in detection.py. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…ttings Matches the pattern used by other callers of this option and prevents AttributeError if stored value is None. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
cvxluo
approved these changes
Apr 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Add
ai_issue_detection_enabledto the performance issue detection settings. also adds settings for specific issue types and filtering for those issue types if the setting is off