We are using Jenkinsfile.groovy to generate stages and steps for each build dynamically, based on parameters for given build.
(Actually, if it matters, in our case, from the UI point of view, stages are the same and the steps differ with names.)
The problem is that then a new build starts Blue Ocean pipeline view shows it with stages and steps from the previous run!
Only after given step start, its names is updated.
I attach a screenshot showing that behaviour.
Please always show the stages and steps from the current build, never use any cached values from the previous run as this is misleading.