Skip to content

[9.3] [Streams] Add abort support and silent mode for stream description generation (#247082)#247261

Merged
kibanamachine merged 2 commits intoelastic:9.3from
kibanamachine:backport/9.3/pr-247082
Dec 23, 2025
Merged

[9.3] [Streams] Add abort support and silent mode for stream description generation (#247082)#247261
kibanamachine merged 2 commits intoelastic:9.3from
kibanamachine:backport/9.3/pr-247082

Conversation

@kibanamachine
Copy link
Contributor

Backport

This will backport the following commits from main to 9.3:

Questions ?

Please refer to the Backport tool documentation

…neration (elastic#247082)

## Summary

This PR improves the stream description generation feature by adding
abort capabilities and silent mode support.

## Changes

### Silent description generation during significant events flow

When generating significant events without features selected, we
automatically generate a stream description in the background. This PR:

- Adds a `silent` option to `useStreamDescriptionApi` hook to suppress
toasts when generating description silently
- Ensures aborting significant events generation also aborts the
background description generation

### Abort support for description generation in Advanced tab

Users can now stop the description generation in the Advanced tab:

- The "Generate description" button toggles to a "Stop" button with
loading spinner while generating
- Clicking "Stop" aborts the generation request
- If aborted from empty state, the UI stays in empty state (doesn't
switch to editor)

Before:

https://github.com/user-attachments/assets/380d1746-8584-4ff4-b8d6-2b9b6fac9fc6

After:

https://github.com/user-attachments/assets/2f59b8ea-6930-4432-be83-f6c92793a69c
(cherry picked from commit 0199260)
@kibanamachine kibanamachine merged commit e20509b into elastic:9.3 Dec 23, 2025
13 checks passed
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Async chunks

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

id before after diff
streamsApp 1.5MB 1.5MB +616.0B

History

cc @cesco-f

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.

3 participants