dify - 💡(How to fix) Fix Langfuse trace is not emitted after advanced-chat workflow resumes from human-input node

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
RAW_BUFFERClick to expand / collapse

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

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

  1. Deploy Dify self-hosted 1.14.1.

  2. Configure Langfuse tracing for an advanced-chat app.

  3. Verify Langfuse tracing works for a normal WebApp run that does not pause.

  4. Add a human-input node to the advanced-chat workflow.

  5. Publish the app and open it from the WebApp.

  6. Send a message that makes the workflow reach the human-input node.

  7. Confirm that the workflow becomes paused.

  8. Submit the human-input form from the WebApp.

  9. Confirm in Dify that the same workflow run eventually succeeds.

  10. Search the final workflow_run_id in Langfuse traces.

Example evidence from my environment:

  • The workflow run exists in Dify and succeeds.
  • The run has a submitted human input form.
  • The same workflow_run_id cannot be found in Langfuse.

✔️ Expected Behavior

After a paused advanced-chat workflow is resumed from a WebApp human-input form and finishes successfully, Dify should emit a Langfuse trace for the final workflow_run_id.

The resumed workflow should behave the same as a normal non-paused WebApp run from a tracing perspective.

❌ Actual Behavior

The workflow run succeeds in Dify, but no Langfuse trace is emitted for the final workflow_run_id.

Normal non-paused WebApp runs from the same Dify app can be traced successfully, so this does not appear to be a Langfuse connectivity or credential issue.

The issue only appears on the human-input pause/resume path.

Additional debugging showed that the paused workflow resumption context restores AdvancedChatAppGenerateEntity with trace_manager=None.

The trace_manager field is defined with exclude=True:

trace_manager: "TraceQueueManager | None" = Field(default=None, exclude=True, repr=False)

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING