Skip to content

fix(workflow): track human input forms by execution identity - #42819

Merged
laipz8200 merged 5 commits into
mainfrom
laipz8200/graphon-human-input-ui
Oct 20, 2026
Merged

laipz8200 merged 5 commits into
mainfrom
laipz8200/graphon-human-input-ui

Conversation

@laipz8200

@laipz8200 laipz8200 commented Sep 23, 2026 •

Copy link
Copy Markdown
Member

Summary

Use the form identifier carried by workflow events to match required, submitted and timed-out forms across chat, preview and history. Keep repeated executions of the same visible node independent.

Pass the persisted run status into workflow and chat history titles so a paused run is labeled Paused instead of Running.

Part 2 of the seven-part split of #40277. Depends on the preceding PR in the stack; review this PR against that base to see only this topic.

@github-actions github-actions Bot added size:XL This PR changes 500-999 lines, ignoring generated files. web This relates to changes on the web. labels Sep 23, 2026
@laipz8200
laipz8200 added this pull request to stack #42825 September 23, 2026 08:31
@laipz8200
laipz8200 removed this pull request from stack #42825 September 23, 2026 11:26
@laipz8200
laipz8200 added this pull request to stack #42841 September 23, 2026 11:26
@codecov

codecov Bot commented Sep 23, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 95.45455% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 88.54%. Comparing base (823f40e) to head (9481377).

Files with missing lines Patch % Lines
...event/use-workflow-node-human-input-form-filled.ts 0.00% 1 Missing ⚠️
...vent/use-workflow-node-human-input-form-timeout.ts 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #42819      +/-   ##
==========================================
- Coverage   88.54%   88.54%   -0.01%     
==========================================
  Files        5522     5523       +1     
  Lines      331079   330974     -105     
  Branches    66207    66157      -50     
==========================================
- Hits       293163   293058     -105     
  Misses      32731    32731              
  Partials     5185     5185              
Flag Coverage Δ
dify-ui 91.67% <ø> (ø)
web 87.92% <95.45%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@laipz8200
laipz8200 force-pushed the laipz8200/graphon-human-input-ui branch from 46f600e to 66cf463 Compare September 23, 2026 11:39
@ghfind-review ghfind-review Bot added the review: top ghfind author score; see https://ghfind.com label Sep 23, 2026
@laipz8200
laipz8200 force-pushed the laipz8200/graphon-human-input-ui branch from 66cf463 to 8987cf0 Compare September 23, 2026 12:25
@laipz8200
laipz8200 removed this pull request from stack #42841 September 23, 2026 12:42
@laipz8200
laipz8200 added this pull request to stack #42847 September 23, 2026 12:43
@laipz8200
laipz8200 force-pushed the laipz8200/graphon-human-input-ui branch from 8987cf0 to 2162f9e Compare September 23, 2026 18:48
@laipz8200
laipz8200 removed this pull request from stack #42847 September 23, 2026 18:48
@laipz8200
laipz8200 added this pull request to stack #42853 September 23, 2026 18:48
@laipz8200
laipz8200 force-pushed the laipz8200/graphon-human-input-ui branch 3 times, most recently from ba99cad to bde4643 Compare September 24, 2026 06:48
@laipz8200
laipz8200 force-pushed the laipz8200/graphon-human-input-ui branch 2 times, most recently from 4854f43 to fb2aaac Compare September 28, 2026 16:21
@laipz8200
laipz8200 force-pushed the laipz8200/graphon-human-input-ui branch 2 times, most recently from 1d0d98f to be64418 Compare October 11, 2026 17:12
@laipz8200
laipz8200 force-pushed the laipz8200/graphon-human-input-ui branch 2 times, most recently from f9a0b55 to aa27273 Compare October 12, 2026 04:07
@laipz8200
laipz8200 force-pushed the laipz8200/graphon-human-input-ui branch from aa27273 to b312510 Compare October 14, 2026 00:00
@laipz8200
laipz8200 requested review from a team October 14, 2026 17:34
@laipz8200
laipz8200 force-pushed the laipz8200/graphon-human-input-ui branch 3 times, most recently from ac20eb2 to 8f60627 Compare October 14, 2026 18:54
iamjoel
iamjoel previously approved these changes Oct 19, 2026
hyoban
hyoban previously approved these changes Oct 19, 2026

@hyoban hyoban left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the frontend changes.

Render and refresh human input forms using Graphon pause reasons across workflow and chat views.
Pass persisted execution status to the shared run label formatter in workflow headers and workflow/chat history panels. Cover paused records while preserving the existing finished-timestamp display.
A form is either pending or submitted in one history response, so matching
a submitted form ID against the pending list can never succeed. Pass the
form definition straight through and drop test setup that no longer
affects the rendered components.
Supply the required form_id in the upstream typed workflow-body fixture so submitted human-input forms retain their identity.
Supply the required form ID in the answer fixture and format the shared stream fixture for the rebased frontend contracts.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

review: top ghfind author score; see https://ghfind.com size:XL This PR changes 500-999 lines, ignoring generated files. web This relates to changes on the web.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants