fix: block workflow DSL export with agent nodes - #38472
Open
zyssyz123 wants to merge 41 commits into
Open
Conversation
Refs DIFY-2705
Co-authored-by: yyh <yuanyouhuilyz@gmail.com>
Contributor
Pyrefly Type Coverage
|
hjlarry
previously approved these changes
Jul 6, 2026
zyssyz123
requested review from
crazywoola,
iamjoel,
lyzno1 and
zxhlyh
as code owners
July 6, 2026 14:07
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Verification
uv run ruff check api/services/app_dsl_service.py api/services/errors/app.py api/tests/unit_tests/services/test_app_dsl_service.pyuv run --project api --dev pyrefly check api/services/app_dsl_service.py api/services/errors/app.py api/tests/unit_tests/services/test_app_dsl_service.pydeploy/agentand verified onhttps://agent.dify.dev:GET /console/api/apps/{app_id}/export?include_secret=falsefor the DIFY-2738 workflow now returns HTTP 400 withWorkflow DSL export does not support Agent nodes yet. Remove Agent nodes before exporting.Note: local pytest exits with a Python segmentation fault during pytest initialization in this machine's uv/Python environment, before collecting tests. The service behavior was validated directly and via the deployed console API.