Conversation
analyzeWorkflow emitted a request for every credential-bearing node, including ones whose credential was already set and had tested successfully. The wizard rendered those as empty "done" steps with nothing for the user to do. Filter the request list so only items that still need user work remain: requests with needsAction set, or triggers that are still testable. Pre-valid credential-only cards drop out; trigger steps survive regardless of credential state, and parameter-issue requests (which always flip needsAction) are unaffected. Ref: https://linear.app/n8n/issue/AI-2395
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Instance AI Workflow Eval Results7/8 built | 9/22 passed (40%)
Failure detailspartial-action-failure [builder_issue]
invalid-email [builder_issue]
happy-path [builder_issue]
multi-team-creator [builder_issue]
no-cross-team-issues [builder_issue]
unknown-creator [builder_issue]
api-error [builder_issue]
happy-path [builder_issue]
no-bugs [builder_issue]
happy-path [mock_issue]
all-filtered [builder_issue]
happy-path [builder_issue]
no-alerts [builder_issue]
|
There was a problem hiding this comment.
No issues found across 2 files
Architecture diagram
sequenceDiagram
participant UI as AI Setup Wizard (UI)
participant Setup as SetupWorkflowService
participant Workflow as WorkflowService
participant Node as NodeService
participant Creds as CredentialService
Note over UI,Creds: Instance AI Workflow Analysis Flow
UI->>Setup: analyzeWorkflow(workflowId)
Setup->>Workflow: getAsWorkflowJSON()
Workflow-->>Setup: workflow definition
loop For each Node in Workflow
Setup->>Node: getDescription()
opt Node has credentials
Setup->>Creds: list() / test()
Creds-->>Setup: credential status (valid/invalid)
end
Setup->>Node: getParameterIssues()
Node-->>Setup: issues (if any)
Setup->>Setup: Determine needsAction<br/>(missing creds OR failed test OR param issues)
Note over Setup: NEW: Visibility Filtering Logic
alt needsAction === true
Setup->>Setup: Keep Request (Action required)
else isTrigger AND isTestable
Setup->>Setup: NEW: Keep Request (Manual trigger test required)
else Default
Setup->>Setup: CHANGED: Filter out (Hide from Wizard)
end
end
Setup->>Setup: sortByExecutionOrder()
Setup-->>UI: Array of filtered setup requests
Performance ComparisonComparing current → latest master → 14-day baseline Idle baseline with Instance AI module loaded
Memory consumption baseline with starter plan resources
docker-stats
How to read this table
|
|
Got released with |
Summary
The Instance AI setup wizard rendered a step for every credential-bearing node in the generated workflow, including ones whose credential was already set on the node and had passed its test. Users saw "done" steps with nothing to do.
Filter the requests emitted by
analyzeWorkflowso only those that still need user work survive:needsAction === true→ kept (credential missing/invalid, or parameter issues)isTrigger && isTestable→ kept (triggers always require user testing)Trigger steps with a pre-valid credential are preserved because the user still needs to test the trigger. Parameter-issue requests already flip
needsAction=true, so they're unaffected.Related Linear tickets, Github issues, and Community forum posts
Review / Merge checklist