webui: preserve system message on edit cancel (#22911)

* webui: preserve system message on edit cancel when content is not the placeholder

* chore: update webui build output
This commit is contained in:
Pascal
2026-05-13 16:16:02 +02:00
committed by GitHub
parent 7e16646015
commit 46be24d121
2 changed files with 57 additions and 57 deletions
@@ -179,7 +179,7 @@
isEditing = false;
// If canceling a new system message with placeholder content, remove it without deleting children
if (message.role === MessageRole.SYSTEM) {
if (message.role === MessageRole.SYSTEM && message.content === SYSTEM_MESSAGE_PLACEHOLDER) {
const conversationDeleted = await chatStore.removeSystemPromptPlaceholder(message.id);
if (conversationDeleted) {