Skip to content

chore(release): prepare version 1.19.0 - #45350

Merged
laipz8200 merged 1 commit into
mainfrom
laipz8200/release-1.19.0
Nov 4, 2026
Merged

laipz8200 merged 1 commit into
mainfrom
laipz8200/release-1.19.0

Conversation

@laipz8200

@laipz8200 laipz8200 commented Nov 2, 2026 •

Copy link
Copy Markdown
Member

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)

Langfuse trace tree showing a workflow, nested Middle and Child Workflow Tools, and the selected LLM call with formatted prompts and responses

From the outer workflow to a nested LLM call: the execution tree and formatted messages, together in Langfuse. Screenshot from #44673.

  • Follow the hierarchy. Expand called Workflow Tools to see their internal execution steps under the invoking Tool span.
  • Understand each invocation. Repeated calls and failures retain their place in the trace.
  • Keep the LLM context. Inspect formatted prompts and responses, token usage, and project, trace, and observation links.

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

Langfuse trace detail with a selected Child Workflow Tool and its input and output

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. .ifpkg packages 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 .ifpkg files 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

Inline PDF preview in Agent files, with the research brief and file list

Read a PDF directly in the Agent file preview and switch between project files.

Agent batch upload dialog with a PDF, Python source file, and Markdown guidelines selected

Select several files and upload them together.

Syntax-highlighted Python source in the Agent file preview

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
Command Capability
difyctl get skill List Skills, with keyword and tag filters.
difyctl describe skill Read details, the draft hash, and latest published version.
difyctl get skill version List published versions.
difyctl export skill Export the draft or a selected published version as ZIP.
difyctl import skill --files <dir> Create a Skill or replace an existing Skill's draft from local files.
difyctl publish skill Publish the draft as a new version.

These 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 .ifpkg App 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. Back up first. Retain the database, vector-store data, uploaded files, Agent snapshot/workspace storage, deployment secrets, and environment files. Use a maintenance window for a single-stack upgrade.
  2. Upgrade the components together. Use matching 1.19.0 API, worker, web, Agent Backend, and Local sandbox images, with plugin daemon 0.6.14-local. Keep the existing Local sandbox authentication token and any configured PASSWORD_PEPPER unchanged. If upgrading from before 1.18.0, also follow the 1.18.0 upgrade guide.
  3. Use Docker Compose 2.35.0 or later. This is the minimum supported version for root .env overrides to take precedence when Compose resolves service defaults. Check your installed version with docker compose version. (fix(docker): honor categorized service environment overrides #45359)
  4. Keep tracked defaults separate from local overrides. Bundled docker/envs/**/*.defaults files load automatically. Customize a service through its matching local .env file, using the override path documented in the defaults file; root docker/.env holds deployment inputs and explicit overrides. Preserve existing .env files 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)
  5. Existing shared.env files remain supported. Common API, worker, and Beat customizations now belong in docker/envs/core-services/api-worker.env. Compose still reads legacy docker/envs/core-services/shared.env first, then api-worker.env, so api-worker.env wins when both set conflicting values. Root docker/.env takes precedence over both. An unchanged copy of api-worker.defaults preserves existing shared.env customizations. See the Docker configuration guide. (refactor(docker): name API and worker configuration explicitly #45376)
  6. Separate tracing queues during a rolling upgrade. New tasks default to OPS_TRACE_QUEUE=ops_trace_v2; API, workers, and Beat must agree. Custom CELERY_QUEUES, CELERY_WORKER_QUEUES, or --queues lists must include the new queue. Keep old tracing workers on ops_trace until 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)
  7. Upgrade package destinations before importing new App packages. New .ifpkg App 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)
  8. Update custom Console/OpenAPI integrations. Trace configuration reads now expose configured_secrets rather 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:

cd dify/docker
docker compose stop -t -1
git fetch --tags
git checkout 1.19.0
# Merge required configuration changes into existing env files here.
docker compose pull
docker compose up -d

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_KEY and PLUGIN_DIFY_INNER_API_KEY, in root docker/.env so 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:

