dify - ✅(Solved) Fix [Refactor/Chore] Upgrade Graphon runtime dependency to v0.4.0 [1 pull requests, 1 participants]

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…
GitHub stats
langgenius/dify#36123Fetched 2026-05-14 03:46:34
View on GitHub
Comments
0
Participants
1
Timeline
3
Reactions
1
Author
Participants
Assignees
Timeline (top)
assigned ×1cross-referenced ×1labeled ×1

Upgrade Dify's API workflow runtime integration from Graphon 0.3.1 to Graphon 0.4.0.

The Graphon 0.4.0 release includes breaking API changes around prepared LLM protocols, slim tool/code node support, and human-input form models. Dify should adopt the new symbols and data model names so the backend can keep using the maintained Graphon package without relying on removed compatibility names.

Root Cause

Upgrade Dify's API workflow runtime integration from Graphon 0.3.1 to Graphon 0.4.0.

The Graphon 0.4.0 release includes breaking API changes around prepared LLM protocols, slim tool/code node support, and human-input form models. Dify should adopt the new symbols and data model names so the backend can keep using the maintained Graphon package without relying on removed compatibility names.

Fix Action

Fixed

PR fix notes

PR #36124: chore(api): upgrade graphon to 0.4.0

Description (problem / solution / changelog)

Fixes #36123

Summary

  • Upgrade the API Graphon dependency to 0.4.0 and refresh the lockfile.
  • Migrate Dify workflow runtime adapters to Graphon's renamed LLM and code-node protocols.
  • Update HITL human-input models to the new paragraph/select/file input configuration shape while preserving legacy text-input workflow compatibility.
  • Regenerate the console OpenAPI markdown and TypeScript API contracts from the updated schema.

Screenshots

BeforeAfter
N/AN/A

Checklist

  • I understand that this PR may be closed in case there was no previous discussion or issues.

