diff --git a/frontend/src/lib/components/raw_apps/RawAppEditor.svelte b/frontend/src/lib/components/raw_apps/RawAppEditor.svelte index 1b8578c3ef..d59b151849 100644 --- a/frontend/src/lib/components/raw_apps/RawAppEditor.svelte +++ b/frontend/src/lib/components/raw_apps/RawAppEditor.svelte @@ -995,8 +995,8 @@ } files[path] = content // AI edits must not switch away from the file the user is editing. + // The files effect syncs the iframe; a direct update here races it. ensureFileTab(path) - setFilesInIframe(files) return lint() }, deleteFrontendFile: (path) => {