uv sync --project api --frozen
uv run --directory api flask db upgrade
pnpm install --frozen-lockfile

Rebuild the web application and restart API, worker, scheduler, and Agent services from the same release. Refresh the standalone Agent Backend's locked server dependencies when deploying it separately.

difyctl

Install the matching 1.19.0 client and use difyctl help to discover the current server catalog. Refresh installed agent skills with difyctl install skills <dir>. Workflow and Chatflow automation should use the revised stop.run operation; message-based apps use stop.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:

Detailed changes

New capabilities · tracing, packages, and Skills

Tracing and provider integrations

Portable App packages

Skills and OpenAPI

Improvements · editing, accessibility, performance, and operations
Security enhancements
Bug fixes · workflows, Agents, knowledge, APIs, and the web app

Workflows and execution

Agents, tools, and Skills

Knowledge and document processing

APIs, files, and SDKs

Web app and workspace

Environment variables and integration changes
Setting Change in 1.19.0
OPS_TRACE_QUEUE New; defaults to ops_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_ATTEMPTS New; defaults to 6 total attempts for retryable trace exports.
ENABLE_TRACE_PAYLOAD_SWEEP_TASK New; defaults to true, enabling daily cleanup of orphaned new-pipeline trace payloads.
APP_PACKAGE_MAX_WORKFLOW_TOOLS New; defaults to 20 bundled Workflow Tool workflows per App package.
GUNICORN_KEEP_ALIVE New entrypoint setting; defaults to 10 seconds.

The old OPS_TRACE_UNIFIED_ENABLED, OPS_TRACE_RETRYABLE_DISPATCH_MAX_RETRIES, OPS_TRACE_RETRYABLE_DISPATCH_DELAY_SECONDS, and OPS_TRACE_PARENT_CONTEXT_TTL_SECONDS settings are removed. Existing Agent application-tracing opt-in settings remain supported. (#44673)

For Docker, use envs/core-services/api-worker.defaults as the reference for common API/worker/Beat settings and api-worker.env for new overrides. Existing shared.env remains compatible. Tracked defaults load automatically; root .env and explicit service overrides still take precedence. Review the service-specific references rather than replacing local files with fresh templates. (#45359, #45376)

Endpoint compatibility

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

  • I understand that this PR may be closed in case there was no previous discussion or issues. (This doesn't apply to typos!)

@github-actions github-actions Bot added size:M This PR changes 30-99 lines, ignoring generated files. web This relates to changes on the web. labels Nov 2, 2026
@github-actions

github-actions Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Pyrefly Type Coverage

Metric Base PR Delta
Type coverage 83.01% 83.01% -0.00%
Strict coverage 82.66% 82.66% -0.00%
Typed symbols 85,604 85,603 -1
Untyped symbols 17,597 17,598 +1
Modules 4373 4373 0

@codecov

codecov Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.79%. Comparing base (dc36c3e) to head (58ec6d6).
⚠️ Report is 27 commits behind head on main.

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     
Flag Coverage Δ
api 89.63% <ø> (+<0.01%) ⬆️
cli 94.26% <ø> (ø)
dify-ui 92.45% <ø> (ø)
web 89.80% <ø> (+<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 modified the milestone: 1.19.0 Nov 2, 2026
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
laipz8200 enabled auto-merge November 4, 2026 04:28
@laipz8200
laipz8200 disabled auto-merge November 4, 2026 04:32
@laipz8200
laipz8200 added this pull request to the merge queue Nov 4, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 4, 2026
@laipz8200
laipz8200 added this pull request to the merge queue Nov 4, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 4, 2026
@laipz8200
laipz8200 added this pull request to the merge queue Nov 4, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 4, 2026
@laipz8200
laipz8200 merged commit 8e689e8 into main Nov 4, 2026
89 checks passed
@laipz8200
laipz8200 deleted the laipz8200/release-1.19.0 branch November 4, 2026 07:19
fatelei pushed a commit to fatelei/dify that referenced this pull request Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M This PR changes 30-99 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.

[Refactor/Chore] Prepare Dify 1.19.0 release

4 participants