mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-03-02 19:49:58 +00:00
[Manager] Reset Manager state on reboot (#3129)
This commit is contained in:
@@ -101,6 +101,8 @@ const handleRestart = async () => {
|
||||
|
||||
const onReconnect = () => {
|
||||
useCommandStore().execute('Comfy.RefreshNodeDefinitions')
|
||||
comfyManagerStore.clearLogs()
|
||||
comfyManagerStore.setStale()
|
||||
}
|
||||
useEventListener(api, 'reconnected', onReconnect, { once: true })
|
||||
}
|
||||
|
||||
@@ -200,6 +200,7 @@ export const useComfyManagerStore = defineStore('comfyManager', () => {
|
||||
uncompletedCount,
|
||||
taskLogs,
|
||||
clearLogs,
|
||||
setStale,
|
||||
|
||||
// Installed packs state
|
||||
installedPacks,
|
||||
|
||||
Reference in New Issue
Block a user