Skip to content

[9.2] [GenAi] Clean up default LLM setting feature flag. (#242543)#243234

Merged
KDKHD merged 4 commits intoelastic:9.2from
KDKHD:backport/9.2/pr-242543
Nov 20, 2025
Merged

[9.2] [GenAi] Clean up default LLM setting feature flag. (#242543)#243234
KDKHD merged 4 commits intoelastic:9.2from
KDKHD:backport/9.2/pr-242543

Conversation

@KDKHD
Copy link
Copy Markdown
Member

@KDKHD KDKHD commented Nov 17, 2025

Backport

This will backport the following commits from main to 9.2:

Questions ?

Please refer to the Backport tool documentation

## Summary

Summarize your PR. If it involves visual changes include a screenshot or
gif.

Removes the `aiAssistant.defaultLlmSettingEnabled` feature flag and
associated cleanup.

### Changes

- **Removed feature flag**: Deleted
`AI_ASSISTANT_DEFAULT_LLM_SETTING_ENABLED` and
`AI_ASSISTANT_DEFAULT_LLM_SETTING_ENABLED_VALUE` constants from both
`gen_ai_settings` and `security_solution` plugins
- **Simplified code**: Removed all feature flag checks - now always uses
the new default connector behavior
- **Centralized constants**: Moved `DEFAULT_VALUE_REPORT_*` settings to
`@kbn/management-settings-ids` package to avoid duplication
- **Fixed serverless**: Added value report settings to
`SECURITY_PROJECT_SETTINGS` whitelist and removed unnecessary async
wrapper in `security_solution_serverless` plugin
- Serverless settings properly whitelisted for value report features

### Checklist

Check the PR satisfies following conditions.

Reviewers should verify this PR satisfies this list as well.

- [X] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)
- [X]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials
- [X] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [X] If a plugin configuration key changed, check if it needs to be
allowlisted in the cloud and added to the [docker
list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)
- [X] This was checked for breaking HTTP API changes, and any breaking
changes have been approved by the breaking-change committee. The
`release_note:breaking` label should be applied in these situations.
- [X] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed
- [X] The PR description includes the appropriate Release Notes section,
and the correct `release_note:*` label is applied per the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
- [X] Review the [backport
guidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)
and apply applicable `backport:*` labels.

### Identify risks

Does this PR introduce any risks? For example, consider risks like hard
to test bugs, performance regression, potential of data loss.

Describe the risk, its severity, and mitigation for each identified
risk. Invite stakeholders and evaluate how to proceed before merging.

- [ ] [See some risk
examples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx)
- [ ] ...

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
(cherry picked from commit 2c75d4f)

# Conflicts:
#	x-pack/solutions/security/plugins/security_solution_serverless/tsconfig.json
@KDKHD KDKHD requested a review from kibanamachine as a code owner November 17, 2025 15:46
@KDKHD KDKHD added the backport This PR is a backport of another PR label Nov 17, 2025
@KDKHD KDKHD enabled auto-merge (squash) November 17, 2025 15:46
@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Metrics [docs]

Public APIs missing comments

Total count of every public API that lacks a comment. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats comments for more detailed information.

id before after diff
@kbn/management-settings-ids 134 137 +3

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
genAiSettings 45.2KB 44.7KB -587.0B
securitySolution 11.1MB 11.1MB +106.0B
total -481.0B

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
securitySolution 107.4KB 107.1KB -294.0B
Unknown metric groups

API count

id before after diff
@kbn/management-settings-ids 135 138 +3

@KDKHD KDKHD merged commit 46a6007 into elastic:9.2 Nov 20, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants