Skip to content

Agent Node Regression in Dify 1.5.1 — Missing Round Metadata (elapsed_time, started_at, finished_at, usage) Compared to 1.4.3 #28535

@PEPravin

Description

@PEPravin

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.5.1

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

In Dify 1.4.3, when an Agent node runs using ReAct strategy, each agent “ROUND” contains rich metadata:

  • started_at
  • finished_at
  • elapsed_time
  • total_tokens
  • total_price
  • currency

Example from 1.4.3:

  "label": "ROUND 1",
  "metadata": {
    "currency": "USD",
    "elapsed_time": 1.75,
    "finished_at": 1447812.0136,
    "started_at": 1447810.2630,
    "total_price": "0.0010276",
    "total_tokens": 2500
  }
}

In Dify 1.5.1, the same Agent node produces only basic metadata (action, thought) and all timing + cost metadata are missing.

Example from 1.5.1:

  "label": "ROUND 1",
  "metadata": {
    "action": "",
    "thought": "{...}"
  }
}

This breaks:

  • observability
  • latency debugging
  • token/cost monitoring
  • production monitoring dashboards
  • workflow analytics
  • comparison between Agent rounds

Affected Versions:
Working: 1.4.3
Broken: 1.5.1

Steps to Reproduce

  • Create a workflow with an Agent node using ReAct strategy
  • Connect any LLM (OpenAI, Gemini, etc.)
  • Run the workflow

check DB:
SELECT execution_metadata FROM workflow_node_executions WHERE node_type = 'agent';
Compare metadata between 1.4.3 and 1.5.1

✔️ Expected Behavior

Each Agent round should include:

  • execution start time
  • execution end time
  • elapsed time
  • total tokens used
  • price per round
  • currency code

❌ Actual Behavior

All of the above metadata are missing
Only text metadata (thought, action) appears

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐞 bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions