Merged
Size
S
Change Breakdown
Bug Fix80%
Maintenance20%
#28468fix(core): Make workflow preview refresh after setup completes (no-changelog)

Workflow preview refreshes after setup completes

Workflow previews now stay current when setup tools finish modifying workflows — the preview iframe refreshes automatically to show the latest state.

When users ran AI setup tools that modify workflow credentials or parameters, the preview pane wasn't reflecting those changes. The iframe continued showing stale content until manually refreshed.

The preview now detects when setup-workflow and apply-workflow-credentials tools complete successfully, and automatically refreshes to display the updated workflow state. This only happens when the setup targeted the currently active workflow tab, preventing unnecessary refreshes.

The fix lives in the frontend editor UI, specifically the AI canvas preview system where these setup tools operate.

View Original GitHub Description

Summary

It seems like we weren't refreshing the workflow preview properly after setup completes / if the mode changes, this should hopefully fix some of the reported preview problems

Related Linear tickets, Github issues, and Community forum posts

Artefact did not update

<!-- Include links to **Linear ticket** or Github issue or Community forum post. Important in order to close *automatically* and provide context to reviewers. https://linear.app/n8n/issue/[TICKET-ID] --> <!-- Use "closes #<issue-number>", "fixes #<issue-number>", or "resolves #<issue-number>" to automatically close issues when the PR is merged. -->

Review / Merge checklist

  • I have seen this code, I have run this code, and I take responsibility for this code.
  • PR title and summary are descriptive. (conventions) <!-- **Remember, the title automatically goes into the changelog. Use `(no-changelog)` otherwise.** -->
  • Docs updated or follow-up ticket created.
  • Tests included. <!-- A bug is not considered fixed, unless a test is added to prevent it from happening again. A feature is not complete without tests. -->
  • PR Labeled with Backport to Beta, Backport to Stable, or Backport to v1 (if the PR is an urgent fix that needs to be backported)
© 2026 · via Gitpulse