Skip to content

fix(ui): stabilize workflow node execution state updates#9029

Open
JPPhoto wants to merge 2 commits intoinvoke-ai:mainfrom
JPPhoto:workflow-node-execution-event-ordering
Open

fix(ui): stabilize workflow node execution state updates#9029
JPPhoto wants to merge 2 commits intoinvoke-ai:mainfrom
JPPhoto:workflow-node-execution-event-ordering

Conversation

@JPPhoto
Copy link
Copy Markdown
Collaborator

@JPPhoto JPPhoto commented Apr 8, 2026

Summary

Fixes workflow node execution state updates in the frontend event layer.

This change fixes nodes getting stuck in IN_PROGRESS or showing duplicate outputs when socket events arrive out of order or are repeated. The fix moves the event-ordering logic into shared helpers and uses a listener-local completed-invocation key set so late invocation_started / invocation_progress events cannot overwrite a completed node state.

Related Issues / Discussions

QA Instructions

  1. On main, run a workflow in the Workflow Editor and examine the Outputs pane for a node that executes. You should see two outputs even when the node is executed once.
  2. After pulling and building (or running in dev mode), open the Workflow Editor and run a workflow with visible node progress.
    • Confirm nodes transition from pending to in progress to completed.
    • Confirm completed nodes do not revert back to in progress during or after the run.
    • Confirm the Outputs pane does not show duplicate outputs for a single node execution.
  3. Execute pnpm vitest run to run regression tests.

Merge Plan

Checklist

  • The PR has a short but descriptive title, suitable for a changelog
  • Tests added / updated (if applicable)
  • ❗Changes to a redux slice have a corresponding migration
  • Documentation added / updated (if applicable)
  • Updated What's New copy (if doing a release after this PR)

@JPPhoto JPPhoto added the frontend PRs that change frontend files label Apr 8, 2026
@JPPhoto JPPhoto force-pushed the workflow-node-execution-event-ordering branch 8 times, most recently from 05e1110 to 23fae17 Compare April 13, 2026 22:02
@JPPhoto JPPhoto force-pushed the workflow-node-execution-event-ordering branch from 23fae17 to 894df8a Compare April 14, 2026 00:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

frontend PRs that change frontend files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant