From 1f04778f77b33424d633bb8ad4827496725297c1 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 22 Apr 2026 02:19:07 +0000 Subject: [PATCH] fix(editor): enable save button in raw mode so validation errors surface hasChanges excluded rawJson edits because captureSnapshot() only reads visual editor state. Adding rawMode to the derived check keeps the save button active whenever the raw textarea is open. https://claude.ai/code/session_01BfBFGMfN6H4FbsrMREGTJ4 --- src/lib/components/ConfigEditor.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/components/ConfigEditor.svelte b/src/lib/components/ConfigEditor.svelte index a16b50e..b8afff7 100644 --- a/src/lib/components/ConfigEditor.svelte +++ b/src/lib/components/ConfigEditor.svelte @@ -35,7 +35,7 @@ }); } - const hasChanges = $derived(isNew || initialSnapshot === '' || captureSnapshot() !== initialSnapshot); + const hasChanges = $derived(isNew || initialSnapshot === '' || rawMode || captureSnapshot() !== initialSnapshot); let showScriptModal = $state(false); let scriptDraft = $state('');