Skip to content

Workflow runs: show parameters, step errors, and allow re-run with same params #6292

Description

@DaBlitzStein

Problem

When running a workflow from the dashboard UI:

  1. Parameters not visible in run history: after launching a workflow, the runs list shows state and steps count but NOT what parameters were used. You can't see what sector, stage, etc. were passed without opening the run detail.

  2. No re-run with same parameters: there's no way to re-launch a workflow with the same parameters as a previous run. You have to type them all again.

  3. No error shown in run list: failed runs show state=failed but the error message is hidden in the run detail. The run list should show WHY it failed.

  4. No step-level errors in API: the StepResult struct has no error field - only output. When a step fails, the error goes to the run-level error, not to the individual step that failed.

Proposed changes

API changes

  • GET /api/workflows/{id}/runs: add input (the params used) and error to each run item
  • StepResult struct: add error field, expose it in GET /api/workflows/runs/{run_id}

Dashboard changes

  • Add parameter preview column to the runs table (key: value per param)
  • Add error column to the runs table (truncated error on failed runs)
  • Add "Re-run with same params" button that pre-fills the run form from a previous run

Related

  • Observed during investor-outreach workflow testing on rodela
  • The run detail endpoint already returns input and step_results with per-step output
  • These are just not surfaced in the list UI

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/kernelCore kernel (scheduling, RBAC, workflows)has-prA pull request has been linked to this issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions