[Manager] Reset Manager state on reboot (#3129)

This commit is contained in:
Christian Byrne
2025-03-18 13:38:17 -07:00
committed by GitHub
parent 59dbcc5261
commit 8ab2334270
2 changed files with 3 additions and 0 deletions

View File

@@ -101,6 +101,8 @@ const handleRestart = async () => {
const onReconnect = () => {
useCommandStore().execute('Comfy.RefreshNodeDefinitions')
comfyManagerStore.clearLogs()
comfyManagerStore.setStale()
}
useEventListener(api, 'reconnected', onReconnect, { once: true })
}

View File

@@ -200,6 +200,7 @@ export const useComfyManagerStore = defineStore('comfyManager', () => {
uncompletedCount,
taskLogs,
clearLogs,
setStale,
// Installed packs state
installedPacks,