From 47f744dfdfc075deee7d4c587f7bb6897d9223d4 Mon Sep 17 00:00:00 2001 From: docfail <4965997+docfail@users.noreply.github.com> Date: Tue, 28 Oct 2025 15:57:52 -0400 Subject: [PATCH] Character settings overrides UI (#4707) * + Implemented support for overrides of system prompt and example messages from chat metadata. This is needed for BYAF import parity. No UI for modifying these yet, but they're easily changeable in the chat files already. These metadata settings are already supported by BYAF import as of the last commit so this just enables them. * + Updated scenario overrides popup to now be a character settings overrides popup. + Updated the template to have a new section for example messages and system prompts + Updated the logic to handle all three overrides + Updated logic to only save when the popup is closed, instead of on every character input. * Preserve import, allow scrolling * Add confirmation on override removal. Always save pending changes. * Update dialog layout, add editor expand buttons * Fix mes examples override in group chats with Join mode * Update group chat button title * Specify that Prefer Char. Prompt is a requirement * Fix group join mode not replacing macros in overrides --------- Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com> --- public/index.html | 8 +- public/script.js | 80 ++++++++++++++----- public/scripts/group-chats.js | 12 +-- .../scripts/templates/scenarioOverride.html | 52 +++++++++--- 4 files changed, 109 insertions(+), 43 deletions(-) diff --git a/public/index.html b/public/index.html index cdc9b62d3..0c70757c4 100644 --- a/public/index.html +++ b/public/index.html @@ -5698,7 +5698,7 @@ - +