Add executionStore (#827)

* Extract execution store

* Fix executing nodes highlight

* nit

* nit

* nit
This commit is contained in:
Chenlei Hu
2024-09-14 15:15:15 +09:00
committed by GitHub
parent fef780a72f
commit f983f42c45
6 changed files with 136 additions and 100 deletions

View File

@@ -204,7 +204,8 @@ export class ChangeTracker {
// Store node outputs
api.addEventListener('executed', ({ detail }) => {
const prompt = app.workflowManager.queuedPrompts[detail.prompt_id]
const prompt =
app.workflowManager.executionStore.queuedPrompts[detail.prompt_id]
if (!prompt?.workflow) return
const nodeOutputs = (prompt.workflow.changeTracker.nodeOutputs ??= {})
const output = nodeOutputs[detail.node]