Skip to content

forEach steps should show step name in tree view, not just model→method #867

@keeb

Description

@keeb

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementLEGACY - Improvement to existing functionalityexternalLEGACY - Filed by an external contributorfeatureFeature requestlifecycle/implementingImplementation is in progress

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions