[Manager] Fix: failed tasks logs not correctly partitioned in UI (#4242)

This commit is contained in:
Christian Byrne
2025-06-21 19:42:43 -07:00
committed by bymyself
parent f47047dc6e
commit b3cbfa257c
2 changed files with 31 additions and 19 deletions

View File

@@ -90,7 +90,6 @@ export const useComfyManagerStore = defineStore('comfyManager', () => {
() => {
partitionTasks()
partitionTaskLogs()
console.log('installed pack ids', installedPacksIds.value)
},
{ deep: true }
)
@@ -154,26 +153,12 @@ export const useComfyManagerStore = defineStore('comfyManager', () => {
const updateInstalledIds = (packs: ManagerPackInstalled[]) => {
const newIds = packsToIdSet(packs)
console.log('updateInstalledIds: creating set with:', Array.from(newIds))
installedPacksIds.value = newIds
console.log(
'updateInstalledIds: final installedPacksIds:',
Array.from(installedPacksIds.value)
)
}
const onPacksChanged = () => {
const packs = Object.values(installedPacks.value)
console.log(
'onPacksChanged called with packs:',
packs.map((p) => ({
key: Object.keys(installedPacks.value).find(
(k) => installedPacks.value[k] === p
),
cnr_id: p.cnr_id,
aux_id: p.aux_id
}))
)
updateDisabledIds(packs)
updateInstalledIds(packs)
}
@@ -337,7 +322,7 @@ export const useComfyManagerStore = defineStore('comfyManager', () => {
failedTasksIds,
succeededTasksLogs,
failedTasksLogs,
managerQueue, // Expose full queue composable for advanced usage
managerQueue,
// Pack actions
installPack,