Open
Description
Describe the bug
The system prompt marked as default should be retained if no new system prompt is marked as Default
Kibana/Elasticsearch Stack version
VERSION: 8.18.0 BC7
BUILD: 82701
COMMIT: 9df464f0ca6c78d2119bbef0b32953d6ba5ff4fe
Steps
- Kibana version 8.18.0 BC7 should exist
- Navigate to Stack Management --> AI Assistant --> Security AI settings --> System Prompts
- Add a system prompt and make it default and save the same
- Add a new prompt, make it default, uncheck the default checkbox
- Save the prompt
- Observe, the default prompt before adding the new prompt is not retained.
Expected Result
If user cancels an operation, the default configuration should go back to original system prompt
Screen Recording