Skip to content

Loop and iteration tracing shows latest item under the first record #34559

@Blackoutta

Description

@Blackoutta

Self Checks

  • I have read the Contributing Guide and Language Policy.
  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report, otherwise it will be closed.
  • 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.13.3

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

  1. Open a workflow that contains a loop node or an iteration node.
  2. Run the workflow and open the run tracing panel while the loop or iteration is producing multiple records.
  3. Expand the tracing records for the loop or iteration node. (You might need to refresh the page first for the collapsed tracing items to show)
  4. Continue observing the latest in-progress tracing item as new loop / iteration records are created.

Loop node glitch screenshot:
Image
DSL to reproduce:
loop display problem.yml

Iteration node glitch screenshot:
Image
DSL to reproduce:
iteration display problem.yml

✔️ Expected Behavior

The newest tracing item should be displayed under the latest loop or iteration record that is currently running.

For example, if the workflow is already on Iteration 12 or Loop 12, the active tracing item should appear inside that latest record instead of staying attached to Iteration 1 or Loop 1.

❌ Actual Behavior

The latest tracing item is always displayed inside the first loop / iteration record in the tracing panel, even when execution has already advanced to a later record.

This makes the tracing view misleading because the active item visually appears to belong to the first iteration / loop entry instead of the latest one that is actually running.

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐞 bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions