-
Notifications
You must be signed in to change notification settings - Fork 19
forEach steps should show step name in tree view, not just model→method #867
Description
Problem
When using forEach to expand steps in a workflow, the live tree view shows the same model → method label for every expanded step. For example, a workflow testing 13 extensions with forEach shows:
test
├─ tester → smokeTest ∴ 1.9s
├─ tester → smokeTest ∴ 1.9s
├─ tester → smokeTest ∴ 1.9s
...
The step names ARE distinct (test-alpine, test-discord, etc.) and appear correctly in --json output, the workflow summary report, and data artifacts. But the tree view only renders modelName → methodName, making it impossible to tell which step is which during execution.
Current workaround
Create a separate model instance per iteration (e.g., test-alpine, test-discord, test-github, ...) instead of using forEach with a single model. This makes the tree show:
test
├─ test-alpine → smokeTest ∴ 1.9s
├─ test-discord → smokeTest ∴ 1.9s
├─ test-github → smokeTest ∴ 1.9s
...
This works but requires N model definitions for N iterations, defeating the purpose of forEach.
Proposed solution
The tree view renderer should include the step name (or the resolved forEach variable) in the label. For example:
test
├─ test-alpine: tester → smokeTest ∴ 1.9s
├─ test-discord: tester → smokeTest ∴ 1.9s
Or use the step description if available.
Affected components
- Tree view rendering in the workflow execution display
- The step label formatter that currently uses
modelName → methodName
The --json output and report system already have the correct step names — this is purely a tree view rendering issue.