Changed files

  • api/core/app/entities/task_entities.py (modified, +17/-6)
  • api/core/entities/execution_extra_content.py (modified, +15/-4)
  • api/core/workflow/human_input_adapter.py (modified, +20/-0)
  • api/core/workflow/node_factory.py (modified, +3/-2)
  • api/core/workflow/node_runtime.py (modified, +2/-2)
  • api/openapi/markdown/console-swagger.md (modified, +81/-39)
  • api/pyproject.toml (modified, +1/-1)
  • api/tests/test_containers_integration_tests/core/repositories/test_human_input_form_repository_impl.py (modified, +4/-4)
  • api/tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py (modified, +2/-2)
  • api/tests/test_containers_integration_tests/helpers/execution_extra_content.py (modified, +2/-2)
  • api/tests/test_containers_integration_tests/repositories/test_sqlalchemy_api_workflow_run_repository.py (modified, +5/-5)
  • api/tests/test_containers_integration_tests/repositories/test_sqlalchemy_execution_extra_content_repository.py (modified, +3/-3)
  • api/tests/unit_tests/controllers/console/app/test_workflow_pause_details_api.py (modified, +3/-3)
  • api/tests/unit_tests/controllers/service_api/app/test_hitl_service_api.py (modified, +4/-4)
  • api/tests/unit_tests/core/app/apps/advanced_chat/test_generate_task_pipeline_core.py (modified, +2/-2)
  • api/tests/unit_tests/core/app/apps/test_workflow_pause_events.py (modified, +3/-3)
  • api/tests/unit_tests/core/entities/test_entities_execution_extra_content.py (modified, +3/-3)
  • api/tests/unit_tests/core/repositories/test_human_input_form_repository_impl.py (modified, +2/-2)
  • api/tests/unit_tests/core/repositories/test_human_input_repository.py (modified, +2/-2)
  • api/tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py (modified, +5/-3)
  • api/tests/unit_tests/core/workflow/nodes/human_input/test_entities.py (modified, +47/-42)
  • api/tests/unit_tests/core/workflow/nodes/human_input/test_human_input_form_filled_event.py (modified, +4/-3)
  • api/tests/unit_tests/core/workflow/test_human_input_adapter.py (modified, +14/-0)
  • api/tests/unit_tests/core/workflow/test_node_factory.py (modified, +1/-0)
  • api/tests/unit_tests/libs/_human_input/support.py (modified, +2/-2)
  • api/tests/unit_tests/libs/_human_input/test_form_service.py (modified, +8/-6)
  • api/tests/unit_tests/libs/_human_input/test_models.py (modified, +5/-5)
  • api/tests/unit_tests/repositories/test_sqlalchemy_api_workflow_run_repository.py (modified, +3/-3)
  • api/tests/unit_tests/services/test_human_input_service.py (modified, +4/-4)
  • api/uv.lock (modified, +4/-4)
  • packages/contracts/generated/api/console/account/types.gen.ts (modified, +1/-1)
  • packages/contracts/generated/api/console/account/zod.gen.ts (modified, +1/-1)
  • packages/contracts/generated/api/console/apps/orpc.gen.ts (modified, +240/-240)
  • packages/contracts/generated/api/console/apps/types.gen.ts (modified, +391/-129)
  • packages/contracts/generated/api/console/apps/zod.gen.ts (modified, +645/-332)
  • packages/contracts/generated/api/console/data-source/types.gen.ts (modified, +2/-2)
  • packages/contracts/generated/api/console/data-source/zod.gen.ts (modified, +2/-2)
  • packages/contracts/generated/api/console/datasets/types.gen.ts (modified, +184/-38)
  • packages/contracts/generated/api/console/datasets/zod.gen.ts (modified, +187/-40)
  • packages/contracts/generated/api/console/explore/types.gen.ts (modified, +2/-2)
  • packages/contracts/generated/api/console/explore/zod.gen.ts (modified, +2/-2)
  • packages/contracts/generated/api/console/features/types.gen.ts (modified, +3/-1)
  • packages/contracts/generated/api/console/features/zod.gen.ts (modified, +3/-1)
  • packages/contracts/generated/api/console/installed-apps/types.gen.ts (modified, +5/-5)
  • packages/contracts/generated/api/console/installed-apps/zod.gen.ts (modified, +5/-5)
  • packages/contracts/generated/api/console/instruction-generate/types.gen.ts (modified, +7/-25)
  • packages/contracts/generated/api/console/instruction-generate/zod.gen.ts (modified, +10/-25)
  • packages/contracts/generated/api/console/oauth/types.gen.ts (modified, +1/-1)
  • packages/contracts/generated/api/console/oauth/zod.gen.ts (modified, +1/-1)
  • packages/contracts/generated/api/console/rag/types.gen.ts (modified, +98/-29)
  • packages/contracts/generated/api/console/rag/zod.gen.ts (modified, +128/-35)
  • packages/contracts/generated/api/console/rule-code-generate/types.gen.ts (modified, +7/-25)
  • packages/contracts/generated/api/console/rule-code-generate/zod.gen.ts (modified, +10/-25)
  • packages/contracts/generated/api/console/rule-generate/types.gen.ts (modified, +7/-25)
  • packages/contracts/generated/api/console/rule-generate/zod.gen.ts (modified, +10/-25)
  • packages/contracts/generated/api/console/rule-structured-output-generate/types.gen.ts (modified, +7/-25)
  • packages/contracts/generated/api/console/rule-structured-output-generate/zod.gen.ts (modified, +10/-25)
  • packages/contracts/generated/api/console/system-features/types.gen.ts (modified, +3/-1)
  • packages/contracts/generated/api/console/system-features/zod.gen.ts (modified, +3/-1)
  • packages/contracts/generated/api/console/tag-bindings/orpc.gen.ts (modified, +5/-52)
  • packages/contracts/generated/api/console/tag-bindings/types.gen.ts (modified, +2/-41)
  • packages/contracts/generated/api/console/tag-bindings/zod.gen.ts (modified, +2/-28)
  • packages/contracts/generated/api/console/tags/types.gen.ts (modified, +2/-2)
  • packages/contracts/generated/api/console/tags/zod.gen.ts (modified, +2/-2)
  • packages/contracts/generated/api/console/website/types.gen.ts (modified, +2/-2)
  • packages/contracts/generated/api/console/website/zod.gen.ts (modified, +2/-2)
  • packages/contracts/generated/api/console/workflow/orpc.gen.ts (modified, +2/-1)
  • packages/contracts/generated/api/console/workflow/types.gen.ts (modified, +26/-2)
  • packages/contracts/generated/api/console/workflow/zod.gen.ts (modified, +28/-2)
  • packages/contracts/generated/api/console/workspaces/types.gen.ts (modified, +13/-13)
  • packages/contracts/generated/api/console/workspaces/zod.gen.ts (modified, +15/-15)
  • packages/contracts/generated/api/service/orpc.gen.ts (modified, +2/-2)
  • packages/contracts/generated/api/service/types.gen.ts (modified, +213/-168)
  • packages/contracts/generated/api/service/zod.gen.ts (modified, +285/-229)
  • packages/contracts/generated/api/web/types.gen.ts (modified, +46/-5)
  • packages/contracts/generated/api/web/zod.gen.ts (modified, +73/-5)
RAW_BUFFERClick to expand / collapse

Self Checks

  • I have read the Contributing Guide and Language Policy.
  • This is only for refactors or chores; 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.

Description

Upgrade Dify's API workflow runtime integration from Graphon 0.3.1 to Graphon 0.4.0.

The Graphon 0.4.0 release includes breaking API changes around prepared LLM protocols, slim tool/code node support, and human-input form models. Dify should adopt the new symbols and data model names so the backend can keep using the maintained Graphon package without relying on removed compatibility names.

Motivation

Keeping the Graphon dependency current avoids pinning Dify to an older workflow runtime and lets the Dify API layer consume the latest Graphon node/runtime contracts. The migration also makes HITL human-input response schemas reflect the new paragraph/select/file input model introduced upstream.

Additional Context

Graphon release: https://github.com/langgenius/graphon/releases/tag/v0.4.0

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

dify - ✅(Solved) Fix [Refactor/Chore] Upgrade Graphon runtime dependency to v0.4.0 [1 pull requests, 1 participants]