fix: fix bug conversation log syncronization

This commit is contained in:
d-kimsuon
2025-10-15 12:59:05 +09:00
parent f34943c9cc
commit 7c05168e4e
12 changed files with 109 additions and 21 deletions

View File

@@ -442,8 +442,19 @@ export const routes = async (app: HonoAppType) => {
) => {
stream.writeSSE("taskChanged", {
aliveTasks: event.aliveTasks,
changed: event.changed,
changed: {
status: event.changed.status,
sessionId: event.changed.sessionId,
projectId: event.changed.projectId,
},
});
if (event.changed.sessionId !== undefined) {
stream.writeSSE("sessionChanged", {
projectId: event.changed.projectId,
sessionId: event.changed.sessionId,
});
}
};
eventBus.on("sessionListChanged", onSessionListChanged);