fix: preserve raw app editor focus during ai file updates

This commit is contained in:
Guilhem Lemouel
2026-09-22 09:05:20 +02:00
parent 56a6ad322e
commit a67165ba5d
@@ -994,9 +994,9 @@
files = {}
}
files[path] = content
// Combined setFilesAndSelect avoids a race, so let it do the telling.
select({ kind: 'file', path }, { notifyIframe: false })
setFilesAndSelectInIframe(files, path)
// AI edits must not switch away from the file the user is editing.
ensureFileTab(path)
setFilesInIframe(files)
return lint()
},
deleteFrontendFile: (path) => {