fix: sync ai file edits through the existing files effect

This commit is contained in:
Guilhem Lemouel
2026-09-22 09:11:50 +02:00
parent a67165ba5d
commit 79781139d5
@@ -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) => {