fix(studio): stabilize manual edit manifest rendering

This commit is contained in:
Vance Ingalls
2026-05-04 14:44:29 -07:00
committed by Miguel Ángel
parent 02de2819f2
commit dfe9c2293c
12 changed files with 753 additions and 197 deletions
+2 -2
View File
@@ -318,8 +318,8 @@ export function createStudioServer(options: StudioServerOptions): StudioServer {
app.get("/api/events", (c) => {
return streamSSE(c, async (stream) => {
const listener = () => {
stream.writeSSE({ event: "file-change", data: "{}" }).catch(() => {});
const listener = (path: string) => {
stream.writeSSE({ event: "file-change", data: JSON.stringify({ path }) }).catch(() => {});
};
watcher.addListener(listener);
while (true) {