Skip to content

fix: correct the human input form schemas on streams and messages - #1248

Merged
RiskeyL merged 2 commits into
mainfrom
fix/human-input-stream-form-schemas
Nov 19, 2026
Merged

RiskeyL merged 2 commits into
mainfrom
fix/human-input-stream-form-schemas

Conversation

@RiskeyL

@RiskeyL RiskeyL commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

Corrects how the Service API reference describes Human Input forms outside Get Human Input Form, which #1236 already fixed for 1.20.0. Checked against dify 1.20.0 (7bef4e1b2d) by two code traces and an independent audit. en, zh, ja.

  • human_input_required and workflow_paused events: adds form_version, the select and file fields on inputs[], and a top-level workflow_run_id on the Chatflow workflow_paused. Rewrites default, resolved_default_values, display_in_ui, expiration_time, form_content, form_token, outputs, and reasons to say what each holds on old-node and new-node forms, with the same pre-fill rule as Get Human Input Form. The selectors stay undeprecated here, as the code leaves them.
  • List Conversation Messages: form_definition is never null; adds form_version, the input fields, and submitted_data; display_in_ui and form_token now read correctly for both nodes.
  • Submit Human Input Form, 400: removes the unreachable "Form recipient type is invalid", adds the new node's "The workflow is not paused with an active checkpoint." and invalid_param, and shows both nodes' invalid_form_data wording.
  • Get Human Input Form: drops the response enums (the descriptions keep the values), and the example's form_content now carries the field placeholders.
  • Stream Workflow Events: include_state_snapshot says it replays a waiting form's human_input_required, which is how a client gets back a missed form_token.
  • Streaming examples: rewritten as payloads the code produces, for a new-node form.
  • Human Input Flow guide: Step 1 shows how to recover a missed form_token; Step 2 says where each field goes in form_content.

Closes DC-481

Copilot AI balanced review requested due to automatic review settings November 19, 2026 07:49
@mintlify

mintlify Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
dify-ce-cloud-docs 🟢 Ready View Preview Nov 19, 2026, 7:50 AM

💡 Tip: Enable Automations to automatically generate PRs for you.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.

@RiskeyL
RiskeyL merged commit 463e986 into main Nov 19, 2026
3 of 4 checks passed
@RiskeyL
RiskeyL deleted the fix/human-input-stream-form-schemas branch November 19, 2026 08:09
@RiskeyL

RiskeyL commented Nov 19, 2026

Copy link
Copy Markdown
Contributor Author

💚 All backports created successfully

Status Branch Result
✅ release/1.20.0

Questions ?

Please refer to the Backport tool documentation and see the Github Action logs for details

RiskeyL added a commit that referenced this pull request Nov 19, 2026
) (#1250)

* fix: describe human input form payloads on streams and messages

* docs: help clients place form fields and recover a missed form token

(cherry picked from commit 463e986)

This branch was successfully deployed

1 active deployment
staging — ca296f15 Deployed Nov 19, 2026 by mintlify[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants