Repository navigation
chore(release): prepare version 1.19.0 - #45350
Merged
Merged
Conversation
Contributor
Pyrefly Type Coverage
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #45350 +/- ##
=======================================
Coverage 89.79% 89.79%
=======================================
Files 6239 6239
Lines 390965 390965
Branches 79305 79305
=======================================
+ Hits 351077 351083 +6
+ Misses 33788 33784 -4
+ Partials 6100 6098 -2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Bump the API, web, CLI, and agent package versions and Python lockfile metadata to 1.19.0. Align the API, web, agent backend, and local sandbox Docker image tags with the release. Upgrade the plugin daemon to 0.6.14-local in deployment configurations and the container fixture, preserving the existing image variant. Regenerate Docker Compose from its template. Refs #45349
laipz8200
force-pushed
the
laipz8200/release-1.19.0
branch
from
November 3, 2026 04:14
a6148eb to
58ec6d6
Compare
This was referenced Nov 3, 2026
laipz8200
marked this pull request as ready for review
November 3, 2026 10:54
laipz8200
requested review from
BeautyyuYanli,
GareArc,
QuantumGhost and
iamjoel
as code owners
November 3, 2026 10:54
crazywoola
approved these changes
Nov 4, 2026
laipz8200
enabled auto-merge
November 4, 2026 04:28
GareArc
approved these changes
Nov 4, 2026
wylswz
approved these changes
Nov 4, 2026
laipz8200
disabled auto-merge
November 4, 2026 04:32
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Nov 4, 2026
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Nov 4, 2026
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Nov 4, 2026
fatelei
pushed a commit
to fatelei/dify
that referenced
this pull request
Nov 9, 2026
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
Fixes #45349.
Dify 1.19.0 brings nested workflow tracing to your observability tools. Follow a workflow into the Workflow Tools it calls, inspect the steps inside each invocation, and keep the LLM context alongside the execution tree.
This release also makes Workflow Tools portable with App packages, adds Skill Hub automation, and makes Agent files easier to upload and preview. The bundled plugin daemon is upgraded to 0.6.14-local.
Release highlights · Upgrade guide · Detailed changes
Release highlights
Nested workflow tracing
See what happens inside a Workflow Tool, all the way down to its LLM calls.
Building on the Console drilldown introduced in 1.18.0, new external traces now include the persisted execution steps inside called Workflow Tools. Child steps appear beneath the Tool span that invoked them, preserving the hierarchy across nested and repeated calls. (#44673)
From the outer workflow to a nested LLM call: the execution tree and formatted messages, together in Langfuse. Screenshot from #44673.
App and Agent tracing share one delivery pipeline across Langfuse, LangSmith, Opik, Weave, Arize, Phoenix, Aliyun, MLflow, Databricks, and Tencent.
Another view: Workflow Tool inputs and outputs
Inspect a Workflow Tool's input and output within the parent trace. Screenshot from #44673.
Note
Your saved provider settings continue to work. The richer hierarchy applies to new executions; historical traces are not backfilled. Independently nested workflow runs remain separate traces linked by parent identifiers. For rolling deployments, follow the tracing queue transition below.
Take Workflow Tools with your apps
Export an app and bring the workflows behind its Workflow Tools with it.
.ifpkgpackages include those workflows at their bound versions, including transitive dependencies. Import reuses tools already in the destination workspace and recreates, publishes, and registers missing ones, remapping their references. (#44592)App package exports remain
.ifpkgfiles and now use package format v2, including apps without Workflow Tools. Existing v1 imports and explicit YAML export remain supported. See the upgrade guide before importing new packages into older installations. (#45353)Upload together. Preview in place.
Select or drop multiple Agent configuration files and upload them in parallel. Successful uploads are bound in one atomic batch, concurrent Composer saves preserve the latest files, and Prompt uploads keep the cursor position while inserting multiple references. (#44947)
Read PDFs inline, inspect source files with syntax highlighting, and see when text has been truncated. Previews cover configured files, Skill members, and working-directory files, with a download action when a PDF cannot be loaded. (#45032, #45045)
See Agent file uploads and previews
Read a PDF directly in the Agent file preview and switch between project files.
Select several files and upload them together.
Inspect source files with syntax highlighting and line numbers.
Developer spotlight
Manage workspace Skills through OpenAPI and difyctl. Find and inspect Skills, export a draft or published version, import local files, and publish a new version from the command line. (#44941)
The six Skill commands
difyctl get skilldifyctl describe skilldifyctl get skill versiondifyctl export skilldifyctl import skill --files <dir>difyctl publish skillThese operations require an account caller, the corresponding workspace permissions, and Skills to be enabled. Import does not publish. Importing over an existing Skill is classified as destructive; the operation catalog and CLI help distinguish read, write, and destructive operations. (#44941, #45314, #44587)
Upgrade guide
Important
Read the upgrade guide before deploying. Docker Compose now requires v2.35.0 or later. Preserve existing environment files, upgrade the Dify components together, and use the new tracing queue during rolling deployments. New
.ifpkgApp packages use internal format v2 and require a compatible destination importer. The bundled plugin daemon moves to 0.6.14-local.Compatibility and rollout
1.19.0API, worker, web, Agent Backend, and Local sandbox images, with plugin daemon0.6.14-local. Keep the existing Local sandbox authentication token and any configuredPASSWORD_PEPPERunchanged. If upgrading from before 1.18.0, also follow the 1.18.0 upgrade guide..envoverrides to take precedence when Compose resolves service defaults. Check your installed version withdocker compose version. (fix(docker): honor categorized service environment overrides #45359)docker/envs/**/*.defaultsfiles load automatically. Customize a service through its matching local.envfile, using the override path documented in the defaults file; rootdocker/.envholds deployment inputs and explicit overrides. Preserve existing.envfiles and edit them in place. Review accidentally empty assignments and values pinned by older template copies before upgrading. (fix(docker): honor categorized service environment overrides #45359, refactor(docker): name API and worker configuration explicitly #45376)shared.envfiles remain supported. Common API, worker, and Beat customizations now belong indocker/envs/core-services/api-worker.env. Compose still reads legacydocker/envs/core-services/shared.envfirst, thenapi-worker.env, soapi-worker.envwins when both set conflicting values. Rootdocker/.envtakes precedence over both. An unchanged copy ofapi-worker.defaultspreserves existingshared.envcustomizations. See the Docker configuration guide. (refactor(docker): name API and worker configuration explicitly #45376)OPS_TRACE_QUEUE=ops_trace_v2; API, workers, and Beat must agree. CustomCELERY_QUEUES,CELERY_WORKER_QUEUES, or--queueslists must include the new queue. Keep old tracing workers onops_traceuntil old producers and all their queued, active, reserved, scheduled, and retry work have finished. Do not purge the old queue or ask the new retired handler to export legacy messages. See the tracing rollout guide. (refactor(tracing): one trace pipeline behind a minimal provider interface #44673).ifpkgApp packages always use internal format v2. Older importers, including builds with the earlier strict v2 rule, may reject them. Version 1 imports remain supported on 1.19.0. Explicit YAML export remains available, but does not carry bundled Workflow Tool dependencies. (feat(api): bundle called workflow tools in app packages #44592, refactor(api): always export App packages as version 2 #45353)configured_secretsrather than credential values. Deprecated account profile update routes are removed, and Workflow/Chatflow stop operations now take run IDs. The endpoint changes are listed below. Cloud deployments using the internal billing service must deploy its education-status response contract before the matching Dify consumer. (refactor(tracing): one trace pipeline behind a minimal provider interface #44673, refactor(api): remove legacy account update endpoints #45015, fix(openapi): stop runs by run id and publish each op's effect #44587, feat(api): return education verification as a status-discriminated result #45165)Deployment instructions · Docker Compose, source, and difyctl
Docker Compose
Once the 1.19.0 release tag and images are published, stop a single-stack deployment gracefully, switch to the release, retain and review configuration, then pull and start the new images:
Keep API startup migrations enabled (
MIGRATION_ENABLED=true), or apply the full migration chain through your managed migration process before starting new workers. For rolling deployments, follow the separate tracing-queue sequence instead of mixing old and new consumers.Configure shared plugin credentials,
PLUGIN_DAEMON_KEYandPLUGIN_DIFY_INNER_API_KEY, in rootdocker/.envso the daemon and its clients receive matching values. Ports, volume paths, profiles, and health-check scheduling also remain root configuration inputs. See the Docker configuration guide. (#45359)Source deployments
Use Python 3.13, Node.js 24.22.1 or later in the 24.x line, and pnpm 12.16.1. pnpm no longer provisions Node.js for the workspace, so install the required Node.js runtime separately. (#44976, #45094)
From the repository root:
Rebuild the web application and restart API, worker, scheduler, and Agent services from the same release. Refresh the standalone Agent Backend's locked
serverdependencies when deploying it separately.difyctl
Install the matching 1.19.0 client and use
difyctl helpto discover the current server catalog. Refresh installed agent skills withdifyctl install skills <dir>. Workflow and Chatflow automation should use the revisedstop.runoperation; message-based apps usestop.task.Database migrations and existing data
Upgrading from 1.18.0 applies six migration revisions, ending at
53c10126d551. Apply the complete chain through the normal migration runner.Operational changes to plan for include:
d7e9a1c3f502). Add reference indexes onmessage_files.upload_file_id,workflow_node_execution_offload.file_id, andworkflow_draft_variable_files.upload_file_id. PostgreSQL creates them concurrently, but index construction still scans data and consumes I/O. Online upgrades reuse matching healthy indexes and reject conflicting or invalid definitions. Investigate an interrupted invalid build before retrying; do not drop healthy indexes as routine recovery. (feat: add miss index #44982)53c10126d551). Keep one configuration per app/provider and add a unique index. When duplicates exist, the most recently updated row wins, with the ID breaking timestamp ties. Superseded rows are deleted; downgrading the index does not restore them. Retain a database backup. (refactor(tracing): one trace pipeline behind a minimal provider interface #44673)Detailed changes
New capabilities · tracing, packages, and Skills
Tracing and provider integrations
Portable App packages
.ifpkgApp packages, including nested packages and packages without Workflow Tools. This does not change the separate roster-Agent package format. (refactor(api): always export App packages as version 2 #45353)langgenius/<uuid>plugin dependencies during export. (feat(api): bundle called workflow tools in app packages #44592)Skills and OpenAPI
SKILL.mdname must match. Optionaldraft_hashchecks reject stale replacements, but use second-resolution timestamps and do not detect edits made within the same second. (feat(openapi): workspace skill list, export, import and publish ops #44941)404, and finished or otherwise non-stoppable runs return409. Message-app stopping keeps its task-ID semantics. (fix(openapi): stop runs by run id and publish each op's effect #44587, fix(openapi): mark import.skill as destructive #45314)@dify/openapi-content-mapperpackage for typed API calls and query helpers inferred from OpenAPI sources, with reusable schema/input/output types and opt-in contract-compatible type subpaths. This is development groundwork; these changes do not migrate production Console or Marketplace calls away from their existing clients. (feat(web): set up @dify/openapi-content-mapper foundations #44627, feat(web): export OpenAPI mapper types and compatible contract subpaths #44915)Improvements · editing, accessibility, performance, and operations
.env, leaving optional overrides under operator control. (fix(docker): honor categorized service environment overrides #45359, refactor(docker): name API and worker configuration explicitly #45376)Security enhancements
include_all=truecannot widen that scope. Legacy workspace Dataset API keys retain tenant-wide behavior without inheriting an injected owner's personal visibility filters. (fix(api): enforce dataset service API token scope #44840)Bug fixes · workflows, Agents, knowledge, APIs, and the web app
Workflows and execution
415errors. (fix: honor file input defaults across app execution #44780, fix(web): prevent 415 when saving file input defaults #45042)sys.timestamp, and order weekly schedule previews by date. Webhook query/form numbers retain integer precision and reject non-finite values. (fix(workflow): preserve caller identity for scheduled Agent files #44796, fix(api): read the START node sys.timestamp from the UTC clock #44847, fix(web): order weekly schedule preview by date #44718, fix(trigger): keep webhook form/query integers exact and reject non-finite numbers #44706)Agents, tools, and Skills
Knowledge and document processing
top_k=0, normalize blank legacy retrieval settings on read, and use keyword retrieval for Economy datasets in retrieval previews. (fix: include documents without the metadata key in negative metadata filters #44753, fix(api): honor explicit zero top_k in dataset retrieval paths #42980, fix(api): normalize blank legacy dataset retrieval settings #45020, fix(api): use keyword search for economy datasets in hit testing #44895)APIs, files, and SDKs
blob, and reject incompatible multipart file shapes consistently. (fix: reject 4xx/5xx responses in download_with_size_limit instead of returning the error page #44333, fix(api): only treat Squid-generated 401/403 as SSRF blocks #44841, fix(import): preserve GitHub blob URL path components #44280, fix(api): reject conflicting multipart file shapes #44903)last_idfor conversation pagination while preserving its public method signature. (fix(php-sdk): encode empty app inputs as JSON objects #44675, fix(php-sdk): avoid buffering streaming responses #44271, fix(php-sdk): use last_id for conversation pagination #44659)Web app and workspace
Environment variables and integration changes
OPS_TRACE_QUEUEops_trace_v2. Shared by trace delivery/retries, Agent trace work, payload cleanup, and sandbox metering. API, workers, and Beat must agree.OPS_TRACE_EXPORT_MAX_ATTEMPTS6total attempts for retryable trace exports.ENABLE_TRACE_PAYLOAD_SWEEP_TASKtrue, enabling daily cleanup of orphaned new-pipeline trace payloads.APP_PACKAGE_MAX_WORKFLOW_TOOLS20bundled Workflow Tool workflows per App package.GUNICORN_KEEP_ALIVE10seconds.The old
OPS_TRACE_UNIFIED_ENABLED,OPS_TRACE_RETRYABLE_DISPATCH_MAX_RETRIES,OPS_TRACE_RETRYABLE_DISPATCH_DELAY_SECONDS, andOPS_TRACE_PARENT_CONTEXT_TTL_SECONDSsettings are removed. Existing Agent application-tracing opt-in settings remain supported. (#44673)For Docker, use
envs/core-services/api-worker.defaultsas the reference for common API/worker/Beat settings andapi-worker.envfor new overrides. Existingshared.envremains compatible. Tracked defaults load automatically; root.envand explicit service overrides still take precedence. Review the service-specific references rather than replacing local files with fresh templates. (#45359, #45376)Endpoint compatibility
/account/name,/account/avatar,/account/interface-language,/account/interface-theme, and/account/timezonewithPATCH /console/api/account/profile. Avatar URL reads remain available. (refactor(api): remove legacy account update endpoints #45015)GET /console/api/apps/{app_id}/trace-configmust consumeconfigured_secretsinstead of expecting saved secret values. (refactor(tracing): one trace pipeline behind a minimal provider interface #44673)POST /openapi/v1/apps/{app_id}/runs/{run_id}:stop(stop.run) andGET /openapi/v1/apps/{app_id}/runs/{run_id}/events(get.run.event). Chat, Agent Chat, and Completion retain the task-ID stop route understop.task. (fix(openapi): stop runs by run id and publish each op's effect #44587)status: eligible | not_eligibleresult; only eligible results contain a token. The corresponding internal billing service must support this response contract. (feat(api): return education verification as a status-discriminated result #45165)Full Changelog: 1.18.0 to the 1.19.0 release branch
Screenshots
The nested workflow tracing screenshots above come from #44673. The Agent file gallery was captured from local Dify 1.19.0 with sample research files.
Checklist