how-to-write-component

Use when implementing or refactoring React + TypeScript components, specifically for tasks that require decisions about component ownership, functional boundaries, state, data flow, side effects, or interaction ownership. Not intended for changes that are only review, only tests, only copying, or only styling.

Last repository push
GitHub Stars
161,616
Forks
25,537
Issues / PRs
611

Screenshots

A demonstration from skillπ Lab

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "how-to-write-component" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-fa935979450903edc16d0fb6240f6608659ce5441e76232a1514367261e36acb. Verify the upstream source and version against https://github.com/langgenius/dify before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

github.com

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Use when implementing or refactoring React + TypeScript components, specifically for tasks that require decisions about component ownership, functional boundaries, state, data flow, side effects, or interaction ownership. Not intended for changes that are only review, only tests, only copying, or only styling.

0 Downloads

Introduction source: third_party · langgenius · 0.0.1 Reference

SkillPi interpretation

Tasks
Use when implementing or refactoring React/TypeScript components and the task requires decisions about component ownership, feature boundaries, state, data flow, effects, or interaction ownership. Do not use for review-only requests, test-only work, copy-only edits, or styling-only changes.
Audience
Not specified in the source documentation.
Inputs and outputs
Not specified in the source documentation.
Software, accounts and paid services
Not specified in the source documentation.
Limits and differences
Not specified in the source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: how-to-write-component
description: Use when implementing or refactoring React/TypeScript components and the task requires decisions about component ownership, feature boundaries, state, data flow, effects, or interaction ownership. Do not use for review-only requests, test-only work, copy-only edits, or styling-only changes.

How To Write A Component

Use this skill to route component architecture decisions to its bundled references. Read only the references required by the current change.

Topic Routing

Scope And Verification

Identify the behavior owner, state lifetime, and public contract from the nearby implementation and relevant references. Keep the change within that vertical slice unless the contract requires changes elsewhere. Verify the changed behavior and complete the owning package's required checks. For Web, read web/docs/test.md for test work and web/docs/lint.md for static checks. Dify UI verification is owned by packages/dify-ui/docs/testing.md.

Tailwind CSS

  • Write canonical Tailwind v4 classes; prefer canonical utilities over equivalent arbitrary values.
  • Common forms include w-105 instead of w-[420px], px-2.25 instead of px-[9px], bg-linear-to-b instead of bg-gradient-to-b, wrap-break-word instead of break-words, and field-sizing-content instead of [field-sizing:content].

Version history

  1. 1.20.0 GitHub ↗
    Original release notes

    **Dify 1.20.0 keeps your traces flowing and your knowledge bases safer.** Export traces to any OpenTelemetry collector, keep Langfuse working after its legacy ingestion endpoint retirement, and scan uploaded knowledge files for malware before they are indexed. Chatflows can show Agent tool activity as it happens, and personal access tokens let scripts and agents call the Dify OpenAPI on your behalf. The bundled plugin daemon is upgraded to **0.6.15-local**. [New Features](#user-content-new-features) · [Configuration and Integration Changes](#user-content-configuration-and-integration-changes) · [Database Migrations](#user-content-database-migrations) · [Upgrade Guide](#user-content-upgrade-guide) ## New Features ### New HITL: bring approvals into your team's messaging tools **Integrate human review into your workflows via email and the messaging tools your team already uses.** New HITL introduces shared channels, centralized contacts, notification templates, and verified approval forms—allowing your team to configure recipients once and reuse them across Human Input nodes, and is now enabled by default (`NEXT_PUBLIC_ENABLE_HITL_IM=true`). (#44864, #45945) * **Reach approvers where they work.** Configure email and an IM platform—**Slack, Feishu/Lark, Microsoft Teams, DingTalk, or WeCom**—to deliver workflow review requests through your team's existing channels. * **Manage recipients in Contacts.** Sync IM directories and select approvers from a shared contact list. Workflows can also address the initiator or use one-time and dynamic email recipients. * **Approve in cards or forms.** Recipients can review requests directly in supported IM cards or open standalone forms, with Dify login or email verification to verify their identity. * **Customize notifications with workflow context.** Use templates and workflow variables to include essential context in notification subjects and bodies. * **Test and track delivery.** Send test notifications to verify your setup and inspect delivery records to troubleshoot requests that did not arrive as expected. * **Adopt New HITL in existing workflows.** Use opt-in migration to upgrade legacy Human Input nodes when your workflow is ready. Deployment requirements are listed under [Configuration and Integration Changes](#user-content-configuration-and-integration-changes). ### Export traces to any OpenTelemetry collector Bring Dify execution traces into your existing observability stack. The new **OpenTelemetry provider** exports app and Agent traces to any compatible collector, allowing you to track workflow steps, model calls, and tool activity together in your preferred platform. Use these traces to inspect request execution and diagnose failures without requiring a vendor-specific Dify integration. (#45659) **Langfuse tracing now supports Langfuse v4 and the current Langfuse Cloud ingestion service.** Existing Langfuse configurations continue to work. (#45606) > [!IMPORTANT] > Langfuse Cloud retired its legacy ingestion endpoint on **November 16, 2026**, and self-hosted Langfuse v4 rejects events sent to it. Upgrade to 1.20.0 to keep delivering traces to those deployments. ### Scan knowledge uploads for malware Protect your knowledge bases by scanning uploaded files for malware before they are extracted or indexed. When enabled (`FILE_SCAN_ENABLED=true`), workspace owners and admins can configure scanners once under **Integrations → File Security Scan**, then define how each knowledge base uses them. Supported scanners include **Cloudmersive, Scanii, OPSWAT MetaDefender Cloud**, and a **Custom Endpoint**. (#46090, #46492) * **Choose protection per knowledge base.** Select a scanner and configure fallback behavior when scanning is unavailable or a file cannot be scanned. * **Protect knowledge uploads across Dify.** Scanning covers classic knowledge bases, RAG Pipeline local-file sources, and Agent Knowledge Base uploads. * **See why files were blocked.** Scan failures appear in the document list for review. ### Watch Agent tools work in Chatflow When a Chatflow delegates tasks to an Agent v2 node (requires `NEXT_PUBLIC_ENABLE_AGENT_V2_IN_CHATFLOW=true`), users can now see which tools it invokes in real time. Tool activity appears alongside the response in both previews and published chats, making it easier to follow the Agent's progress. Expand any tool card to inspect what it requested and returned. (#46220) ### Automate OpenAPI calls with personal access tokens Grant scripts, CI jobs, and personal agents access to the Dify OpenAPI on your behalf without sharing your Console session. Create a personal access token from your **Account** page and scope it to specific workspaces and resources. You can set an optional expiration date, update its scope as your automation evolves, or revoke it when it is no longer needed. (#45540, #46606) ### Choose GitHub knowledge sources from a tree Browse and select the GitHub content you want to add to a knowledge base from an expandable tree of repositories, directories, issues, and pull requests. Explore the source structure and pick the exact pages to import, whether you are creating a new knowledge base or adding a source to an existing one. (#45990) ### Search and navigate on smaller screens Search across content and narrow results using selectable scopes in **Goto Anything**. On smaller screens, search and navigation open in drawers to preserve space for the current page. (#45675, #45650) Direct links can now open Studio's blank-app or template creation flows. (#45717) ### More flexible knowledge descriptions and metadata * **Longer knowledge base descriptions.** Increased description length limits allow you to provide more context for each knowledge base. (#45075) * **External knowledge metadata.** External knowledge retrieval now returns document metadata alongside content. (#22496) ## Improvements **Lower database and startup overhead.** Node execution updates avoid reloading stored rows, credential policies are evaluated once per provider configuration, model defaults use short-lived sessions, and embedding calls no longer hold open a database session. Web feature dependencies also load more lazily. (#46410, #46441, #45806, #45788, #46145) **Clearer document failures and steadier layouts.** Knowledge documents now report specific failure reasons and processing stages. Dialogs adapt to narrow viewports and maintain consistent lifecycles across accounts, knowledge, apps, Skills, and workflows. Authentication pages load faster, fit smaller screens, and keep keyboard focus accessible. Segmented controls animate smoothly while preserving compact layouts and respecting reduced-motion preferences. (#45128, #46487, #45686, #45668, #45634, #45600, #45640, #45974) ## Bug Fixes * **Safer file previews and signed links.** Sandbox inline SVG previews and verify the original signature before renewing expired file links. (#46505) * **Stronger access protection.** Redact node-retry details from public streams, prevent OAuth callback reuse, enforce member-role permissions, and scope vector deletion to the target dataset. (#46517, #46001, #46053, #45586) * **Security dependency updates.** Upgrade `github.com/klauspost/compress` in `dify-agent-runtime` to address CVE-2026-116591, and update Node.js in runtime images to security release 24.22.3. (#46544, #46206, #46064) * **Reliable blocking workflows.** Release database connections before execution and return preparation failures immediately, preventing connection-pool exhaustion and hanging requests that wait until timeout. (#46254) * **More stable workers.** Resolve the Redis `BRPOP` busy loop and prevent overlapping plugin upgrade checks, capping concurrency at 20 checks across workers. (#45940, #46500) * **Complete Chatflow streams.** Properly close streams after direct replies and reset the reconnect budget when a stream resumes. (#45552, #46110) * **Correct Agent execution.** Preserve parallel calls to the same plugin tool, pass declared app inputs to Agent runs, and deliver uploaded images to vision models. (#45207, #45425, #45745) * **Accurate knowledge retrieval.** Restore Weaviate keyword/hybrid results by returning BM25 scores, and keep embedding vectors aligned when a batch item is dropped. (#45642, #45569) * **Reliable custom API tools.** Resolve OpenAPI server variables, percent-encode path parameters, and support OpenAPI 3.1 nullable unions. (#46504, #45965, #45895) ## Configuration and Integration Changes ### New and changed settings | Setting | Default / change | Purpose | | --- | --- | --- | | `OPENAPI_ENABLED` | `true` (was `false`) | Enable `/openapi/v1/*` endpoints by default so personal access tokens and `difyctl` work out of the box. Set to `false` to disable. (#46606) | | `NEXT_PUBLIC_ENABLE_HITL_IM` | `true` (was `false`) | Enable New HITL IM, Contacts, V2 editing/migration, and the approval UI. Restart Web and reload the page after changing this value. | | `HUMAN_INPUT_GLOBAL_TIMEOUT_SECONDS` | `604800` seconds (7 days) | Maximum duration a workflow can remain paused while awaiting human input. | | `HUMAN_INPUT_IM_EVENT_TRANSPORT_MODE` | `WEBHOOK` | Deployment-wide IM event transport mode. Webhook callbacks require an externally reachable API. Only `WEBHOOK` mode is available now. | | `TRIGGER_URL` | Set to the public HTTPS API origin for IM callbacks | Used to generate channel Callback URLs. Update the IM provider configuration when this origin changes. | | `NEXT_PUBLIC_ENABLE_AGENT_V2_IN_CHATFLOW` | `false` | Enable Agent v2 nodes in Chatflow, including live tool activity. | | `FILE_SCAN_ENABLED` | `false` | Enable knowledge-file malware scanning globally; individual knowledge bases must also opt in. | | `FILE_SCAN_REQUEST_TIMEOUT_SECONDS` | `300` | Timeout for a scanner request. | | `FILE_SCAN_MAX_ATTEMPTS` | `3` | Maximum attempts when a scanner is temporarily unreachable. | | `FILE_SCAN_CLEAN_VERDICT_TTL_HOURS` | `24` | Reuse period for a clean verdict on the same file content and scanner. | | `DATASET_DESCRIPTION_MAX_LENGTH` | `400` | Maximum character length for knowledge base descriptions. Restart the API after changing this value. | | `DEEPEVAL_DISABLE_DOTENV` / `DEEPEVAL_TELEMETRY_OPT_OUT` | `1` | Shared backend environment defaults prevent DeepEval from loading dotenv files or exporting telemetry. | | `DIFY_AGENT_OPENSHELL_SHARED_MOUNT_PATH` | Removed | Shared-volume Home Snapshots are no longer supported by the OpenShell backend. | | `DIFY_AGENT_OPENSHELL_DRIVER_CONFIG` | Now optional | When left empty, an empty driver configuration is sent. | | `EXPERIMENTAL_ENABLE_VINEXT` | Removed | Removed from `web.defaults` and Web Docker image builds. (#46616) | For Docker Compose, configure shared backend overrides in `envs/core-services/api-worker.env` and Web overrides in `envs/core-services/web.env`. Root `docker/.env` takes precedence. Apply changes with `docker compose up -d`; a plain restart does not reload environment files. The OpenTelemetry provider supports OTLP/HTTP with protobuf; gRPC is not supported. Live Agent tool activity requires streaming output, is unavailable for buffered-output paths, and is not replayed from chat history. File scanning is disabled by default at the deployment level and must also be enabled per knowledge base. Policies for scanner unavailability and unscannable files both default to blocking the file. Disabling `NEXT_PUBLIC_ENABLE_HITL_IM` does not roll back saved data or halt server-side work already in progress. ### Reverse proxy and worker configuration * **New API route:** In `WEBHOOK` mode, forward `/callbacks/human-input/v2/im/` to the API service (`api:5001` in Docker Compose), preserving the request path, raw body, and provider signature headers. The bundled nginx template already includes this rule; add its equivalent to custom nginx, Ingress, or other reverse proxy configurations. Configure the IM provider with the channel's generated Callback URL. (#44864) * **New Celery queues:** Include `human_input_delivery` for asynchronous IM callback processing and post-submission card updates, and `human_input_contact_sync` for IM contact directory synchronization. The default Docker worker list includes both. Custom `CELERY_QUEUES`, `CELERY_WORKER_QUEUES`, or Celery `--queues` lists must provide an active consumer for each queue alongside existing subscriptions. (#44864) ### Docker environment files `docker/envs/core-services/shared.env` is **no longer loaded**. Move common API, worker, and Beat settings to `api-worker.env` before recreating containers. Preserve any service-specific settings in the override file used by that service. (#46497) Public URLs are shared by Web, API, and workers through the new `envs/core-services/urls.defaults` and optional `urls.env`: * `CONSOLE_API_URL` * `CONSOLE_WEB_URL` * `SERVICE_API_URL` * `APP_API_URL` * `APP_WEB_URL` Set browser-accessible base URLs without `/console/api`, `/api`, or `/v1` suffixes. Explicit values in `urls.env` override service-specific URL settings; root `docker/.env` overrides both. Web's internal `SERVER_CONSOLE_API_URL` remains in `web.env`. This also resolves an issue where generated icon links pointed to `127.0.0.1:5001` on fresh installations. (#46497) ## Database Migrations Upgrading from **1.19.0** adds **six migration revisions**, moving the migration head from `53c10126d551` to `f8b6e2c4a901`. Apply the complete Alembic chain through the normal migration runner. | Revision | Change | | --- | --- | | `6b7e2a9c4d10` | Add nullable `started_by_sys_user_id` to `human_input_im_sync_runs` and require exactly one initiating identity per row. | | `b2e4c6d8a013` | Add personal access tokens and their resource/workspace scope tables. | | `8c2f5d7a1e30` | Add file scanner, scan policy, and scan-result tables. | | `91f4b2d7c8e0` | Add Evaluation configuration, run, and run-item tables. | | `c7e4a1b2d9f0` | Add the Evaluation framework column with a default value. | | `f8b6e2c4a901` | Merge the Evaluation and main migration branches. | The Evaluation migrations apply to the **Community Edition** as well, even though CE does not expose the Evaluation feature. Include these revisions when applying the migration chain; none of the six revisions require a separate manual backfill command. (#45945, #45540, #46090, #46141) New HITL introduces the necessary database schema and automatically backfills Contact identities for existing accounts with no extra commands required. These migrations are already included in 1.19.0—existing 1.19.0 deployments need no action, while older versions should run the full migration chain. Legacy Human Input nodes are not automatically migrated and remain opt-in. ## Upgrade Guide > [!IMPORTANT] > Move settings out of the retired `shared.env` before recreating containers. Review public URLs, custom HITL callback routing, and worker subscriptions. OpenShell deployments require a compatible gateway upgrade and no longer restore Home Snapshots. The bundled plugin daemon is updated to **0.6.15-local**. ### Prepare the deployment 1. **Back up data and configuration.** Back up your database, vector-store data, uploaded files, plugin daemon storage, Agent workspace storage, deployment secrets, and environment files. Schedule a maintenance window for a single-stack upgrade. 2. **Upgrade the Dify components together.** Use matching `1.20.0` API, worker, Web, Agent Backend, and Local sandbox images, alongside plugin daemon `0.6.15-local`. Keep `SECRET_KEY`, any configured `PASSWORD_PEPPER`, and the Local sandbox authentication token unchanged. Personal access tokens depend on `SECRET_KEY`; ensure the same value is used across all API replicas. If upgrading from a version earlier than 1.19.0, also follow the [1.19.0 upgrade guide](https://github.com/langgenius/dify/releases/tag/1.19.0). 3. **Migrate `shared.env`.** If `envs/core-services/api-worker.env` does not exist, rename `envs/core-services/shared.env` to that path. If both exist, merge only missing settings and preserve existing `api-worker.env` values, including intentional empty assignments. Retain service-specific settings in the appropriate service override file. Deployments without `shared.env` require no migration. 4. **Consolidate public URLs.** Create `envs/core-services/urls.env` from `urls.defaults` only if it does not already exist. Move the intended public URL values there, then remove duplicate assignments from individual service files. Existing root `.env` values retain precedence. Keep internal Web API routing in `web.env`. 5. **Apply environment, route, and queue changes.** Follow [Configuration and Integration Changes](#user-content-configuration-and-integration-changes), including the New HITL settings, IM callback route, and both Celery queues. 6. **Let plugin storage initialization run.** `init_permissions` now also prepares `./volumes/plugin_daemon` for the daemon's UID 1001, and the daemon waits for it to complete. Recreate the deployment with `docker compose up -d` so the init service runs. (#45615) ### OpenShell deployments Upgrade the OpenShell gateway and SDK together to **0.1.3 or later within the supported 0.1.x line**, and upgrade the Dify API and Agent Backend together. The gateway must support native service exposure and bearer passthrough, preserving the per-sandbox authorization token derived from `DIFY_AGENT_OPENSHELL_SHELLCTL_AUTH_TOKEN`. Keep that master secret identical across Agent Backend replicas. (#45862) Build the OpenShell runtime image from the release checkout and set `DIFY_AGENT_OPENSHELL_SANDBOX_IMAGE` to the exact image reference available to the gateway's compute nodes. The image must include both `shellctl` and `iproute2`; an older cached runtime image may lack the required networking tools. When upgrading from the previous shared deployment-wide `shellctl` token, generate a fresh high-entropy master secret and update all Agent Backend replicas together. Drain active work, then stop and restart existing sandboxes so `shellctl` restarts with the derived credential. Reacquiring an already healthy sandbox does not refresh its credential. Shared-volume Home Snapshots and `DIFY_AGENT_OPENSHELL_SHARED_MOUNT_PATH` are removed. Existing running sandboxes retain their state across stop/restart cycles, whereas newly created Bindings start from the image's default Home. `DIFY_AGENT_OPENSHELL_DRIVER_CONFIG` is now optional. Review the [OpenShell deployment guide](https://github.com/langgenius/dify/blob/1.20.0/dify-agent/docs/dify-agent/guide/openshell.md), including its runtime-image requirements, before upgrading. Other sandbox backends are unaffected. ### Docker Compose Once the `1.20.0` tag and images are published, stop the deployment gracefully, switch to the release, migrate local configuration files, and then pull and start the updated services: ```bash cd dify/docker docker compose stop -t -1 git fetch --tags git checkout 1.20.0 # Migrate shared.env, public URLs, and any custom proxy/worker configuration. 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. Use `docker compose up -d` after changing environment files; a plain restart does not reload them. ### Source deployments Use **Python 3.13**, **Node.js 24.22.3 or later in the 24.x line**, and **pnpm 12.18.0**. After stopping the services and switching to the release, run the following commands from the repository root: ```bash uv sync --project api --frozen uv run --directory api flask db upgrade pnpm install --frozen-lockfile ``` Rebuild Web and restart the API, workers, scheduler, and Agent services from the same release. Update the standalone Agent Backend's locked dependencies if deploying it separately. Preserve existing worker subscriptions and add the two HITL queues where needed. **Full Changelog:** [1.19.0 → 1.20.0](https://github.com/langgenius/dify/compare/1.19.0...1.20.0)

  2. 1.19.0 GitHub ↗
    Original release notes

    **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](#user-content-release-highlights) · [Upgrade guide](#user-content-upgrade-guide) · [Detailed changes](#user-content-detailed-changes) <a id="release-highlights"></a> ## 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](https://raw.githubusercontent.com/langgenius/dify/dcfb52e62726c91b43db20f3c087acf285428df1/docs/assets/pr-44673-langfuse-nested-prompts.jpg) *From the outer workflow to a nested LLM call: the execution tree and formatted messages, together in Langfuse. Screenshot from [#44673](https://github.com/langgenius/dify/pull/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. > [!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](#user-content-upgrade-guide) 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) All Dify app exports now use **package format v2**, including apps without Workflow Tools. Existing v1 imports and explicit YAML export remain supported. See the [upgrade guide](#user-content-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) <details> <summary><strong>See Agent file uploads and previews</strong></summary> ![Inline PDF preview in Agent files, with the research brief and file list](https://github.com/user-attachments/assets/22bafc75-c8f5-46fd-b7ba-c5097f9cffb6) *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](https://github.com/user-attachments/assets/5eafd0c1-f46d-4966-bbc0-e6cd5eacff02) *Select several files and upload them together.* ![Syntax-highlighted Python source in the Agent file preview](https://github.com/user-attachments/assets/1435fd23-7489-450a-a200-dbd81c1b588d) *Inspect source files with syntax highlighting and line numbers.* </details> ## 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) <details> <summary><strong>The six Skill commands</strong></summary> | 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. | </details> 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) --- <a id="upgrade-guide"></a> ## 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 App packages use 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](https://github.com/langgenius/dify/releases/tag/1.18.0). 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`. (#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. (#45359, #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](https://github.com/langgenius/dify/blob/laipz8200/release-1.19.0/docker/README.md#review-configuration-after-an-upgrade). (#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](https://github.com/langgenius/dify/blob/laipz8200/release-1.19.0/api/providers/trace/README.md#rolling-upgrade-from-the-previous-pipeline). (#44673) 7. **Upgrade package destinations before importing new App packages.** New app packages always use 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. (#44592, #45353) <details> <summary><strong>Deployment instructions · Docker Compose, source, and difyctl</strong></summary> **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: ```bash 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](https://github.com/langgenius/dify/blob/laipz8200/release-1.19.0/docker/README.md#configure-dify). (#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: ```bash 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`. </details> <details> <summary><strong>Database migrations and existing data</strong></summary> 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: - **Storage-cleanup indexes (`d7e9a1c3f502`).** Add reference indexes on `message_files.upload_file_id`, `workflow_node_execution_offload.file_id`, and `workflow_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. (#44982) - **Tracing configuration uniqueness (`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. (#44673) - **Extraction changes affect newly processed content.** Re-import or re-index documents whose stored content was affected by the EPUB, EML, DOCX, CSV, Markdown, or Notion fixes. The repeated-PDF-preview fix prevents new duplicate assets for source uploads; it does not remove duplicates already stored. (#44836, #44953, #44905, #43505, #43434, #45053, #44684) - **Tracing history is not rebuilt.** Existing Agent trace-ledger data remains readable, but previously exported traces do not acquire the new nested spans. (#44673) </details> <a id="detailed-changes"></a> ## Detailed changes <details> <summary><strong>New capabilities · tracing, packages, and Skills</strong></summary> **Tracing and provider integrations** - Consolidate delivery through the shared provider interface for Langfuse, LangSmith, Opik, Weave, Arize, Phoenix, Aliyun, MLflow, Databricks, and Tencent. Retryable exports resend the same trace unit with deterministic identifiers. (#44673) - Include called Workflow Tools' persisted execution frames in external exports, under their invoking Tool spans. Independently nested workflow runs remain separate traces linked by parent identifiers. (#44673) - Keep trace credentials write-only. Blank or omitted secrets preserve stored values; changing a destination host, endpoint, or URL requires entering its secrets again. (#44673) **Portable App packages** - Package the workflows behind called Workflow Tools, including transitive dependencies, with a default maximum of **20** bundled tool workflows. Missing destination tools are recreated and published; existing tools are reused. Creating missing tools requires tool-management permission and sufficient app quota. Packages needing DSL-version confirmation are rejected in this flow, and apps created before an import failure are cleaned up. (#44592) - Always emit format v2 for App packages, including nested packages and packages without Workflow Tools. This does not change the separate roster-Agent package format. (#45353) - Workflow and API tool IDs no longer become spurious `langgenius/<uuid>` plugin dependencies during export. (#44592) **Skills and OpenAPI** - Export drafts or published Skill versions, import folders, and publish through account-authenticated workspace operations. An import with a Skill ID replaces that Skill's draft; the imported `SKILL.md` name must match. Optional `draft_hash` checks reject stale replacements, but use second-resolution timestamps and do not detect edits made within the same second. (#44941) - Skill import drops operating-system junk, rejects unsafe or duplicate paths, enforces file/size limits, reuses identical binary assets, and removes assets written by a failed import. Literal dashes inside Skill frontmatter are preserved. (#44941, #43602) - The operation catalog publishes each operation's effect, and CLI help displays it. Workflow/Chatflow stopping uses stored run ownership and state; unknown runs return `404`, and finished or otherwise non-stoppable runs return `409`. Message-app stopping keeps its task-ID semantics. (#44587, #45314) - Add the experimental `@dify/openapi-content-mapper` package 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. (#44627, #44915) </details> <details> <summary><strong>Improvements · editing, accessibility, performance, and operations</strong></summary> - **Batch Agent file management:** multi-select and multi-file drop, parallel uploads, one atomic binding request, retry using cached upload IDs, and protection against stale Composer saves overwriting newly bound files. Existing single-file endpoints remain compatible. (#44947) - **More usable previews:** highlighted text, on-demand PDF rendering, stable open previews, and explicit truncated-text notices across Agent files, Skills, and working directories. (#45032, #45045) - **Direction and keyboard support:** synchronized locale direction, broader right-to-left layouts, date/time pickers integrated with forms and focus containment, visible labels retained in accessible names, and consistent read-only controls. (#44621, #43869, #44638, #44650, #44593, #44755, #44772, #44589, #45036, #45375) - **Safer editing dialogs:** deletion, rename, metadata, annotation, member-role, and plugin-setting dialogs preserve their sessions and drafts, keep pending actions open, and restore focus after completion. Repeated deletion submissions are blocked while a request is pending. (#44618, #44623, #44643, #44646, #44698, #44736, #44743, #44810, #44825, #44788, #44715, #44652, #44838, #44830) - **Clearer feedback:** field errors and persistent notices appear near the controls they concern, with shared alert presentation across apps, workflows, knowledge, billing, and Skills. Cloud billing uses localized prompts for retryable and action-specific errors. (#45151, #45264, #45266, #45267, #45268, #45192) - **Accurate Cloud quota displays:** distinguish unlimited counts from zero-capacity App Run and trigger quotas, and interpret reset dates as Unix seconds. Pricing display data no longer doubles as live usage limits. (#45117, #45115) - **Lower query overhead:** segment pages load child chunks and attachments in batches; new reference indexes support app storage cleanup. (#45050, #44982) - **Connection reuse:** Gunicorn's configurable keep-alive defaults to 10 seconds, reducing failures caused by reusing connections after the server's shorter idle window. (#44839) - **Docker configuration:** service and provider overrides now reach the relevant containers, database commands, health checks, and WebSocket settings. The generator creates only a missing root `.env`, leaving optional overrides under operator control. (#45359, #45376) </details> <details> <summary><strong>Security enhancements</strong></summary> - **Workspace controls:** enabling or disabling provider models requires an owner or administrator. Email-availability checks require account admission. ([64fe95667b](https://github.com/langgenius/dify/commit/64fe95667b216dad6a44aa5ed4e45768f5672781), [76979a1e24](https://github.com/langgenius/dify/commit/76979a1e2421492ec34f852bc462ee4912643260)) - **Request-scoped cookies:** pooled SSRF clients retain response cookies only within the current outbound request and its redirects, preventing later requests from inheriting another request's cookies. (#44672) - **Dataset token scope:** resource access tokens can list only their explicitly bound active datasets; `include_all=true` cannot widen that scope. Legacy workspace Dataset API keys retain tenant-wide behavior without inheriting an injected owner's personal visibility filters. (#44840) - **App access settings:** importing DSL over an existing app preserves its Web App access mode, and converting an app inherits the source access mode. (#44700, #44857) - **Tracing secrets and egress:** configuration reads no longer return saved credentials, destination changes require secret re-entry, and provider traffic uses the shared outbound policy. (#44673) - **Dependency hardening:** update Authlib to 1.9.1, require LiteLLM 1.100.4 or later within its supported major version, move Agent Pydantic AI to 2.53.0 and Pillow to 13.0.0, update pypdf to 6.21.4, and refresh Werkzeug, GitPython, and other dependency fixes. The standalone Agent pins filelock 4.2.1; Docker build tooling updates uv to 0.13.4. These source updates do not claim to resolve every finding in external or Enterprise base images. (#44606, #44793, #44868, #44871, #44886, #45041, #45104, #45215, #45259, #45214, #45260) </details> <details> <summary><strong>Bug fixes · workflows, Agents, knowledge, APIs, and the web app</strong></summary> **Workflows and execution** - Restore structured-output fallback for models without native support and preserve JSON booleans instead of converting them to strings. (#44962) - Honor configured file and file-list defaults across Studio, published apps, and API execution. Explicit clearing stays distinct from omission, reset conversations restore defaults, and saving file defaults no longer sends browser Blob objects that cause `415` errors. (#44780, #45042) - Preserve numeric zero in required Studio inputs and previews, and preserve both zero and false in opening statements. Non-object file-reference payloads fall back to the original reference instead of failing unexpectedly. (#45005, #44833, #45088) - Admit streaming Workflow and Chatflow requests only once against app concurrency limits, so a limit of one accepts the single active request. Terminal Chatflow events now stop the execution watchdog and release its retained context. (#45038, #45029) - Preserve caller identity for scheduled Agent file access, use the UTC clock for the Start node's `sys.timestamp`, and order weekly schedule previews by date. Webhook query/form numbers retain integer precision and reject non-finite values. (#44796, #44847, #44718, #44706) - Refresh available workflow nodes when availability changes, retain generated variables when applying a generated prompt, escape variable-search highlighting, and preserve prompt-editor focus when variable metadata refreshes. (#44769, #45274, #44625, #44791) - Request clear-canvas confirmation only when clearing a previously nonempty saved draft, and wrap long workflow error messages. (#45028, #45106) **Agents, tools, and Skills** - Persist refreshed OAuth credentials and serialize concurrent refreshes across tools and datasources, protecting rotating tokens and concurrent reauthorization. Temporary refresh failures return a temporary-unavailability response instead of incorrectly asking users to repair valid credentials. (#32195) - Reject late non-terminal events after an Agent stream has completed or been cancelled. Deduplicate plugin JSON output by content rather than formatting, and retain trailing partial action/thought prefixes in ReAct output. (#45080, #45297, #43353) - Stop serializing the entire prompt history into every Agent LLM gateway response chunk. Preserve request content, tool calls, multimodal content, usage, and quota settlement. (#45137) - Handle non-recording tracing parents and isolate concurrent Celery tracing contexts. (#44701, #44803, #45049) - Allow current Qwen flash models in Agent v2 and refresh suggested model patterns. Omit empty optional Agent variable inputs, and accept legacy comma-separated values for multiple-select tool parameters. (#44873, #44748, #45058) - Restore creator-based Agent edit permissions. Skill and snippet searches treat wildcard characters literally, and imported integration bundles retain their plugin icons. (#45040, #44922, #44708, #45112) **Knowledge and document processing** - Remove index entries written by a document that was deleted during indexing. Partial QA-segment updates preserve an omitted answer and its contribution to counts. (#44364, #44997) - Include documents missing a metadata key in negative metadata filters, honor explicit `top_k=0`, normalize blank legacy retrieval settings on read, and use keyword retrieval for Economy datasets in retrieval previews. (#44753, #42980, #45020, #44895) - Restore Notion page listing and file import, keep failed page loads retryable, and surface Notion database HTTP failures. (#45053, #44893) - Read EPUB chapters in declared order without extracting archive members to disk; preserve already-decoded EML text; identify DOCX images by relationship type; support numeric CSV column labels; and keep headings inside Markdown code fences intact. (#44836, #44953, #44905, #43505, #43434) - Reuse extracted PDF image assets for repeated previews of the same source upload. Restore Service API file-document creation/update when tenant context is missing or the original dataset creator has left. (#44684, #44972) - Include users' own maintained datasets in their lists. (#44795) **APIs, files, and SDKs** - Let MCP Chatflow generation commit its conversation session without a closed-transaction error. API-tool imports ignore non-method Swagger path keys. Suggested-question parsing retains brackets inside quoted questions, and missing citation resources return an empty list. (#44636, #44992, #44916, #43036) - Normalize remote Content-Type values, preserve detected media types for uploads accepted through “Other File Types,” and apply media-specific limits during remote-upload preflight. (#44677, #41292, #44273) - Report download HTTP failures instead of passing error pages to the plugin installer. Distinguish Squid-generated denial responses from upstream authentication errors, preserve GitHub import paths containing `blob`, and reject incompatible multipart file shapes consistently. (#44333, #44841, #44280, #44903) - The Node.js SDK accepts long knowledge-document text, handles CR/LF/CRLF SSE framing and a leading BOM, and accepts an empty pagination cursor as the first page. (#44679, #44263, #44265) - The PHP SDK serializes empty app inputs as JSON objects, avoids buffering streaming Workflow and text-to-audio responses, and sends `last_id` for conversation pagination while preserving its public method signature. (#44675, #44271, #44659) **Web app and workspace** - Keep newly created, user-maintained apps visible in Studio and preserve primary navigation across Console routes. Calculate log-period boundaries from the current date. (#44929, #44633, #45360) - Use navigable links in document menus, open publisher destinations in new tabs, and advance integration-tour steps without reloading the page. (#44694, #44808, #44934, #44944) - Respect Marketplace availability across template and plugin entry points and render emoji-ID icons in recommended cards. (#45009, #45027, #45066) - Preserve annotation editor drafts and voice-input focus, and add the Simplified Chinese account-deletion success email template. (#44810, #44825, #45169, #43504) </details> <details> <summary><strong>Environment variables and integration changes</strong></summary> | 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](https://github.com/langgenius/dify/tree/laipz8200/release-1.19.0/docker/envs) rather than replacing local files with fresh templates. (#45359, #45376) **Endpoint compatibility** - Replace deprecated Console profile-update POST calls to `/account/name`, `/account/avatar`, `/account/interface-language`, `/account/interface-theme`, and `/account/timezone` with **`PATCH /console/api/account/profile`**. Avatar URL reads remain available. (#45015) - Custom clients of **`GET /console/api/apps/{app_id}/trace-config`** must consume `configured_secrets` instead of expecting saved secret values. (#44673) - For Workflow and Chatflow OpenAPI calls, use **`POST /openapi/v1/apps/{app_id}/runs/{run_id}:stop`** (`stop.run`) and **`GET /openapi/v1/apps/{app_id}/runs/{run_id}/events`** (`get.run.event`). Chat, Agent Chat, and Completion retain the task-ID stop route under `stop.task`. (#44587) - Cloud education verification returns an explicit **`status: eligible | not_eligible`** result; only eligible results contain a token. The corresponding internal billing service must support this response contract. (#45165) </details> **Full Changelog:** [1.18.0 to the 1.19.0](https://github.com/langgenius/dify/compare/1.18.0...1.19.0)

  3. 1.18.0 GitHub ↗
    Original release notes

    Dify 1.18.0 brings **Agents that route workflows**, **portable app packages**, **deeper visibility into nested workflow runs**, and the opt-in **Agent Knowledge Base** experience. OpenAPI and the new difyctl expand how you build and manage apps from the command line. > [!IMPORTANT] > **Read the upgrade guide below before deploying.** Upgrade the API, workers, Agent Backend, and Agent runtime images together. Local Agent sandboxes require a non-empty authentication token, and Agent Backend uses a new run protocol. Source installations require Python 3.13. Install the new difyctl client and sign in again. Preserve your existing `PASSWORD_PEPPER` configuration. ### Release highlights #### Agents that choose the next step Let an Agent decide which workflow branch to take. Enable **Output Routes**, give each route a selection condition, and connect it to the next step—such as resolving a request directly or handing it to a specialist. The read-only `switch` output exposes the chosen route. (#42599) ![Agent Output Routes with Resolve directly and Escalate to team branches](https://github.com/user-attachments/assets/30480ac3-d53e-4522-b1c5-95eb1d9ac9f2) *Output Routes configuration with two branches in the workflow editor.* Plain Agent v2 nodes also stream text as it is generated. Structured results, routed results, and nodes using default-value error handling remain buffered. (#43986) #### Portable apps in one package Move an app with its supported resources in a single **`.ifpkg` package**. Workflow and Chatflow packages carry inline Agents, Skills, and their files; imports recreate those resources in the destination workspace and remap references. File and URL imports support both packages and YAML, and explicit YAML export remains available. (#42066, #42579, #42626, #42863) ![Studio Import App dialog with a portable-workflow.ifpkg package selected](https://github.com/user-attachments/assets/11ae78d4-c902-45ff-b875-7c91dd6a530f) *Studio's `.ifpkg` import preview.* #### See inside nested workflow runs Open a **Workflow Tool invocation** from the run history and inspect the child workflow's individual steps. Nested tools now run as child graphs with coordinated pause, resume, stop, and file outputs. Access checks protect the source app's details. (#40277, #42819, #42820, #42821, #42822) ![Nested Workflow Tool trace showing successful Start, Template, and End steps](https://github.com/user-attachments/assets/90a2236f-2118-4bc4-82fe-20508167b636) *Trace drilldown into a successful Workflow Tool invocation.* Nested usage and step totals can still be approximate, particularly after a pause or stop. Console drilldown and external trace export have different scopes; see the full feature details below. #### Agent Knowledge Base · Beta Create a knowledge space for your agents, add files or connect sources, and inspect document processing, metadata, retrieval traces, and quality evaluations in one place. The new Knowledge Retrieval node and Agent integrations share access-controlled KnowledgeFS spaces. Classic Knowledge remains available. This is an opt-in integration with a separate service and database; see the deployment requirements below. (#44165) *Will soon be available on cloud.dify.ai* ### Developer spotlight **Build and manage apps with OpenAPI and difyctl.** The CLI discovers commands from the server's operation catalog, with searchable help and support for Workflow and Chatflow creation, DSL import/export, settings, environment variables, publishing, and version restoration. Draft hashes protect concurrent edits. (#42487, #42608, #43067) Install the bundled skill for agents building Dify apps: ```bash difyctl install skills <dir> ``` The new client requires a fresh sign-in; see the deployment instructions below. (#43819) --- ### Upgrade guide **Compatibility and Rollout** 1. **Back up first.** Retain the database, vector-store data, uploaded files, Agent snapshot/workspace storage, and all deployment secrets and env files. Use a maintenance window for a single-stack upgrade. 2. **Upgrade the Agent components together.** `/runs` now accepts composition v2 and rejects v1 requests. Existing session snapshots are converted on read and saved as v2; old runtimes cannot read newly saved v2 snapshots. Direct Agent Backend integrations must update their request format. The old Agent-specific AskHuman tool and deferred resume path are removed: historical Agent forms no longer resume execution, while shared Workflow Human Input nodes remain supported. (#43833) 3. **Retire old workflow consumers before admitting new-version traffic.** Let in-flight runs finish, then replace legacy workers/resume consumers so they cannot process the shared queue without the new cancellation guards. Legacy paused task IDs can be recovered from valid saved invocation snapshots within the existing access scope; missing or invalid snapshots require separate recovery. Nested usage totals retain the limitation noted above. (#40277) 4. **Configure the Local sandbox token before restart.** Supply a high-entropy secret through the shared Compose interpolation source. The `1.17.1` runtime image does not support the new `--require-auth-token` flag; deploy the matching `1.18.0` Agent Backend and Local sandbox images. (#44152) 5. **Preserve password hashing configuration.** Existing installations without a pepper should leave `PASSWORD_PEPPER` empty. Setting a new pepper during the upgrade is not a transparent migration and requires an explicit password-reset plan. Keep any configured pepper unchanged across all instances and restore it with the database. 6. **Review the proxy boundary.** Bundled Nginx replaces `X-Forwarded-For` with its resolved client address, and Compose enables forwarded-header handling. Keep direct API access restricted to trusted callers. If a load balancer or Cloudflare sits before Nginx, configure trusted real-IP handling there; otherwise visitors may share the proxy’s rate-limit bucket. See [client IP and trusted proxies](https://github.com/langgenius/dify/blob/laipz8200/release-1.18.0/docker/README.md#client-ip-and-trusted-proxies). 7. **Enable KnowledgeFS deliberately.** Default Compose installations keep it off; local Community Edition development requires the explicit Community development opt-in. Configure its separate database and migrations, Capability v2 public verifier, Dify signing keys, model profile (embedding, reasoning, and rerank), and Workspace cutover gates before enabling traffic. The optional service must pass `/ready`, not only `/health`. Standard Dify API images do not contain the separate KnowledgeFS engine used by the optional engine-worker profile; the published default KnowledgeFS API image is currently amd64 only. Follow the [KnowledgeFS deployment and recovery guide](https://github.com/langgenius/dify/blob/laipz8200/release-1.18.0/docker/README.md#knowledgefs-integration-service). <details> <summary><strong>Deployment instructions · Docker Compose, source, and difyctl</strong></summary> **Docker Compose** Once the 1.18.0 release images and tag are published, stop the old stack gracefully, switch to the release, merge the configuration changes above, and pull/start the new stack: ```bash cd dify/docker docker compose stop -t -1 git fetch --tags git checkout 1.18.0 # Merge required configuration changes into existing env files here. docker compose pull docker compose up -d ``` Keep database migrations enabled (`MIGRATION_ENABLED=true`) for the API startup, or run them through your managed migration process before starting new workers. The bundled Weaviate update from 1.17.1 is a patch update within 1.39. If coming from a version that still runs Weaviate 1.27, complete the [1.17.1 staged Weaviate upgrade](https://github.com/langgenius/dify/releases/tag/1.17.1) first. **Source Deployments** Use Python **3.13** for the API, Node.js **24.22.1** or later in the 24.x line, and pnpm **12.10.1**. Refresh the locked dependencies and apply the database migrations from the repository root: ```bash 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. If deploying Agent Backend separately from source, refresh its locked `server` dependencies as well. **difyctl** Install the matching 1.18.0 client. Its v2 implementation does not reuse v1 login state: ```bash difyctl login --server https://your-dify.example.com difyctl help ``` Update scripts to the current server-discovered command surface. The old mode-agnostic `/openapi/v1/apps/{app_id}:run` route is replaced by per-mode operations; use the catalog instead of hard-coded v1 routes. Refresh installed agent skills with `difyctl install skills <dir>`. (#42487, #42608, #43819) </details> <details> <summary><strong>Existing data that may need recovery</strong></summary> - **Published triggers:** the draft-sync fix does not repair subscriptions already removed before upgrading. Rebind missing subscriptions and republish affected workflows as needed. (#44068) - **Document extraction:** re-import/re-index affected content to apply extraction fixes to existing documents. - **Built-in document metadata:** toggling built-in fields rewrites only enabled, non-archived documents whose indexing is complete. Other legacy rows can retain the old format and need a later rewrite when eligible; this release does not include a full backfill. (#44218) </details> ### Detailed changes <details> <summary><strong>New features · complete capabilities and availability</strong></summary> **Agent Knowledge Base and KnowledgeFS** - Add the Beta knowledge-space experience with local upload preview, connected-source management, document availability and metadata, retrieval history/research, and quality evaluation. Settings control app, Agent, and Service API access. Classic Knowledge remains supported alongside it. (#44165) - Knowledge Retrieval v2 and Agent knowledge bindings use scoped capabilities; published Explore runs reuse published bindings without requiring ordinary viewers to reconfigure access. (#44165) - Classic Dataset upgrades have durable checkpoints, availability/metadata reconciliation, retry protection, and recovery through Beat. Run the dedicated upgrade worker with the documented prefork pool and task limits; apply `b9d3f7a5c102` before restarting API/workers/Beat. Opting into the service does not automatically migrate all Classic datasets. (#44165) **Portable App Packages** - App exports now default to `.ifpkg`, bringing the application configuration and its supported resources into one portable package. Explicit YAML export remains available, and imports accept both formats from files or URLs. (#42066, #42189, #42425, #42552) - Workflow and Chatflow packages include inline Agents, their Skills, and files from each node’s bound configuration snapshot. Imports recreate those Agents in the destination workspace and remap their resources. App icons, Site settings, and node plugin dependencies are included in the export flow. Missing resources are reported during import. (#42579, #42626, #42816, #42863, #42913) - Agent exports can target a published version. Agent version menus now offer Restore, and pending draft saves finish before restoration so autosave cannot overwrite the restored configuration. Skill duplication and export use the latest saved draft content. (#42485, #42567, #42424, #42502) **Nested Workflow Tools and Trace Drilldown** - Called Workflow Tools run as child graphs under the workflow engine, with coordinated pause, resume, stop, and file outputs. Source graphs are captured before execution, so republishing a tool does not change an in-flight run, including calls inside loops and iterations. (#40277, #42820) - Workflow, Chatflow, and history views can open a particular tool invocation and navigate its internal execution traces. Access to each source application is required before its details are returned. Human Input forms are tracked by execution identity, including repeated invocations of the same node. (#42819, #42821, #42822) - Nested Agent logs and usage records retain their source workflow identity and their relationship to the outer run. **Nested usage and step totals can still be approximate, particularly after pauses or stops.** (#42824, #42820) **Agent Output Routes and Streaming** - Agent v2 nodes can select a workflow branch as part of completing their task. Enable Output Routes, define at least two branches and their selection conditions, and use the read-only `switch` output to inspect the chosen route. With routing disabled, the normal success outlet remains available. Routed nodes support stopping on error or taking a failure branch; node-level default-value handling is unavailable with routes enabled. (#42599) - Plain Agent v2 nodes stream text as it is generated. Structured or routed results remain buffered, and nodes using default-value error handling stay buffered so the configured fallback can still replace a failed result. (#43986) **Build and Manage Apps with OpenAPI and difyctl** - `/openapi/v1` publishes a server operation catalog. difyctl discovers commands and their input fields from that catalog, provides searchable help, and follows server-provided next steps. Workflow and Chatflow authoring now covers app creation, DSL import/export, settings, environment variables, publishing, and version restoration. Draft hashes protect imports from overwriting concurrent edits. (#42487, #42608, #43067) - The CLI includes a `difyctl` skill for agents building Dify apps. Install it with `difyctl install skills <dir>`. Device login supports `--no-wait` and `--resume`, and folder uploads send one multipart part per file. (#43819, #44356) - Workspace owners can create resource access tokens bound to selected apps or knowledge bases. Tokens work with the supported Service API routes and app operations in difyctl; they do not grant workspace administration. The Settings entry is opt-in through `NEXT_PUBLIC_ENABLE_ACCESS_TOKEN`, which defaults to `false`. (#42293, #44422) **Edit Agent Prompts from the Sandbox** - `dify-agent config prompt pull [--to PATH]` and `push [PATH|-]` read or replace the raw system prompt, preserving UTF-8, whitespace, and mention markers. Empty text clears it. Only the current account’s writable build draft can be changed; later requests use the saved prompt. (#44561) **Agent Execution Tracing** - Agent apps and Workflow Agent v2 nodes can export their Agent, model, and tool execution trees through the existing tracing providers. Monitoring adds shared tracing configuration, delivery status, retry controls, and links to the trace belonging to the selected execution. Agents referenced by a Workflow inherit the caller’s tracing policy. (#44144, #44186) - Application tracing is opt-in on both the API and Agent Backend. A separate deployment-wide OTLP trajectory exporter is also available, independently of system tracing. (#42651, #44144) - Called Workflow Tools’ internal nodes are excluded from external exports because those exports have no viewer identity for source-app access checks. Agents inside those called tools are also excluded from the new execution-tree export for now; authorized Console drilldown remains available. (#42823, #44144) **OpenShell Sandbox Backend and E2B Usage Collection** - Agent execution can use a self-hosted NVIDIA OpenShell gateway with `DIFY_AGENT_RUNTIME_BACKEND=openshell`. Each Binding has its own sandbox, with authenticated shell access, Home Snapshots on an operator-managed shared volume, and an optional egress allowlist. OpenShell gateway 0.0.106 or newer and a compatible runtime image are required. (#41076) - OpenShell lease release closes the connection but leaves the sandbox running. There is no automatic idle-stop or sandbox TTL; operators must manage those resources. Multi-tenant deployments require separate OpenShell workspaces and snapshot volumes per tenant. See the [OpenShell deployment guide](https://github.com/langgenius/dify/blob/laipz8200/release-1.18.0/dify-agent/docs/dify-agent/guide/openshell.md). - Optional E2B usage collection records provider execution duration and resource sizes through Celery Beat and the `ops_trace` queue. Collection starts from a configured activation time and does not backfill earlier executions. Both the API and Agent Backend metering flags default to off. (#42554) **Cloud Access Controls, Templates, and Archive Management** - Reusable network access groups let supported Cloud deployments share IP rules across apps, with permission checks, effective-policy status, and trusted client-IP previews. Enforcement depends on the Cloud policy service and Gateway; this is not a standalone Community Edition firewall. (#41025, #44464) - Cloud users can preview and try published Agent templates before importing them. Agent “Create from Template” is hidden in Community and Enterprise editions because its template data source is Cloud-only. (#42837, #44035) - In Cloud Workflow Log Archives, workspace owners can permanently delete a selected month, with confirmation, progress, and retry. The action removes archived objects and prepared ZIP downloads; live workflow-run records are outside its scope. Failed deletion jobs now enter the retry policy instead of reporting success. (#44052, #44061, #44203) </details> <details> <summary><strong>Improvements · performance, navigation, accessibility, and operations</strong></summary> - **Knowledge performance:** dataset lists and indexing status use batched queries; segment imports avoid repeated position queries; retrieval and result post-processing reduce repeated lookups. (#42279, #42191, #42233, #42673, #43665) - **Faster loading:** translations load by feature, workflow configuration panels load on demand, and chart, music, and SVG previews defer heavier work. Chat history no longer loads saved prompts that are not needed for display. (#42812, #42873, #42874, #42877, #42970, #42840, #42951, #44521) - **Navigation and accessibility:** improved command discovery, keyboard navigation, focus return, dialog labels, and responsive layouts across Studio, workflow editing, Knowledge, Agent configuration, and workspace settings. Studio filters survive navigation, timezones are searchable, and workflow image export has a dedicated toolbar action. (#43133, #44330, #44429, #43944, #43662, #44220, #44378, #44492, #44535, #44539, #44548, #44564) - **Floating controls:** menus, selectors, popovers, and tooltips now use Base UI positioning directly, with migrated alignment and offset settings throughout the console. (#44588) - **Date, time, and icons:** redesigned date/time pickers, native scrolling for time options, and an updated icon picker with image cropping and self-hosted emoji assets. (#43090, #43723, #43007, #42469) - **Localization:** Azerbaijani (`az-AZ`) joins the supported UI languages, with additional translation and right-to-left layout improvements. (#42291, #43808) - **Developer tooling:** faster TypeScript checks through tsrs, plus typed Document and CustomizedSnippet models that preserve existing constructors and database defaults. (#44562, #36084, #40818) - **Operations:** archive storage supports configurable S3 addressing style; the API image includes its spaCy model so startup does not need to download it; workflow generation logs identify tools omitted from the bounded fallback catalog. (#43066, #43601, #42596) </details> <details> <summary><strong>Security enhancements</strong></summary> - **Local sandbox authentication and isolation:** enabled Local runtimes reject blank authentication tokens. When path isolation is enabled, a Landlock setup failure aborts the job with exit code `125` before executing user code. (#44152) - **Password hashing and plugin permissions:** optional `PASSWORD_PEPPER` adds a server-side secret to account password hashes. Plugin installation defaults to workspace owners and administrators when no explicit policy is stored; existing saved policies remain in effect. **Setting, changing, or removing the pepper invalidates existing password hashes.** See the upgrade guidance. ([ed772cfcf7](https://github.com/langgenius/dify/commit/ed772cfcf7)) - **Access boundaries:** exact CSRF whitelist matching, stronger dataset operation permissions, workspace-bound tracing service accounts, and protected owner/admin role handling. Re-inviting a removed member restores access without allowing the invitation to be reused after a later removal. (#42118, #42758, #44208, #43118, #43311, #43667) - **Knowledge sharing defaults:** in RBAC-enabled deployments, new knowledge bases no longer automatically include every workspace member. (#42430) - **Error and plugin handling:** API and webhook failures return fixed public messages instead of internal exception text, and plugin daemon requests use pinned package identifiers. (#43049, #44395, #44396) - **Dependency updates:** bundled Weaviate moves from `1.39.2` to `1.39.13`, alongside Next.js and other dependency security updates. The Weaviate change stays within the 1.39 series; the staged minor-version migration described for 1.17.1 still matters when upgrading from older installations. (#44508, #44127, #44148, #44524) - The standalone Agent certifi bundle is updated to `2026.10.19`; rebuild Agent images to consume the updated trust bundle. (#44462) - **NLTK:** NLTK is updated to 3.10.4 for upstream path-handling hardening; this change alone is not a claim that every advisory is resolved. (#44581) </details> <details> <summary><strong>Bug fixes · workflows, Agents, Knowledge, APIs, and the web app</strong></summary> **Workflow and Scheduling** - Preserve LLM prompt/model changes during collaboration and synchronize imported graphs correctly. Code generation retains input bindings for surviving parameter names, understands multiline/destructured signatures and Python parameters containing commas, and preserves literal `{{inputs}}` text in user code. (#42124, #42817, #44075, #44046, #44337, #43438) - Remove unsupported Chatflow memory settings when pasting into a Workflow and when loading/saving Workflow graphs in the editor. Existing published versions or API-only flows are not rewritten by this editor fix. (#43597, #43752) - Preserve configured fallback values when Code node outputs are removed, added, or renamed; require confirmation before saving an empty canvas; and retain in-run tool-file access for later nodes. (#42678, #43668, #41300) - Persist task ownership and stop intent so late writes or a concurrent resume cannot revive a stopped workflow. Failed asynchronous trigger dispatches are recorded as failed in trigger logs, and elapsed time remains consistent across resumptions. (#40277, #43009, #44161) - Scheduled fire-and-forget dispatch no longer creates a Redis result-backend drainer for every task group, preventing accumulating idle result connections. The same correction covers trigger refresh and pipeline dispatch. (#44551) - Editing a draft no longer removes published trigger subscriptions. This prevents new damage but does not rebuild relationships already lost before the upgrade. (#44068) - Save the timezone shown on new schedule nodes, handle daylight-saving transitions in next-run calculation and offset labels, and correct hourly previews at month boundaries. (#43532, #43357, #43627, #43925) **Agents and Skills** - Conversations can continue after cancelled tool calls; replayed tool-call IDs remain stable; parallel tool results stay attached to their own thoughts; and initial event-write failures finalize runs instead of leaving them running. Redis event replay also works with Redis 6. (#41846, #43796, #43843, #43959, #44420) - E2B uses SDK 2.55.1 with safer retry behavior: resource creation is not replayed after an ambiguous 502, while safe lifecycle operations retain transient-failure recovery. Pauses and Home Snapshots explicitly request full-memory mode. (#43930) - E2B sandbox acquisition checks that Home and Workspace resources exist, and confirmed-missing Enterprise Home Snapshots count as successful deletion. (#44014, #44085) - Skill attachments preserve formatted DOCX text, RTF Unicode fallback lengths and binary boundaries, and PPTX presentation order. (#43718, #43789, #43893) - RTF extraction also combines UTF-16 surrogate pairs before truncation and replaces unmatched surrogates, avoiding UTF-8 encoding failures. (#44565) **Knowledge and Retrieval** - Preserve CSV cell content, Notion mentions/equations, and newlines in recursive splitting. URL imports infer useful file extensions from content type, and unsupported pipeline file types return an explicit error. Re-import affected documents to regenerate content already indexed incorrectly. (#42159, #42171, #44179, #42364, #44012) - Message citations retain document metadata. Built-in document dates use consistent UTC epoch values while preserving fractional seconds; existing mixed-format metadata is not automatically rewritten. (#41861, #44218) - Re-enabling segments restores their vectors and refuses segments that have not completed indexing. Hybrid Search retains the reranking setting when saved from either dataset settings or app configuration. (#43865, #44017, #42563) - Dataset deletion uses bounded cleanup steps with retry-safe progress. Qdrant balances results across keywords, TiDB-on-Qdrant filtering is corrected, Vastbase supports its graph index/BM25 paths, and OceanBase memory-limit discovery no longer depends on row order. (#38519, #44352, #44339, #42922, #42846) **APIs, MCP, and SDKs** - List endpoints calculate `has_more` from the page size actually served, and message pagination preserves records with tied timestamps. MySQL-specific datasource credential and installed-app ordering issues are corrected. (#41876, #42323, #42531, #44023, #44039, #44029) - MCP discovery follows all tool pages with bounded requests, mixed-type parameters preserve list values, failed SSE connections close before HTTP fallback, and unsupported methods return protocol errors. MCP protocol support includes `2025-11-25`. (#43842, #44182, #42761, #44197, #44066) - The Node.js SDK handles workflow text chunks and message replacement, propagates streamed API errors, preserves SSE whitespace, and replaces headers case-insensitively. Write requests avoid automatic replay, and reused upload forms retain the explicitly supplied user. (#44177, #44199, #44083, #44090, #43079, #44120) - difyctl preserves existing files if Windows replacement fails, surfaces SSE read failures, serializes token/config updates, and accepts BOM-prefixed JSON inputs. The PHP client uses the correct conversation rename endpoint and preserves custom API base-path prefixes with or without a trailing slash. (#43974, #43943, #44329, #44375, #44386, #43075, #44569) **Web App and Workspace** - Numeric zero and JSON object inputs keep their intended values. Browser-autofilled login credentials submit correctly, SSO failures are surfaced, and logout clears session state. (#43243, #42431, #44474, #43076, #43055) - Log annotations apply to the displayed regenerated answer. Feedback drafts remain available when submission fails, and attachment previews keep their resources for the lifetime of the dialog. (#43238, #43520, #43521) - Existing knowledge-base Add file pages retain their Knowledge sidebar in both standard and pipeline flows. (#44552) - Knowledge metadata panels remain scrollable without covering their controls, dataset tag actions do not open the card, and Marketplace details open correctly for self-hosted editions. (#43621, #42269, #42576) - Email normalization expands to Microsoft, Apple, and Proton addresses while retaining original stored email addresses; case-fallback account lookup works in both directions. (#42112, #42541) </details> <details> <summary><strong>Environment variables · required changes, optional settings, and removals</strong></summary> **Required or Changed Behavior** | Setting | Change in 1.18.0 | | --- | --- | | `DIFY_AGENT_LOCAL_SANDBOX_AUTH_TOKEN` | Required and nonblank for an enabled Local runtime. For Compose, set it in `docker/.env`, the invoking shell, or `--env-file` so Agent Backend and shellctl receive the same secret. Setting it only in a service env file is insufficient. | | `SHELLCTL_ENABLE_PATH_ISOLATION` | When enabled, Landlock errors stop execution instead of allowing the script to continue. | | `PASSWORD_PEPPER` | New, empty by default. Leave it empty on an existing unpeppered installation to preserve logins. For deployments that use it, keep the same secret across API/worker instances and retain it with backups. In Compose, keep it in `docker/envs/core-services/api.env` so unrelated services do not receive it. | | `GRAPH_ENGINE_MAX_WORKERS` | Now the fixed worker count per engine instance; default `10`. The old minimum-worker and autoscaling thresholds are removed. | | `RESPECT_XFORWARD_HEADERS_ENABLED` | Standalone API default remains `false`; bundled Compose explicitly enables it for API/WebSocket services behind Nginx. Settings supplied only through `shared.env` are overridden. Move an intentional override to `docker/.env`, the invoking shell, or a Compose override. | | `OAUTH_TTL_DAYS` | Now read through application settings at startup, including `api/.env`. Default remains `14`, with the existing 1–365 day bounds. | **New Optional Settings** | Area | Settings and defaults | | --- | --- | | Application Agent tracing | API: `OPS_AGENT_TRACE_ENABLED=false`. Agent Backend: `DIFY_AGENT_APPLICATION_TRACING_ENABLED=false`. Application policy and provider configuration are also required. `ENABLE_APPLICATION_TRACE_RECONCILE_TASK=true` controls scheduled reconciliation. | | Deployment-wide trajectories | `DIFY_AGENT_TRAJECTORY_ENABLED=false`, `DIFY_AGENT_TRAJECTORY_OTLP_TRACES_ENDPOINT`, `DIFY_AGENT_TRAJECTORY_OTLP_HEADERS`, and `DIFY_AGENT_TRAJECTORY_SERVICE_NAME`; content capture defaults to off and trace context defaults to `isolated`. | | E2B usage | API: `AGENT_SANDBOX_METERING_ENABLED=false`, `AGENT_SANDBOX_METERING_PROJECT_ID`, `AGENT_SANDBOX_METERING_START_AT`, `AGENT_SANDBOX_METERING_INTERVAL_SECONDS=60`. Backend: `DIFY_AGENT_SANDBOX_METERING_ENABLED=false`, `DIFY_AGENT_E2B_PROJECT_ID`, plus overlap/full-scan/page limits. | | OpenShell | Select `DIFY_AGENT_RUNTIME_BACKEND=openshell`; configure the `DIFY_AGENT_OPENSHELL_*` gateway, credentials, image, driver/shared-volume, shell token, and optional egress settings in the Agent service env file. | | Package bounds | `SKILL_PACKAGE_MAX_UNCOMPRESSED_BYTES=209715200`, `SKILL_PACKAGE_MAX_ENTRIES=5000`, `SKILL_PACKAGE_MAX_SKILL_MD_BYTES=1048576`; `AGENT_PACKAGE_MAX_BYTES=536870912`, `AGENT_PACKAGE_MAX_MANIFEST_BYTES=5242880`, `AGENT_PACKAGE_MAX_ENTRIES=5000`. Ordinary app packages retain the 10 MiB DSL limit. | | KnowledgeFS | `KNOWLEDGE_FS_ENABLED=false` by default; configure `KNOWLEDGE_FS_BASE_URL`, Capability v2 signing/verification, and the lifecycle/cutover rollout gates through the dedicated API and KnowledgeFS service env files. `KNOWLEDGE_FS_TIMEOUT_SECONDS=10`. Do not enable traffic until the separate service is ready. | | Access-token UI | `NEXT_PUBLIC_ENABLE_ACCESS_TOKEN=false` controls the owner-only Settings entry. | | Archive storage | `ARCHIVE_STORAGE_ADDRESS_STYLE=path` supports `path`, `virtual`, and `auto` addressing for S3-compatible archive storage. | | Cloud network policies | `NETWORK_ACCESS_API_URL`, `NETWORK_ACCESS_TRUSTED_PROXY_CIDRS`, `WEBAPP_ACCESS_PREFLIGHT_URL`, and `WEBAPP_ACCESS_PREFLIGHT_PROXY_SECRET`; require the corresponding trusted ingress and Cloud Gateway integration. The preflight secret is server-only. | **Removed Settings and Features** - `GRAPH_ENGINE_MIN_WORKERS`, `GRAPH_ENGINE_SCALE_UP_THRESHOLD`, and `GRAPH_ENGINE_SCALE_DOWN_IDLE_TIME` are no longer used. - The older KnowledgeFS implementation removed in #44163 is superseded by #44165. Do not reuse its `KNOWLEDGE_FS_JWT_SECRET` or SSE timeout configuration; the new integration uses Capability v2 signing and public verification material. `KNOWLEDGE_FS_ENABLED`, `KNOWLEDGE_FS_BASE_URL`, and `KNOWLEDGE_FS_TIMEOUT_SECONDS` remain supported by the new configuration. - The Console feedback export endpoint, `GET /console/api/apps/{app_id}/feedbacks/export`, is removed. Update integrations that called it directly. (#43751) - `UV_CACHE_DIR` no longer has a baked-in shared default. Keep any deliberate plugin-daemon cache override explicit. (#42481) Optional/provider-specific settings are documented in the matching files under [docker/envs](https://github.com/langgenius/dify/tree/laipz8200/release-1.18.0/docker/envs). Preserve existing service env files when upgrading. </details> <details> <summary><strong>Database migrations</strong></summary> Upgrading from 1.17.1 applies 22 schema/data migration revisions and two migration-head merges, ending at `b9d3f7a5c102`: | Revision | Purpose | | --- | --- | | `d8e4a6b1c902` | Backfill normalized email values for the additional providers without merging accounts or changing their original addresses. | | `e7b2a9c4d601` | Add Agent sandbox usage events and execution accounting. | | `a8c9e2f1b704` | Add resource access tokens and resource bindings. | | `f1d3c5b7a902` | Add workflow archive deletion status. | | `c6f4a90d8b31` | Add nullable workflow task IDs, stop intent, and the task-ID index. | | `a8c3e7f4b912` | Add immediate caller workflow/node identifiers to nested node execution records. | | `a17c2980f3e6` | Add durable application trace runs, invocations, and delivery batches. | | `f7e2c9a6d481`, `d6b9e2f1a407` | Merge migration branches; no additional schema changes. | | `a4e7c2f91b30` | Add independent KnowledgeFS control-plane tables. | | `b7f2a9d41c60` | Add KnowledgeFS workspace cutover ledger and migration evidence. | | `c8e31b7d52a4` | Add guarded cleanup, cutover evidence, and capability issuance reservations. | | `d4f6e8a1c305` | Add durable KnowledgeFS remote freeze evidence. | | `e5a7c9b2d416` | Add global KnowledgeFS cleanup completion evidence. | | `7c1e9a4b2d60` | Add KnowledgeFS workspace staged uploads. | | `9d4e6f8a1b2c` | Add KnowledgeFS space tag bindings. | | `4f8b2c7d9e10` | Add KnowledgeFS icon background. | | `f3a8c1d7e920` | Add KnowledgeFS legacy Dataset upgrade jobs. | | `e6b4a2c9d731` | Limit active KnowledgeFS legacy Dataset upgrades. | | `9a4e7d1c2b60` | Add resource_type to dataset_api_token_bindings. | | `b6e2c4d8f1a0` | Allow namespace capability audits before a KnowledgeFS control space exists. | | `3edd6cd27f54` | Limit active KnowledgeFS legacy Dataset upgrades on MySQL. | | `a8c2e6f4b901` | Track KnowledgeFS upgrade document availability independently of metadata. | | `b9d3f7a5c102` | Persist delivery and execution leases for upgrade document reconciliation. | The PostgreSQL task-ID index is created concurrently, but still scans `workflow_runs` and consumes I/O; adding the columns requires a brief schema lock. Existing task IDs need no global backfill. Apply the complete migration chain before starting the new workers. KnowledgeFS has a separate engine database and migration process. A downgrade that would leave KnowledgeFS-only API keys unrestricted is blocked until those keys are revoked through the API; keep backups for rollback. </details> **Full Changelog**: https://github.com/langgenius/dify/compare/1.17.1...1.18.0

  4. 1.17.1 GitHub ↗
    Original release notes

    > [!WARNING] > **Self-hosted deployments using the bundled Weaviate must complete a manual, staged upgrade before starting 1.17.1.** The bundled Weaviate server moves from `1.27.0` to `1.39.2` — 12 minor versions — and skipping minors **is unsupported**. Pulling and restarting can silently and permanently break vector search. See Upgrade Guide below. Fresh deployments, external Weaviate, and other vector stores are unaffected. ### New Features **Dataset-Scoped Knowledge Base API Keys** - Knowledge base service-API keys were scoped to the whole workspace: one key could read and write every knowledge base in the tenant, so giving an integration access to a single knowledge base meant giving it access to all of them. Keys can now be bound to specific knowledge bases from the knowledge base's API access panel, with a workspace / this-knowledge-base scope selector at creation time. A bound key returns `403` for any other dataset — both documents and retrieval — and for endpoints that carry no dataset ID, such as list-all. Existing keys are unbound and keep their workspace-wide behavior, so nothing changes when you upgrade. (#37569) **Keyboard Movement for Workflow Nodes and Comments** - The workflow canvas required a mouse to reposition anything. Nodes, multi-node selections, comment markers, and draft comments can now be moved with the arrow keys — hold Shift for larger steps — including Note, Iteration, and Loop nodes. Continuous movement is committed on key release or blur, so it produces one undo entry rather than one per keypress, and read-only mode, container boundaries, and collaboration updates are all still respected. (#41967) **Marketplace Creator Profiles and Homepage Redesign** - Plugin authors now have public profile pages at `/marketplace/creator/<handle>`, listing their creations with a publisher sidebar, reachable from a new Creator Center entry in the sidebar help menu. The marketplace homepage was rebuilt around a hero, a banner carousel, sticky search, catalog tabs, and tag/language filters, with a stacked-and-swipeable mobile layout. Bundles are no longer mixed into plugin categories. (#41538) **Configurable Markdown Form Field Name Length** - The Markdown form field-name limit was hard-coded at 128 characters, with no way to accommodate longer generated field names. It is now configurable through `MARKDOWN_FORM_FIELD_NAME_MAX_LENGTH` (Docker) or `NEXT_PUBLIC_MARKDOWN_FORM_FIELD_NAME_MAX_LENGTH` (direct Web deployments), defaulting to the previous 128. Character validation and prototype-pollution protections are unchanged. (#41697) --- ### Bug Fixes **Knowledge Base** This release fixes a cluster of extraction bugs that changed document content without reporting an error. Re-import affected documents after upgrading; indexed text is not retroactively repaired. - **CSV cells were passed through pandas type inference before indexing.** Leading-zero codes became floats (`00123` → `123.0`), empty cells became the literal string `nan`, and cells containing `NA` or `NULL` became missing values. The extractor now reads everything as text and disables missing-value inference; an explicit `csv_args` still overrides this for callers that want typed parsing. (#41922) - **Notion table rows lost or gained columns.** Each rich-text segment inside a cell was emitted as its own Markdown column, so any cell with mixed formatting — bold, links, mentions — produced extra columns and corrupted the table, while an empty cell was skipped entirely and shifted the rest of the row left. Cells are now emitted one-per-column with their segments concatenated. (#41993) - **Notion database properties were truncated at the first formatting change.** `rich_text` and `title` properties read only their first segment, so a title of `Hello world` with `world` in bold was indexed as just `Hello `. All segments are now joined. (#42050) - **`.xls` cells containing double quotes corrupted the row.** The extractor emits `"column":"value"` pairs; the `.xlsx` path escaped embedded quotes but the legacy `.xls` path interpolated them raw, so `he said "hi"` became `"note":"he said "hi""`. Both engines now behave the same for the same content. (#42049) - **Any PDF loaded from a URL crashed with a bare `AssertionError`.** After tenant context was added to the PDF extractor, the code path used by `load_from_url` — including the built-in web scraper whenever a target returns `Content-Type: application/pdf` — asserted on an upload record that URL loads never have. Tenant context is now optional, image extraction is skipped when it is absent, and text extraction works again. (#41950) - **The built-in web scraper returned Python data structures instead of page text.** `readabilipy` hands back `plain_text` as a list of dicts, which was interpolated straight into the output template, so every scraped page came back as `[{'text': '<p>…</p>'}, …]` — dict syntax, quotes, and HTML tags included. The items are now flattened into readable text. (#41954) - **Partial segment updates wiped attachments.** A segment update that omitted `attachment_ids` was treated as "replace with nothing", deleting the segment's attachment bindings and multimodal vectors. Attachments are now left alone unless `attachment_ids` is explicitly provided; passing `[]` still clears them. (#41777) - **Documents with invalid Markdown image links could stall the indexing queue.** Relative, protocol-relative, `data:`, `ftp:`, and malformed image targets were all handed to the remote image fetcher and entered its SSRF retry loop, so a single document with many bad references could hold an indexing worker long enough to back up everything behind it. Non-fetchable targets are now validated and skipped. (#41343) - **Deleting content left orphaned files in object storage.** Segment deletion, multimodal re-indexing, and batch document deletion each removed the database rows but left the physical attachment objects behind. All three paths now delete the underlying objects after the database commit, with an orphan check so attachments shared by other segments survive. (#41400, #41999, #41256) - **Text file previews were misreported as binary.** When the preview byte limit cut through a multi-byte UTF-8 character, strict decoding failed and the whole file was classified as binary — reproducible on a default preview with a single non-ASCII character at the 256 KiB boundary. Previews now keep the longest complete UTF-8 prefix; files with genuinely invalid encoding are still reported as binary. (#41761) **Model Providers** - **Upgrades from pre-1.15 no longer leave models unusable, and no longer need a manual command.** Installations older than 1.15 still carry legacy model type values (`text-generation`, `embeddings`, `reranking`) in their provider tables, which makes model-related API requests fail and prevents affected models from loading. Both 1.16.1 and 1.17.0 shipped this as a separate `flask data-migrate legacy-model-types` step that had to be run by hand. It now runs as part of `flask db upgrade`: legacy values are canonicalized to `llm` / `text-embedding` / `rerank`, legacy-versus-canonical row collisions are resolved deterministically while preserving credential references, and the provider cache namespace is rotated so stale cached credentials cannot shadow the migrated rows. (#41326, fixes #41294) - **The built-in file upload data source asked for authorization it does not need.** When creating a RAG Pipeline knowledge base, local file upload showed "Please authorize first" and the creation checklist flagged it, because providers that declare no credentials schema never have a stored-credential row and were therefore always reported as unauthorized. Credential-free providers are now marked authorized directly. (#39772) - Provider-scoped credential validation rules are now applied, and missing tool credentials are surfaced instead of failing opaquely. (#41659, #41726) **Workflow & Triggers** - **Human Input forms could finish a workflow while leaving it looking stuck.** Since the HITL callback migration in 1.17.0, submitting a form left its approval buttons on screen and the published Web App input blocked, because the engine emitted a generic node-success event without the form-filled or timeout events the response pipeline expects. Those events are now reconstructed, preserving submitted file values, original timeout deadlines, and execution metadata. (#42082) - **Human Input could not be placed inside Iteration or Loop nodes**, even though 1.17.0 shipped the runtime support for it — two stale editor guards still blocked selecting, connecting, and pasting the node inside a container. (#40061) - **The Human Input timeout edge could fire the wrong branch.** The editor writes the timeout edge as `__timeout`, but the backend compared against `__timeout__`, so at runtime a timeout could take a user-action branch instead of the timeout branch the author drew. (#40746) - **A second Human Input pause in the same run could become unresumable.** If object storage rejected deleting the previous pause snapshot, the exception aborted the transaction — the run was already persisted as `PAUSED`, but its only pause row was the previous, already-resumed one, so the next submission failed with `Cannot resume an already resumed pause`. Snapshot cleanup is now best-effort, with the orphaned object key logged for later cleanup, so the run's durable state stays correct. (#41581) - **Workflow-as-Tool only exposed the first End node's outputs.** Output declarations are now collected from every End node, with the source node listed for each, one warning per output affected by a duplicate or reserved name, and a fallback to the published schema when live draft metadata is unavailable. (#41517) - **Loop Boolean break conditions never matched.** New conditions stored `"true"` / `"false"` as strings rather than booleans. Values are now stored and kept as real booleans, and legacy string values are normalized when rendered. (#41186) - **Trigger-entry workflows could still be invoked manually** from the Web App, Service API, OpenAPI, and MCP `tools/call` — creating workflow runs that could never work. These are now rejected before a run or log is created, with a shared business code across HTTP and MCP JSON-RPC. Real trigger execution, read-only endpoints, and running a historical Start version by ID are unaffected. (#41519) - **A single bad LLM node took down the whole editor.** A workflow whose LLM node had `model_selector` persisted as `null` rather than omitted crashed Workflow Studio's per-node checklist on load and tripped the page-level error boundary, making the entire canvas unusable rather than flagging one node. (#41707) - **Workflows containing legacy Agent nodes could not be published** once Agent V2 was enabled, because publish validation could not resolve the legacy validator. They publish again, while legacy Agent nodes stay hidden from the node picker. (#41368) - **Creating a tool from a workflow used the previously published version.** The current workflow is now published first — matching what the update path already did — and provider creation stops if that publish fails, instead of silently binding to a stale version. (#41528) - **Undoing the deletion of a webhook trigger node changed its URL.** (#42069) - **Document create and update could report "One or more files not found." on MySQL** even though the upload had committed. Under MySQL's default `REPEATABLE READ`, the request session's read snapshot was pinned before the upload happened in a separate session, so the just-written rows were invisible. All four affected endpoints — create-by-text, create-by-file, update-by-text, update-by-file — now refresh the snapshot before the lookup. PostgreSQL was never affected. (#41840) - **Large workflow graphs broke the collaboration socket.** `sync_request` payloads exceeded Engine.IO's 1 MiB default, so the frame was rejected and the editor reconnect-looped. The ceiling is now configurable through `WEBSOCKET_MAX_HTTP_BUFFER_SIZE`, default 10 MiB. (#41347) - The Access Point page no longer shows "no published version" guidance when the published-workflow request simply failed, and no longer retries requests that returned `403`. (#41572) **Agent & Chat** - **Chatflow Agent V2 forgot everything between turns.** Sessions are now keyed by `conversation_id`, so memory persists across a conversation. A follow-up fixed the related case where publishing a new Agent roster version mid-conversation paired a new configuration with the previous participant and failed generation validation — existing conversations now stay pinned to the version they started on, and only new conversations pick up the current one. (#41871, #42105) - **Replies from reasoning models rendered entirely as "thinking".** Models such as GLM-5.3 wrap chain-of-thought in `<think>` tags, and a tool call frequently interrupts generation before `</think>` is emitted, leaving the answer nested inside a still-open tag. The dangling tag is now closed when a tool log interrupts the stream, when a new `<think>` starts after real content, and at stream end — plus the same repair in the Markdown preprocessor so already-stored output renders correctly. (#41764) - **Images uploaded to an Agent App were turned into shell download instructions** rather than being shown to the model. Vision-capable models now receive them as native multimodal content, detected from the selected credential-bound model schema. The download fallback is preserved for non-image files and for models without vision support, and image URLs and Base64 payloads are redacted from agent backend logs. (#41685) - **Suggested questions could take minutes, or hang.** With no dedicated suggested-question model configured, the endpoint fell back to the workspace default — inheriting expensive settings such as `reasoning_effort=high`, a 2,560-token output allowance, and the global 600-second plugin timeout, so the browser gave up after 100 seconds while the backend kept working. Output is now capped at 256 tokens, thinking is disabled or set to the lowest supported effort, and a request-scoped 30-second timeout applies. One reported case went from 113–344 seconds to under 3 seconds; an unavailable default model now returns an empty list immediately instead of failing. (#41705) - **E2B-backed agent runs failed with `502 binding_create_failed`.** A stale HTTP/2 connection in the pinned E2B SDK surfaced as an inline chat failure. The SDK is upgraded past the affected transport path, connect/pause/kill/delete-snapshot are retried once on bounded transport failures, and provider capacity exhaustion now returns a `429` instead of being reported as a create failure. Binding and snapshot creation stay one-shot, so ambiguous results are never silently adopted. (#41623) - **Agent Preview reused a session that no longer matched the configuration.** Because Preview edits the draft in place, a conversation could keep a session snapshot whose composition layers had since been added, removed, or reordered, and the agent backend rejected it with an internal mismatch error. This now returns `409 agent_session_configuration_changed` with an instruction to start a new conversation; changing configuration *values* without changing the layer topology still reuses the session. (#41447) **Service API & OpenAPI** - **Pagination silently truncated results.** `has_more` was computed against the client-requested `limit` while the query capped page size at 100, so requesting `limit=200` against 150 rows returned 100 rows and `has_more=false` — the remaining 50 were unreachable. Segment, dataset, and document list endpoints now compute `has_more` from the effective page size and report that size in the response. (#41776, #41784) - **Deleting an MCP provider returned `422`.** Request parsing had started reading only query arguments on `DELETE`, while the web client sends `provider_id` in the JSON body; custom-model and credential deletion shared the same contract. The JSON body is now used as a fallback when the query string is empty, so query-parameter deletes keep working too. (#41288) - **A standard OpenAPI schema was rejected as `invalid schema: 'env'`** whenever the `X-Request-Env` header was present, because server matching indexed a non-standard `env` key unconditionally. Schemas without the extension now take the intended fallback to the first server URL. (#42025) - The generated Service API contract was realigned with runtime behavior: non-nullable fields no longer carry null defaults, Console-only permission metadata is excluded, error responses the endpoints never return are removed, historical 404/503 declarations are restored, and task-stop request schemas are split so chat/completion and workflow behavior are documented accurately. This changes the exported contract and generated clients, not request handling. (#41248, #41274, #41943) - Service API rate limit descriptions were corrected. (#41975) **Concurrency & Deadlocks** - **Concurrent knowledge retrieval could deadlock.** The hit-count update incremented every matched segment in one `UPDATE … WHERE id IN (…)`, and PostgreSQL gives no guarantee that row locks are taken in the order the IDs were supplied — overlapping concurrent retrievals could acquire locks in different orders and fail with `deadlock_detected`. Locks are now taken in a stable `ORDER BY id` before incrementing, with up to three retries scoped strictly to deadlock errors. (#41979) - **Automatic summary generation could hang a worker indefinitely.** Tencent VectorDB rejects booleans in JSON metadata, so the `is_summary: true` marker failed at upsert *after* summary generation and embedding had already succeeded. The failure path then opened a second database session to record the error on the same row the caller's session still held locked, so each waited on the other and the task occupied a worker slot. The marker is now an integer for Tencent only, and errors are recorded in the caller-owned session. (#41916) **Skills, Plugins & Triggers** - **Skill packages built on Windows failed with a misleading error.** A `SKILL.md` using CRLF line endings did not match the frontmatter parser, so the name field came back empty and the import reported `config asset name must not be blank`. CRLF is now accepted and normalized on import, and `__MACOSX` metadata folders in skill archives are tolerated. (#41657, #41757) - **Triggers worked in Test Run but never fired in production.** Plugin trigger relationships were synchronized from the draft workflow rather than the version being published, so published events found no subscriber and no workflow started. (#41756) - **Lease-based triggers stopped working after about a week.** Subscription creation persisted the builder's placeholder `expires_at` of `-1` instead of the real lease returned by the provider, and the refresh scanner skips `-1` — so providers like Gmail `users.watch` silently expired. The provider-supplied expiry is now stored. (#41773) - Swagger tool authorization survives a page refresh, and SSR now appends `/api/v1` when reading `MARKETPLACE_API_URL`. (#41656, #41824) **Workspace, Accounts & Imports** - **Gmail addresses that differ only by dots or a `+alias` registered as separate accounts.** Registration now stores and checks a normalized email — dots stripped, `+alias` removed, `googlemail.com` folded to `gmail.com` — across self-registration, OAuth registration, email-code account creation, CLI registration, and new workspace-invite accounts, with a dedicated `normalized_email_already_in_use` error. Existing login and account-update lookups are deliberately unchanged, and existing equivalent accounts are preserved. (#41249) - **Transferring workspace ownership left the workspace inconsistent.** The outgoing owner was demoted to admin rather than a restricted member, and the stored owner column was not always updated — so checks that read it, including the guard on the transfer endpoint itself, kept resolving the previous owner. Both now move correctly, and a workspace already left inconsistent by an earlier transfer is repaired on the next one, with no migration required. (#41267) - **A quota of zero was displayed as unlimited.** Trigger Events and API rate limit now show zero as exhausted rather than unlimited, zero-count quotas appear in the exhausted-quota dialog, and `-1` continues to mean unlimited. Annotation batch imports are allowed when the annotation limit is `0` (unlimited), while positive limits still reject imports that would exceed them. (#41927) - **DSL imports showed the wrong warning.** Backend-provided warning details — notably tool-authorization warnings raised while creating a recommended app — were discarded and replaced with a generic DSL-version warning. Real warning details are now shown, with the generic message kept as a fallback. (#41502) - **Pending DSL imports could be confirmed by the wrong tenant or account.** Ownership is now mandatory and verified before any cached YAML is processed or database state is mutated, and validation errors no longer echo cached input values. (#40107) - **A broken app icon reference broke the page.** Missing, malformed, and cross-tenant image icons now fall back to the default icon — silently during DSL import, and at Web App runtime with the invalid reference logged. (#41977) - Repeated identical `GET` failures no longer stack up toasts: the first error shows immediately and identical errors for the same URL are suppressed for ten seconds, cleared on success. Every non-`GET` error, including consecutive failed saves, is still shown. (#42035) **Correctness of Text and Value Parsing** - **JSON extraction broke on backticks inside JSON.** `parse_json_markdown` picked the first code-fence-like marker anywhere in the text, so a backtick inside a string value — `` {"code": "use `print` function"} `` — or in surrounding prose made extraction start mid-string and fail. Extraction is now anchored on the JSON brackets themselves. This parser backs LLM output parsing for the rule-config generator and dataset retrieval metadata, where backticked code inside JSON is common. (#41959) - **Variable names with a trailing newline passed validation.** Python's `$` anchor also matches before a trailing newline, so `"name\n"` was accepted into `user_input_form` despite the newline being outside the allowed character set. (#42029) - Epoch-0 timestamps are accepted by the localtime conversion tool, and the weekday tool handles string and missing parameters. (#42027, #41952) **Accessibility** The console and web apps received a broad pass targeting the parts that made them unusable without a mouse or a screen reader: form controls got correct labels and programmatically associated validation feedback (#42096); sortable lists and panel/node resizing became keyboard-operable (#41974, #41963); focus is restored to its origin after overlays and comment threads close instead of being dropped to the document (#42068, #41978); page landmarks and heading structure were corrected so screen-reader users can navigate by region (#41938); button-styled navigation kept its link semantics so it still works with middle-click and modifier-click (#41312); decorative content and redundant list semantics were hidden from assistive technology (#42060); and clickable `div`s were replaced with native buttons in dataset lists (#41319). The apps list, home page, and login/signup flows were each covered as a whole (#41393, #41310, #41301). **Web App & UI** - The settings dialog is centered at all viewport sizes (#42120), invalid-input focus colors are preserved (#42108), Home and Studio route titles are stable (#41654), and the plugin detail drawer no longer traps interaction as a modal (#41473) - Object editor values are stringified before Monaco creates a model, instead of failing on non-string input (#41719) - Go to Anything resets its search when dismissed and its autocomplete behavior is consistent (#41976, #41258) - Lao is available as a display language, and `pt-BR` maps to `pt_BR` for tool metadata (#41743, #41745) - Registration tracking is consent-safe and retryable, and Web App analytics are separated from console page tracking (#41365, #41251) - The education plan is no longer advertised outside Dify Cloud (#41898), and Open in Explore is hidden for SSO-restricted apps (#41518) --- ### Security Enhancements - **Agent skills bypassed the SSRF private-network policy.** Agent traffic goes through a separate proxy that ignored `SSRF_PROXY_ALLOW_PRIVATE_IPS` and `SSRF_PROXY_ALLOW_PRIVATE_DOMAINS`, so the allowlist you configured for workflows did not constrain the agent runtime. Both proxies now honor the same allowlist. (#41870) - **A plugin could exhaust worker memory with one declared number.** The blob chunk merger pre-allocated a buffer of the plugin-declared total length before checking it against the file size limit, so a plugin claiming an absurd size crashed the worker with `MemoryError` — the 30 MB limit was never consulted. The declared size is now validated first and rejected with the documented size-limit error. (#42021) - `h2` bumped from `4.3.0` to `4.4.1` in both `api` and `dify-agent` (#40120, #40119) - `transformers`, `unstructured`, `pypdf`, `nltk`, `httpx2`, `gitpython`, and `gunicorn` refreshed (#42053, #42054, #42011, #42012, #42017, #41607, #41602, #41505) --- ### Performance - **Agent runs no longer fill up Redis.** Per-run event streams were appended without any cap: production held 3.89 GB across 3,457 streams — 81% of the affected Redis node — with individual streams reaching 30 MB and 78,000 entries, because every stream event including token-scale text deltas was written unbounded and every write refreshed a three-day TTL. Streams are now capped, consecutive text deltas from the same part are coalesced within a 100 ms / 4,096-character window, the cancellation-intent stream holds one entry, and default retention drops from 3 days to 2 hours. The public Agent event schema and SSE cursor contract are unchanged. (#41566) - **The Web Apps sidebar was repainting every loaded app on every navigation.** Moving the list to cursor pagination in 1.17.0 dropped its virtualizer, so every page fetched stayed mounted in the main nav and survived route changes. On a workspace with 427 installed apps, clicking through the top-level nav spent 1,068 ms of 3.06 s compositing across 12,112 paint records — roughly 7.5 fps — with the cost in paint rather than script. The list is virtualized again, now on a single always-virtualized render path. (#41397) - **The Console loaded 0.63 MB of support-widget JavaScript on every startup.** The Zendesk SDK is now fetched on the first Contact Us action instead: Home and Apps load with zero Zendesk requests, and the 36 requests / 628 KB are deferred to users who actually open support. (#41653) - **Agent build-draft checks waited on an unrelated request.** Two surfaces returned their loading UI before the component owning the build-draft query mounted, so the browser could not start that request — which needs only the agent ID — until the composer request had finished. Both waterfalls are flattened. (#41816) - **Account avatar uploads sent full-resolution images.** Cropped static avatars are now downsampled to a 256 px maximum edge before upload, preserving aspect ratio and never upscaling; animated avatars keep the original-file path. (#41655) --- ### Improvements - **Bundled Weaviate server upgraded from `1.27.0` to `1.39.2`**, moving the pull from Docker Hub to `cr.weaviate.io`, the registry Weaviate publishes to directly. `1.39` ships no breaking changes and is where Weaviate's bug and security backports land — but existing data volumes require a staged manual upgrade, covered in the [Upgrade Guide](#bundled-weaviate-server-upgrade-127--139). Dify also now sends an `X-Weaviate-Client-Integration: dify/<version>` header so Weaviate can attribute traffic to Dify in its server-side telemetry; registration is best-effort and never blocks client initialization. (#38214) - **Explicit database sessions across the ORM layer.** The legacy `db.session` property wrappers were removed from `App`, `Dataset`, `Document`, `DocumentSegment`, `Message`, `Conversation`, `Workflow`, `InstalledApp`, `ApiToolProvider`, and related models, and sessions are now passed in explicitly at every call site. There is no API surface change, but this removes a long-standing class of `DetachedInstanceError` and cross-request session bleed that produced intermittent, hard-to-reproduce failures under load. - **Runtime and toolchain updates** — React 19.3 with browser-only rendering (#42093), Next.js 16.3.3 (#41262), Node.js 24 LTS (#41573), pnpm 12.3.4 (#42005), Jotai v3 (#42036), base-ui 1.8.0 (#41820). Node 24 and pnpm 12.3.4 are now required to build the web frontend from source. - A compact command map makes agents discoverable from Go to Anything (#41226), and app and agent card interactions were reworked (#41449) - Embedded recommend-banner templates and plugins open in the detail dialog rather than navigating away, and banner logos and template authors are preserved (#42063, #41828, #41980) - The secret environment variable description was updated (#41309), and tracing configuration boundaries are preserved across app operations (#41403) --- ## Environment Variable Changes ### New Variables | Variable | Default | Description | |----------|---------|-------------| | `WEBSOCKET_MAX_HTTP_BUFFER_SIZE` | `10485760` | Socket.IO frame ceiling for the collaboration WebSocket. Raise it if very large workflow graphs still fail to sync. | | `WEAVIATE_GRPC_ENDPOINT` | `grpc://localhost:50051` | Newly documented in `api/.env.example` for source deployments. gRPC has been **required since Weaviate 1.27**; the example files simply never listed it. The Docker value (`grpc://weaviate:50051`) is unchanged. | | `EXPOSE_WEAVIATE_GRPC_PORT` | `50051` | Publishes Weaviate's gRPC port in the middleware-only stack. | | `EXPOSE_LOCAL_SANDBOX_PORT` | `5004` | Publishes the local sandbox in the middleware-only stack, so a locally-run agent backend can reach it. | | `DIFY_AGENT_LOCAL_SANDBOX_AUTH_TOKEN` | *(empty)* | `shellctl` auth token for the middleware-only local sandbox. | | `MARKDOWN_FORM_FIELD_NAME_MAX_LENGTH` | `128` | Markdown form field-name length limit, previously hard-coded. | | `NEXT_PUBLIC_ENABLE_AGENT_V2_IN_CHATFLOW` | `false` | Feature gate for the Agent V2 node in Chatflow apps. Off by default. | | `DIFY_AGENT_RUN_EVENT_STREAM_MAX_LENGTH` | `5000` | Maximum entries retained per Agent run event stream. | | `DIFY_AGENT_STREAM_TEXT_DELTA_COALESCING_ENABLED` | `true` | Merge consecutive Agent text deltas before writing them to Redis. | | `DIFY_AGENT_STREAM_TEXT_DELTA_FLUSH_INTERVAL_MS` | `100` | Coalescing flush window. | | `DIFY_AGENT_STREAM_TEXT_DELTA_MAX_CHARS` | `4096` | Coalescing size cap. | ### Modified (default values) - `DIFY_AGENT_RUN_RETENTION_SECONDS`: `259200` (3 days) → `7200` (2 hours) > [!IMPORTANT] > Agent run records and event streams now expire after **2 hours** instead of 3 days. This is part of the fix for unbounded Redis growth (#41566). If you rely on inspecting Agent run events for longer than that, set `DIFY_AGENT_RUN_RETENTION_SECONDS` explicitly in your env file before upgrading. No environment variables were removed in this release. ### Docker Compose Changes - **Weaviate image and registry**: `semitechnologies/weaviate:1.27.0` → `cr.weaviate.io/semitechnologies/weaviate:1.39.2` in `docker-compose.yaml`, `docker-compose-template.yaml`, and `docker-compose.middleware.yaml`. **This is not a drop-in change for existing data** — see the Upgrade Guide. - **`docker-compose.middleware.yaml`**: adds the `local_sandbox` service (present in the main Compose file since 1.16.1) with the `dify_agent_local_sandbox_home` and `dify_agent_local_sandbox_workspace` volumes, and publishes Weaviate's gRPC port `50051`. - Image tags updated to `1.17.1`. --- ## Database Migrations This release includes **3 new migrations**, all applied by `flask db upgrade`: 1. `2026_08_25_1200-9b7c6d5e4f3a_add_normalized_email_to_accounts.py` — Adds an indexed `accounts.normalized_email` column and backfills it, normalizing Gmail and Googlemail addresses. Deliberately **not unique**: existing installations may already hold equivalent accounts, and those records are preserved while new collisions are prevented. 2. `2026_08_27_1200-5578e028b2f2_migrate_legacy_model_types.py` — Data migration canonicalizing legacy model types across `provider_models`, `provider_model_credentials`, `tenant_default_models`, `provider_model_settings`, and `load_balancing_model_configs`, deduplicating colliding rows. This replaces the manual `flask data-migrate legacy-model-types` step from 1.16.1 and 1.17.0. 3. `2026_08_29_1200-c3f1a9b2e6d4_add_dataset_api_token_bindings.py` — Creates the `dataset_api_token_bindings` many-to-many table backing dataset-scoped API keys. Both foreign keys cascade on delete. No manual backfill command is required. > [!CAUTION] > Migration `5578e028b2f2` is **not reversible** — its `downgrade()` is intentionally a no-op, because rows written after the enum rename cannot be distinguished from rows it rewrote. **Back up your database before upgrading.** --- ## Upgrade Guide ### Bundled Weaviate Server Upgrade > [!WARNING] > > **Staged manual upgrade required for existing bundled-Weaviate deployments** > > This release moves the bundled Weaviate server from `1.27.0` to `1.39.2`. Weaviate neither tests nor supports skipping minor versions, and any release may carry an on-disk migration that expects the previous version to have run at least once. An existing data volume **cannot** cross 12 minors in one step. > > Do not pull `1.17.1` and restart. Step the volume through **every minor release in order**, landing on the latest patch of each, with a **graceful stop** at every rung. > > **Follow the runbook:** [Weaviate Server Upgrade Path](https://docs.dify.ai/en/self-host/deploy/troubleshooting/weaviate-server-migration-path) This applies only if you run the bundled Weaviate with existing data. Check with: ```bash grep -E '^VECTOR_STORE=' docker/.env ``` Fresh deployments start on `1.39.2` with an empty volume and need nothing. External Weaviate servers and other vector stores are unaffected. The runbook is the source of truth for the image ladder, per-rung verification commands, backup, and rollback. In outline, the procedure is: 1. Stop Dify's request and worker services, and keep them stopped until the final rung passes. 2. Back up the Weaviate volume. 3. Step through all 13 rungs — `1.27` → `1.28` → … → `1.38` → finally exactly `1.39.2`, the version this release pins — verifying after each one. 4. Revert your temporary image edits, then continue with the normal upgrade steps below. Two failure modes are worth knowing before you start: - **A hard kill silently and permanently destroys vector recall.** Weaviate holds its HNSW index in memory and persists it through a commit log; `docker kill`, `docker rm -f`, an OOM kill, or a stop that exceeds Docker's grace period can leave that log incomplete. Measured on `1.39.2`, after a hard kill the object count, object listing, BM25 search, and fetch-by-ID all looked healthy while `near_vector` could reach only 680 of 700 objects. Nothing is logged, and it does not heal — the only repair is re-indexing the knowledge base. Always stop with `docker compose stop -t -1 weaviate`. - **Queries fail for several seconds after every restart.** `/v1/meta` answers about 2s after start, but collections mount 4–9s later from `1.31` onward. Inside that window `/v1/objects` returns `404` and GraphQL returns `422 no graphql provider present … no schema is present`. Alarming mid-upgrade, and a false alarm — wait, or poll until a real collection query succeeds rather than trusting `/v1/meta`. Collection layout does not change, so **no re-indexing is required**. Dify still stores each dataset as `Vector_index_<dataset_id>_Node` with a self-provided named vector `default` and the server-default cosine metric. The Python `weaviate-client` needs no attention either: `1.17.0` and `1.17.1` both pin `4.22.0`, which works against every server version on the ladder. Running a Weaviate server older than `1.27.0`, or still on client v3? Start with the [Weaviate v4 migration guide](https://docs.dify.ai/en/self-host/deploy/troubleshooting/weaviate-v4-migration), then return to the upgrade path above. ### Legacy Model Types Now Migrate Automatically > [!IMPORTANT] > > The manual `flask data-migrate legacy-model-types` step documented in the 1.16.1 and 1.17.0 upgrade guides is **no longer needed**. Migration `5578e028b2f2` performs the same canonicalization as part of `flask db upgrade` (#41326). > > If you already ran the manual command, the migration is a no-op for those rows. If you never ran it — and your deployment was upgraded from a version earlier than `1.15.0` — this release repairs the affected rows for you. After upgrading, verify that your model providers list their models and that previously failing models can be loaded and invoked. > > Back up the database first. This migration is **not reversible**. ### Docker Compose (Recommended) Complete the Weaviate upgrade above first if it applies to you. ```bash cd docker docker compose down git fetch --tags git checkout 1.17.1 docker compose pull docker compose up -d ``` The database migrations run automatically on startup. > [!IMPORTANT] > Review the env changes above and re-apply your local customizations before bringing the stack up — in particular the reduced `DIFY_AGENT_RUN_RETENTION_SECONDS` default (3 days → 2 hours). ### Source Code ```bash git fetch --tags git checkout 1.17.1 cd api uv sync uv run flask db upgrade ``` Rebuild and restart the Web frontend, then restart the API server and Worker. Node.js 24 LTS and pnpm 12.3.4 are now required for the web build. ### Post-Upgrade Verification - Run a test retrieval against a knowledge base. Getting chunks back confirms the vector index survived, which an object count alone does not tell you. - Confirm your model providers still list their models (see Legacy Model Types above). - Open a large workflow in the editor and confirm it no longer reconnect-loops. - Re-import any CSV, Excel, Notion, or web-scraped documents ingested on an earlier version — the extraction fixes in this release do not repair already-indexed text. ## What's Changed * fix(api): align Service API OpenAPI contract by @hyoban in https://github.com/langgenius/dify/pull/41248 * fix(web): restore AI credits icon by @lyzno1 in https://github.com/langgenius/dify/pull/41257 * fix(agent-v2): refine access card interactions by @lyzno1 in https://github.com/langgenius/dify/pull/41254 * fix(web): align goto anything autocomplete behavior by @lyzno1 in https://github.com/langgenius/dify/pull/41258 * refactor(ci): trim redundant autofix work by @lyzno1 in https://github.com/langgenius/dify/pull/41259 * fix(web): upgrade Next.js to 16.3.3 by @lyzno1 in https://github.com/langgenius/dify/pull/41262 * feat(cli): add a compact command map for agent discovery by @samzong in https://github.com/langgenius/dify/pull/41226 * fix(api): enforce RBAC permission on agent app detail GET endpoint (#41264) by @agarwalpranav0711 in https://github.com/langgenius/dify/pull/41265 * fix: separate WebApp analytics from console page tracking by @iamjoel in https://github.com/langgenius/dify/pull/41251 * refactor(web): migrate document metadata input by @lyzno1 in https://github.com/langgenius/dify/pull/41276 * refactor(web): migrate dataset settings input by @lyzno1 in https://github.com/langgenius/dify/pull/41277 * refactor(web): migrate external knowledge input by @lyzno1 in https://github.com/langgenius/dify/pull/41278 * feat: go to anything check enable skill by @fatelei in https://github.com/langgenius/dify/pull/41281 * fix(api): restore Service API OpenAPI semantics by @hyoban in https://github.com/langgenius/dify/pull/41274 * fix(api): clean multimodal attachments in batch deletion by @hieheihei in https://github.com/langgenius/dify/pull/41256 * fix(rag-pipeline): mark credential-free datasources as authorized by @ccl125 in https://github.com/langgenius/dify/pull/39772 * refactor(api): extract console app site command boundary by @hjlarry in https://github.com/langgenius/dify/pull/41216 * refactor(api): standardize compliance downloads by @hjlarry in https://github.com/langgenius/dify/pull/41057 * fix(api): honor DELETE JSON body in model_validate by @leilei3167 in https://github.com/langgenius/dify/pull/41288 * chore(web): remove retired forum entry by @hjlarry in https://github.com/langgenius/dify/pull/41289 * fix(human-input): align backend timeout handle with frontend DSL by @Taranum01 in https://github.com/langgenius/dify/pull/40746 * fix(api): attribute Skill Builder credit usage by @linw1995 in https://github.com/langgenius/dify/pull/41290 * fix(auth): normalize Gmail registration emails by @linw1995 in https://github.com/langgenius/dify/pull/41249 * feat: optimize resource access config logic by @WTW0313 in https://github.com/langgenius/dify/pull/41164 * chore(i18n): sync translations with en-US by @github-actions[bot] in https://github.com/langgenius/dify/pull/41291 * refactor(api): thin OAuth controllers and extract application services by @41tair in https://github.com/langgenius/dify/pull/40692 * test(e2e): stabilize Agent access toggles by @lyzno1 in https://github.com/langgenius/dify/pull/41282 * fix: improve login and signup accessibility by @iamjoel in https://github.com/langgenius/dify/pull/41301 * feat: add command cli to migration rbac scope to automatic_include_workspace_members by @fatelei in https://github.com/langgenius/dify/pull/41304 * fix: update secret environment variable description by @zhangx1n in https://github.com/langgenius/dify/pull/41309 * fix(web): preserve link semantics in button-styled navigation by @lyzno1 in https://github.com/langgenius/dify/pull/41312 * fix(api): enforce RBAC permission on agent composer GET endpoint (#41324) by @agarwalpranav0711 in https://github.com/langgenius/dify/pull/41325 * fix(api): migrate legacy model types during upgrade by @laipz8200 in https://github.com/langgenius/dify/pull/41326 * fix(web): align model provider access permissions by @hjlarry in https://github.com/langgenius/dify/pull/41329 * refactor: remove unused workflow run export endpoint by @hjlarry in https://github.com/langgenius/dify/pull/41335 * refactor(web): migrate metadata inputs by @lyzno1 in https://github.com/langgenius/dify/pull/41339 * refactor(api): extract workflow run archive application service by @hjlarry in https://github.com/langgenius/dify/pull/41253 * refactor(api): extract workflow statistic query service by @hjlarry in https://github.com/langgenius/dify/pull/41271 * chore(deps): bump h2 from 4.3.0 to 4.4.1 in /api by @dependabot[bot] in https://github.com/langgenius/dify/pull/40120 * refactor(api): remove unused workflow archived logs endpoint by @hjlarry in https://github.com/langgenius/dify/pull/41345 * chore: remove permission check by @fatelei in https://github.com/langgenius/dify/pull/41349 * refactor(web): migrate workflow variable inputs by @lyzno1 in https://github.com/langgenius/dify/pull/41340 * refactor(web): migrate tracing inputs by @lyzno1 in https://github.com/langgenius/dify/pull/41341 * fix(web): route Agent V2 documentation links correctly by @lyzno1 in https://github.com/langgenius/dify/pull/41353 * fix(api): ignore broken pipe during app stop checks 🤖🤖🤖 by @QuantumGhost in https://github.com/langgenius/dify/pull/41356 * fix(web): use management provider list for MCP integrations by @hjlarry in https://github.com/langgenius/dify/pull/41360 * fix: improve home page accessibility by @iamjoel in https://github.com/langgenius/dify/pull/41310 * test: migrate Service API dataset segment sessions and ORM models to SQLite by @asukaminato0721 in https://github.com/langgenius/dify/pull/40517 * test: migrate explore installed app sessions and ORM models to SQLite by @asukaminato0721 in https://github.com/langgenius/dify/pull/40525 * test: migrate agent observability sessions and ORM models to SQLite by @asukaminato0721 in https://github.com/langgenius/dify/pull/40588 * test: migrate knowledge file access sessions and ORM models to SQLite by @asukaminato0721 in https://github.com/langgenius/dify/pull/40596 * fix: allow publishing workflows with legacy Agent nodes by @iamjoel in https://github.com/langgenius/dify/pull/41368 * test(e2e): wait for apps console readiness by @lyzno1 in https://github.com/langgenius/dify/pull/41357 * chore: add permission check back by @fatelei in https://github.com/langgenius/dify/pull/41369 * fix(web): refine agent configure section states by @lyzno1 in https://github.com/langgenius/dify/pull/41371 * chore(web): remove Agentation devtool by @lyzno1 in https://github.com/langgenius/dify/pull/41372 * fix(workflow): correct loop boolean break condition values by @HelloSrauker in https://github.com/langgenius/dify/pull/41186 * feat: track inline agent and preview mode events by @iamjoel in https://github.com/langgenius/dify/pull/41373 * fix: align documentation links with stable anchors by @lyzno1 in https://github.com/langgenius/dify/pull/41384 * feat: new user add automatic add to app / dataset whitelist by @fatelei in https://github.com/langgenius/dify/pull/41363 * revert(web): restore Agentation devtool by @lyzno1 in https://github.com/langgenius/dify/pull/41387 * fix(api): raise Socket.IO max_http_buffer_size for large workflows by @leilei3167 in https://github.com/langgenius/dify/pull/41347 * test: migrate human input sessions and ORM models to SQLite by @asukaminato0721 in https://github.com/langgenius/dify/pull/40597 * test: migrate agent service sessions and ORM models to SQLite by @asukaminato0721 in https://github.com/langgenius/dify/pull/40598 * perf(web): virtualize the Web Apps sidebar list again by @BenjaminX in https://github.com/langgenius/dify/pull/41397 * fix(api): preserve tracing configuration boundaries by @laipz8200 in https://github.com/langgenius/dify/pull/41403 * fix(ui): keep scroll area focus indicator visible by @lyzno1 in https://github.com/langgenius/dify/pull/41404 * refactor(web): simplify pricing components by @lyzno1 in https://github.com/langgenius/dify/pull/41416 * docs: correct UUIDv7 helper docstring by @huyua9 in https://github.com/langgenius/dify/pull/41419 * refactor(models): pass session into PipelineCustomizedTemplate.created_user_name by @a-yeyang in https://github.com/langgenius/dify/pull/41394 * refactor(models): pass session into ChildChunk accessors by @keith991001 in https://github.com/langgenius/dify/pull/41370 * fix: protect workspace owners in resource access by @WTW0313 in https://github.com/langgenius/dify/pull/41423 * fix(web): block resource access for Agent apps by @WTW0313 in https://github.com/langgenius/dify/pull/41424 * ci: run the dify-agent test suite by @alanhuangyoo in https://github.com/langgenius/dify/pull/41327 * feat: hide skill_entry when use has no skill.view permission by @fatelei in https://github.com/langgenius/dify/pull/41429 * fix(web): align web app sidebar spacing by @lyzno1 in https://github.com/langgenius/dify/pull/41425 * fix(web): prevent tool card footer clipping by @Jingyi-Dify in https://github.com/langgenius/dify/pull/41430 * fix(ci): correct difyctl release and e2e workflow gates by @GareArc in https://github.com/langgenius/dify/pull/41355 * fix: improve accessibility across the apps list by @iamjoel in https://github.com/langgenius/dify/pull/41393 * fix(web): give the favicon a single owner in root metadata by @BenjaminX in https://github.com/langgenius/dify/pull/41433 * fix(agent): add roster publication status contract by @lyzno1 in https://github.com/langgenius/dify/pull/41435 * fix(web): align agent roster card interactions by @lyzno1 in https://github.com/langgenius/dify/pull/41436 * fix: avoid duplicate error toast when applying agent build drafts by @iamjoel in https://github.com/langgenius/dify/pull/41442 * feat(web): enhance app and agent card interactions by @lyzno1 in https://github.com/langgenius/dify/pull/41449 * refactor(models): pass session into WorkflowAppLog accessors by @keith991001 in https://github.com/langgenius/dify/pull/41440 * test: centralize account and feature config overrides by @asukaminato0721 in https://github.com/langgenius/dify/pull/40864 * refactor(service_api): dep-inject payloads with @model_validate by @ShousenZHANG in https://github.com/langgenius/dify/pull/41374 * test: centralize controller and storage config overrides by @asukaminato0721 in https://github.com/langgenius/dify/pull/40867 * refactor(controllers/console): dep-inject workflow payloads with @model_validate by @Terminator666666 in https://github.com/langgenius/dify/pull/41244 * chore: remove unnecessary type conversions by @lin597410-design in https://github.com/langgenius/dify/pull/41454 * test: centralize core and service config overrides by @asukaminato0721 in https://github.com/langgenius/dify/pull/40868 * test: migrate application DSL sessions and ORM models to SQLite by @asukaminato0721 in https://github.com/langgenius/dify/pull/40554 * test: enforce centralized config overrides by @asukaminato0721 in https://github.com/langgenius/dify/pull/40869 * refactor(models): pass session into Workflow accessors by @jjj-n in https://github.com/langgenius/dify/pull/41464 * refactor: pass db.session explicitly in instruction_modify_workflow (#37403) by @weike-zhang in https://github.com/langgenius/dify/pull/40827 * refactor(service_api): dep-inject app payloads with @model_validate by @ShousenZHANG in https://github.com/langgenius/dify/pull/41491 * fix(web): improve a11y of dataset clickable divs with native buttons by @LuckTerence in https://github.com/langgenius/dify/pull/41319 * refactor(service_api): dep-inject dataset payloads with @model_validate by @ShousenZHANG in https://github.com/langgenius/dify/pull/41490 * revert(web): revert dataset button a11y changes by @lyzno1 in https://github.com/langgenius/dify/pull/41493 * refactor(console): dep-inject account payloads with @model_validate by @ShousenZHANG in https://github.com/langgenius/dify/pull/41500 * refactor(web): dep-inject payloads with @model_validate by @ShousenZHANG in https://github.com/langgenius/dify/pull/41501 * fix(e2e): target agent roster list items by @lyzno1 in https://github.com/langgenius/dify/pull/41453 * fix(web): refine agent dialog form sessions by @lyzno1 in https://github.com/langgenius/dify/pull/41492 * chore(deps): bump anthropics/claude-code-action from 1.0.199 to 1.0.210 in the github-actions-dependencies group by @dependabot[bot] in https://github.com/langgenius/dify/pull/41504 * fix(web): unify tool plugin selection state by @lyzno1 in https://github.com/langgenius/dify/pull/41470 * fix(agent): reject incompatible session snapshots by @zyssyz123 in https://github.com/langgenius/dify/pull/41447 * fix(web): show DSL import warning details by @hjlarry in https://github.com/langgenius/dify/pull/41502 * fix(api): keep workspace owner consistent on ownership transfer by @GareArc in https://github.com/langgenius/dify/pull/41267 * feat: use app.acl.access_point_manage to control access point page access by @fatelei in https://github.com/langgenius/dify/pull/41462 * refactor(api): extract email registration application service by @41tair in https://github.com/langgenius/dify/pull/41108 * fix(web): make registration tracking consent-safe and retryable by @CodingOnStar in https://github.com/langgenius/dify/pull/41365 * fix(rbac): grant agent access to all legacy roles by @WTW0313 in https://github.com/langgenius/dify/pull/41511 * refactor(api): decouple onboarding and notification services by @41tair in https://github.com/langgenius/dify/pull/40759 * fix(web): make plugin detail drawer non-modal by @lyzno1 in https://github.com/langgenius/dify/pull/41473 * fix(web): preserve plugin footer text layout by @Jingyi-Dify in https://github.com/langgenius/dify/pull/41514 * test: migrate advanced chat generator sessions and ORM models to SQLite by @asukaminato0721 in https://github.com/langgenius/dify/pull/40585 * test: migrate console dataset sessions and ORM models to SQLite by @asukaminato0721 in https://github.com/langgenius/dify/pull/40521 * test: migrate audit findings sessions and ORM models to SQLite by @asukaminato0721 in https://github.com/langgenius/dify/pull/40551 * test: migrate model and agent sessions to SQLite by @asukaminato0721 in https://github.com/langgenius/dify/pull/40087 * fix: stabilize node block selectors and restore start tabs by @iamjoel in https://github.com/langgenius/dify/pull/41523 * fix: prevent the exit versions button from shrinking by @iamjoel in https://github.com/langgenius/dify/pull/41527 * fix(web): align tool plugin card layout by @Jingyi-Dify in https://github.com/langgenius/dify/pull/41525 * fix: hide chat features drawer while opener dialog is active by @iamjoel in https://github.com/langgenius/dify/pull/41530 * fix(workflow): allow human input in iteration and loop by @laipz8200 in https://github.com/langgenius/dify/pull/40061 * chore(dify-agent): make local dev work with defaults out of the box by @wylswz in https://github.com/langgenius/dify/pull/41533 * fix(workflow): block manual runs for trigger workflows by @zyssyz123 in https://github.com/langgenius/dify/pull/41519 * fix(web): reset test-email sender state when reopening the modal by @GareArc in https://github.com/langgenius/dify/pull/41515 * docs(frontend): clarify transient state ownership by @lyzno1 in https://github.com/langgenius/dify/pull/41541 * fix(web): hide Open in Explore for SSO-restricted apps by @GareArc in https://github.com/langgenius/dify/pull/41518 * refactor(workflow): migrate schedule cron input by @lyzno1 in https://github.com/langgenius/dify/pull/41550 * refactor(workflow): migrate email subject input by @lyzno1 in https://github.com/langgenius/dify/pull/41551 * refactor(plugins): migrate credential rename input by @lyzno1 in https://github.com/langgenius/dify/pull/41552 * refactor(web): align skills card semantics by @lyzno1 in https://github.com/langgenius/dify/pull/41559 * fix(plugin): prevent install dialog error overflow by @lyzno1 in https://github.com/langgenius/dify/pull/41561 * chore: Revert "feat: use app.acl.access_point_manage to control access point page access" by @iamjoel in https://github.com/langgenius/dify/pull/41563 * chore(deps): upgrade workspace dependencies by @lyzno1 in https://github.com/langgenius/dify/pull/41564 * refactor(console): dep-inject model provider payloads with @model_validate by @ShousenZHANG in https://github.com/langgenius/dify/pull/41539 * refactor(service_api): dep-inject query params with @model_validate by @ShousenZHANG in https://github.com/langgenius/dify/pull/41562 * chore: enforce titles on CSS-truncated elements by @iamjoel in https://github.com/langgenius/dify/pull/41438 * fix(agent): bound Redis run event streams by @zyssyz123 in https://github.com/langgenius/dify/pull/41566 * refactor(models): pass session into DocumentSegment and AppDatasetJoin accessors by @elyar1124 in https://github.com/langgenius/dify/pull/41568 * refactor(models): remove legacy db.session property wrappers on Dataset by @keith991001 in https://github.com/langgenius/dify/pull/41569 * fix: handle published workflow request failures in access points by @iamjoel in https://github.com/langgenius/dify/pull/41572 * chore: upgrade Node.js runtime to 24 LTS by @lyzno1 in https://github.com/langgenius/dify/pull/41573 * fix(web): publish workflow before creating tool by @QuantumGhost in https://github.com/langgenius/dify/pull/41528 * fix(web): merge workflow tool outputs from all End nodes by @QuantumGhost in https://github.com/langgenius/dify/pull/41517 * test: migrate agent-v2 workflow sessions and ORM models to SQLite by @asukaminato0721 in https://github.com/langgenius/dify/pull/40514 * test: migrate workspace member sessions and ORM models to SQLite by @asukaminato0721 in https://github.com/langgenius/dify/pull/40523 * test: migrate dataset retrieval sessions and ORM models to SQLite by @asukaminato0721 in https://github.com/langgenius/dify/pull/40548 * test: migrate dataset download sessions and ORM models to SQLite by @asukaminato0721 in https://github.com/langgenius/dify/pull/40630 * refactor(api): decouple system features and web adapters by @41tair in https://github.com/langgenius/dify/pull/40772 * fix(web): announce agent draft status by @lyzno1 in https://github.com/langgenius/dify/pull/41595 * ci(e2e): shard pull request browser tests by @lyzno1 in https://github.com/langgenius/dify/pull/41596 * chore(deps-dev): bump nltk from 3.10.0 to 3.10.3 in /api by @dependabot[bot] in https://github.com/langgenius/dify/pull/41602 * refactor(web): migrate external API selection input by @lyzno1 in https://github.com/langgenius/dify/pull/41610 * refactor(web): migrate dataset settings name input by @lyzno1 in https://github.com/langgenius/dify/pull/41611 * refactor(web): migrate webhook table input by @lyzno1 in https://github.com/langgenius/dify/pull/41612 * fix(rbac): let agent.manage operate every agent page by @GareArc in https://github.com/langgenius/dify/pull/41583 * chore(deps): bump pypdf from 6.15.0 to 6.16.1 in /api by @dependabot[bot] in https://github.com/langgenius/dify/pull/41607 * refactor(service_api): dep-inject segment payloads with @model_validate by @ShousenZHANG in https://github.com/langgenius/dify/pull/41571 * refactor(web): migrate access point mutations by @lyzno1 in https://github.com/langgenius/dify/pull/41614 * refactor(inner_api): dep-inject request payloads with @model_validate by @ShousenZHANG in https://github.com/langgenius/dify/pull/41575 * docs(e2e): refine Playwright and Cucumber skill guidance by @lyzno1 in https://github.com/langgenius/dify/pull/41617 * fix: improve snippets list accessibility by @iamjoel in https://github.com/langgenius/dify/pull/41579 * fix(api): tolerate workflow pause snapshot cleanup failure by @QuantumGhost in https://github.com/langgenius/dify/pull/41581 * refactor(web): migrate console reset password inputs by @lyzno1 in https://github.com/langgenius/dify/pull/41632 * refactor(web): migrate webapp reset password inputs by @lyzno1 in https://github.com/langgenius/dify/pull/41633 * refactor(web): migrate webapp email code inputs by @lyzno1 in https://github.com/langgenius/dify/pull/41634 * feat: app access point permission by @WTW0313 in https://github.com/langgenius/dify/pull/41631 * refactor(api): require active workspace in request context by @hjlarry in https://github.com/langgenius/dify/pull/41280 * chore(deps): bump pypdf from 6.14.2 to 6.16.1 in /dify-agent by @dependabot[bot] in https://github.com/langgenius/dify/pull/41604 * perf(web): downsample static account avatars by @lyzno1 in https://github.com/langgenius/dify/pull/41655 * fix(web): stabilize Home and Studio route titles by @lyzno1 in https://github.com/langgenius/dify/pull/41654 * fix: preserve Swagger tool authorization after refresh by @iamjoel in https://github.com/langgenius/dify/pull/41656 * fix(dify-agent): harden E2B binding lifecycle by @zhaohao1004 in https://github.com/langgenius/dify/pull/41623 * fix: validate rule for provider scoped credentials by @wylswz in https://github.com/langgenius/dify/pull/41659 * fix(web): align avatar file extension with output type by @lyzno1 in https://github.com/langgenius/dify/pull/41662 * feat: allow knowledge base API keys to be scoped to a single dataset by @ForeignKeyCN in https://github.com/langgenius/dify/pull/37569 * perf(web): load Zendesk on support intent by @lyzno1 in https://github.com/langgenius/dify/pull/41653 * chore(i18n): sync translations with en-US by @github-actions[bot] in https://github.com/langgenius/dify/pull/41669 * chore(deps): bump transformers from 5.6.2 to 5.10.1 in /dify-agent by @dependabot[bot] in https://github.com/langgenius/dify/pull/41608 * chore: Site to typebase by @asukaminato0721 in https://github.com/langgenius/dify/pull/35632 * refactor(api): extract forgot password application service by @41tair in https://github.com/langgenius/dify/pull/41111 * refactor(console,web): dep-inject query params with @model_validate by @ShousenZHANG in https://github.com/langgenius/dify/pull/41646 * chore(deps): bump transformers from 5.5.0 to 5.10.1 in /api by @dependabot[bot] in https://github.com/langgenius/dify/pull/41609 * chore(dify-ui): migrate class merging to cn by @hyoban in https://github.com/langgenius/dify/pull/41693 * docs(web): clarify browser mode focus test boundary by @lyzno1 in https://github.com/langgenius/dify/pull/41692 * feat(web): make markdown form field name length configurable by @WTW0313 in https://github.com/langgenius/dify/pull/41697 * refactor(web): migrate legacy form controls to Dify UI by @lyzno1 in https://github.com/langgenius/dify/pull/41682 * refactor(service-api): inject file upload service by @hjlarry in https://github.com/langgenius/dify/pull/41585 * refactor(service_api): dep-inject the dataset create payload with @model_validate by @ShousenZHANG in https://github.com/langgenius/dify/pull/41651 * refactor(web): inject file upload service by @hjlarry in https://github.com/langgenius/dify/pull/41586 * refactor(console): inject file service by @hjlarry in https://github.com/langgenius/dify/pull/41603 * refactor(openapi): inject file upload service by @hjlarry in https://github.com/langgenius/dify/pull/41606 * fix(api): bound suggested question generation latency by @zyssyz123 in https://github.com/langgenius/dify/pull/41705 * refactor(api): centralize remote file handling by @hjlarry in https://github.com/langgenius/dify/pull/41627 * refactor(api): extract account login service and consolidate adapters by @41tair in https://github.com/langgenius/dify/pull/41184 * fix(web): guard LLM node model_selector against persisted null by @BenjaminX in https://github.com/langgenius/dify/pull/41707 * fix(web): align workspace switcher states and semantics by @Jingyi-Dify in https://github.com/langgenius/dify/pull/41713 * chore(web): canonicalize Tailwind classes by @hyoban in https://github.com/langgenius/dify/pull/41718 * fix(web): stringify object editor values before Monaco createModel by @kabishou11 in https://github.com/langgenius/dify/pull/41719 * chore(web): prune unused i18n keys by @hyoban in https://github.com/langgenius/dify/pull/41725 * test(web): remove workspace switcher browser test by @lyzno1 in https://github.com/langgenius/dify/pull/41728 * chore(i18n): sync translations with en-US by @github-actions[bot] in https://github.com/langgenius/dify/pull/41733 * refactor(api): decouple console OAuth flow from legacy account services by @41tair in https://github.com/langgenius/dify/pull/41188 * fix(agent): surface missing tool credentials by @zyssyz123 in https://github.com/langgenius/dify/pull/41726 * chore(dify-ui): enable purity lint in tests by @lyzno1 in https://github.com/langgenius/dify/pull/41736 * chore: remove redundant aria-label attributes by @iamjoel in https://github.com/langgenius/dify/pull/41724 * refactor(web): migrate runtime variable inputs by @lyzno1 in https://github.com/langgenius/dify/pull/41739 * fix(web): map pt-BR to pt_BR for tool metadata by @hjlarry in https://github.com/langgenius/dify/pull/41745 * refactor(web): align account preference requests with API contracts by @hjlarry in https://github.com/langgenius/dify/pull/41748 * refactor(models): remove legacy db.session property wrappers on Document by @keith991001 in https://github.com/langgenius/dify/pull/41721 * refactor(query): migrate imperative APIs to query semantics by @lyzno1 in https://github.com/langgenius/dify/pull/41746 * fix(binding-files): keep UTF-8 text preview when max_bytes splits a character by @Souravrajvi0 in https://github.com/langgenius/dify/pull/41761 * refactor: pass notification language explicitly by @hjlarry in https://github.com/langgenius/dify/pull/41770 * feat: app deployment v2 by @WTW0313 in https://github.com/langgenius/dify/pull/41444 * chore(web): enforce query options lint by @lyzno1 in https://github.com/langgenius/dify/pull/41754 * chore: run dify-agent typecheck in python-style by @wylswz in https://github.com/langgenius/dify/pull/41701 * refactor(models): use sa.false()/sa.true() for boolean server defaults by @Souravrajvi0 in https://github.com/langgenius/dify/pull/41762 * ci: parallelize change detection and gate style jobs by @41tair in https://github.com/langgenius/dify/pull/41678 * fix(api): support Lao as a display language by @hjlarry in https://github.com/langgenius/dify/pull/41743 * refactor: make explore localization request-driven by @hjlarry in https://github.com/langgenius/dify/pull/41798 * chore: correct ARIA roles and preserve control interactions by @iamjoel in https://github.com/langgenius/dify/pull/41738 * fix(ci): avoid npm bootstrap in web setup by @lyzno1 in https://github.com/langgenius/dify/pull/41804 * test: split skill detail page suite by @lyzno1 in https://github.com/langgenius/dify/pull/41799 * chore(deps-dev): bump mkdocs-material from 9.7.6 to 9.7.7 in /dify-agent by @dependabot[bot] in https://github.com/langgenius/dify/pull/41767 * docs(api): Fix reformat script path in api/README.md by @jrlprost in https://github.com/langgenius/dify/pull/41658 * fix(api): correct dataset and document list has_more pagination by @kabishou11 in https://github.com/langgenius/dify/pull/41784 * fix(skills): tolerate __MACOSX metadata folder when importing a Skill package by @chelsealong in https://github.com/langgenius/dify/pull/41757 * fix: close unclosed think tags around agent tool calls by @Souravrajvi0 in https://github.com/langgenius/dify/pull/41764 * fix(api): persist plugin trigger subscription expires_at from provider by @kabishou11 in https://github.com/langgenius/dify/pull/41773 * fix(api): keep segment attachments when attachment_ids omitted by @kabishou11 in https://github.com/langgenius/dify/pull/41777 * refactor(web): migrate runtime app inputs by @lyzno1 in https://github.com/langgenius/dify/pull/41806 * refactor(api): move OpenAPI account access behind application services by @41tair in https://github.com/langgenius/dify/pull/41308 * fix(web): use stable error boundary retry by @lyzno1 in https://github.com/langgenius/dify/pull/41811 * fix(web): allow CookieYes consent logging by @lyzno1 in https://github.com/langgenius/dify/pull/41812 * fix(api): correct Service API segments has_more pagination by @kabishou11 in https://github.com/langgenius/dify/pull/41776 * feat(web): add marketplace creator profiles and homepage redesign by @CodingOnStar in https://github.com/langgenius/dify/pull/41538 * refactor(api): extract console workflow run application service by @hjlarry in https://github.com/langgenius/dify/pull/41336 * fix(api): skip invalid markdown image URLs by @euxx in https://github.com/langgenius/dify/pull/41343 * fix(trigger): sync plugin relationships on publish by @ayush-singh-0601 in https://github.com/langgenius/dify/pull/41756 * docs(dify-ui): document combobox chip keyboard hints by @lyzno1 in https://github.com/langgenius/dify/pull/41815 * chore(i18n): sync translations with en-US by @github-actions[bot] in https://github.com/langgenius/dify/pull/41817 * perf(agent-v2): flatten build draft request waterfalls by @lyzno1 in https://github.com/langgenius/dify/pull/41816 * test: migrate core agent runner sessions and ORM models to SQLite by @asukaminato0721 in https://github.com/langgenius/dify/pull/40508 * chore: bump base-ui to 1.8.0 by @lyzno1 in https://github.com/langgenius/dify/pull/41820 * refactor(api): extract app statistic queries from console controllers by @hjlarry in https://github.com/langgenius/dify/pull/41557 * fix(api): enforce admin and RBAC permissions on model provider model credential GET endpoint (#41599) by @agarwalpranav0711 in https://github.com/langgenius/dify/pull/41600 * refactor(dify-ui): adopt ID-backed combobox items by @lyzno1 in https://github.com/langgenius/dify/pull/41821 * chore: use semantic tags for interactive elements by @iamjoel in https://github.com/langgenius/dify/pull/41813 * refactor(api): isolate workflow app log queries by @hjlarry in https://github.com/langgenius/dify/pull/41509 * fix(web): append /api/v1 when SSR reads MARKETPLACE_API_URL by @CodingOnStar in https://github.com/langgenius/dify/pull/41824 * docs(web): align PreviewCard disclosure guidance by @lyzno1 in https://github.com/langgenius/dify/pull/41827 * fix(button): align loading accessibility contract by @lyzno1 in https://github.com/langgenius/dify/pull/41823 * test: migrate application generation sessions and ORM models to SQLite by @asukaminato0721 in https://github.com/langgenius/dify/pull/40509 * fix: align select and autocomplete collection contracts by @lyzno1 in https://github.com/langgenius/dify/pull/41829 * fix: preserve generated API contracts during local development by @hyoban in https://github.com/langgenius/dify/pull/41834 * fix(select): isolate trigger states and unavailable package selection by @lyzno1 in https://github.com/langgenius/dify/pull/41843 * refactor(models): pass session into tool provider accessors by @a-yeyang in https://github.com/langgenius/dify/pull/41830 * refactor(models): pass session into AppAnnotationHitHistory accessors by @a-yeyang in https://github.com/langgenius/dify/pull/41832 * refactor(web): dep-inject the passport query with @model_validate by @ShousenZHANG in https://github.com/langgenius/dify/pull/41845 * docs: clarify frontend guidance ownership and dependencies by @lyzno1 in https://github.com/langgenius/dify/pull/41848 * refactor(console): decouple app tracing configuration by @hjlarry in https://github.com/langgenius/dify/pull/41576 * fix(web): open embedded recommend banner plugins in the detail dialog by @CodingOnStar in https://github.com/langgenius/dify/pull/41828 * refactor(api): extract human input file upload persistence by @hjlarry in https://github.com/langgenius/dify/pull/41716 * chore(deps): bump anthropics/claude-code-action from 1.0.211 to 1.0.216 in the github-actions-dependencies group by @dependabot[bot] in https://github.com/langgenius/dify/pull/41892 * refactor(models): remove legacy db.session properties from Conversation by @Kiveiru3 in https://github.com/langgenius/dify/pull/41847 * chore: remove unnecessary str() calls in annotation tasks by @XiaoSong1223 in https://github.com/langgenius/dify/pull/41878 * refactor(web): migrate workflow error default inputs by @lyzno1 in https://github.com/langgenius/dify/pull/41900 * refactor(web): migrate loop variable constant inputs by @lyzno1 in https://github.com/langgenius/dify/pull/41901 * fix(agent): send uploaded images as native multimodal input by @kenwoodjw in https://github.com/langgenius/dify/pull/41685 * chore(deps-dev): bump the dev group in /api with 48 updates by @dependabot[bot] in https://github.com/langgenius/dify/pull/41896 * feat(rbac): agent RBAC/ACL scenes and resource-locator check bundles by @GareArc in https://github.com/langgenius/dify/pull/41768 * refactor(models): pass session into AppAnnotationSetting.collection_binding_detail by @however-yir in https://github.com/langgenius/dify/pull/41885 * refactor(models): remove legacy db.session wrappers on Message feedback/annotation accessors by @however-yir in https://github.com/langgenius/dify/pull/41883 * refactor(inner_api): dep-inject workspace payloads with @model_validate by @ShousenZHANG in https://github.com/langgenius/dify/pull/41540 * refactor(controllers): inject message request models by @Kiveiru3 in https://github.com/langgenius/dify/pull/41884 * refactor(models): remove legacy db.session property wrappers on DocumentSegment and DatasetQuery by @keith991001 in https://github.com/langgenius/dify/pull/41794 * refactor(models): remove remaining legacy db.session property wrappers on Dataset by @keith991001 in https://github.com/langgenius/dify/pull/41647 * chore(i18n): sync translations with en-US by @github-actions[bot] in https://github.com/langgenius/dify/pull/41904 * refactor(models): pass session into CustomizedSnippet accessors by @anneheartrecord in https://github.com/langgenius/dify/pull/40379 * refactor(controllers): adopt with_session in web saved_message by @yuki-uix in https://github.com/langgenius/dify/pull/41859 * fix(web): use default Code Inspector integration by @lyzno1 in https://github.com/langgenius/dify/pull/41903 * refactor(web): move app quota refresh out of provider context by @lyzno1 in https://github.com/langgenius/dify/pull/41906 * refactor(web): remove provider plan query flags by @lyzno1 in https://github.com/langgenius/dify/pull/41908 * fix(ssrf): apply private allowlist to agent_ssrf_proxy by @kabishou11 in https://github.com/langgenius/dify/pull/41870 * refactor(web): remove legacy enableBilling consumers by @lyzno1 in https://github.com/langgenius/dify/pull/41913 * refactor(api): remove legacy billing enabled state by @lyzno1 in https://github.com/langgenius/dify/pull/41917 * fix(api): fix tencent summary vector deadlock by @FFXN in https://github.com/langgenius/dify/pull/41916 * refactor(service-api): extract file preview application service by @hjlarry in https://github.com/langgenius/dify/pull/41732 * refactor(models): pass session into ApiToolProvider.user accessor by @however-yir in https://github.com/langgenius/dify/pull/41882 * refactor(models): remove the last standalone legacy db.session properties on Dataset by @keith991001 in https://github.com/langgenius/dify/pull/41911 * refactor(models): remove legacy db.session wrappers on Message accessors by @however-yir in https://github.com/langgenius/dify/pull/41886 * fix(dx): repair and restage Python files in pre-commit by @lyzno1 in https://github.com/langgenius/dify/pull/41877 * fix(api): reject ownerless pending DSL imports by @WH-2099 in https://github.com/langgenius/dify/pull/40107 * refactor(web): retire provider context plan state by @lyzno1 in https://github.com/langgenius/dify/pull/41925 * refactor: preserve exception context when re-raising in except blocks by @zrh805 in https://github.com/langgenius/dify/pull/40432 * refactor(models): pass session into InstalledApp.tenant accessor by @ShawYann in https://github.com/langgenius/dify/pull/41831 * refactor: add missing @override decorators to console controller classes by @citizen204 in https://github.com/langgenius/dify/pull/37113 * style(api): remove unnecessary type conversions in services, repositories and tests by @Java123456com in https://github.com/langgenius/dify/pull/41856 * refactor(web): remove obsolete agent v2 scaffolding and editor state by @lyzno1 in https://github.com/langgenius/dify/pull/41931 * fix(billing): align zero and unlimited quota semantics by @lyzno1 in https://github.com/langgenius/dify/pull/41927 * fix(dataset_service): refresh session snapshot before UploadFile lookup by @Taranum01 in https://github.com/langgenius/dify/pull/41840 * fix(vdb-weaviate): backward-compatible cleanup + preserve positional alignment by @Taranum01 in https://github.com/langgenius/dify/pull/41915 * refactor(api): extract upload file delivery service by @hjlarry in https://github.com/langgenius/dify/pull/41772 * refactor(console): unify environment-aware oRPC clients and query policies by @lyzno1 in https://github.com/langgenius/dify/pull/41932 * refactor(api): extract tool file download service by @hjlarry in https://github.com/langgenius/dify/pull/41790 * refactor(web): move provider feature flags to query consumers by @lyzno1 in https://github.com/langgenius/dify/pull/41937 * refactor(web): move model lists out of provider context by @lyzno1 in https://github.com/langgenius/dify/pull/41939 * fix(agent): persist Chatflow Agent V2 memory by conversation_id by @kabishou11 in https://github.com/langgenius/dify/pull/41871 * refactor(api): extract plugin file upload application service by @hjlarry in https://github.com/langgenius/dify/pull/41808 * fix(api): align service api schemas with runtime behavior by @hyoban in https://github.com/langgenius/dify/pull/41943 * refactor(web): retire provider context by @lyzno1 in https://github.com/langgenius/dify/pull/41944 * fix: correct page landmarks and document layout rules by @iamjoel in https://github.com/langgenius/dify/pull/41938 * fix(api): enforce RBAC permission on MCP tool provider GET endpoint (#41547) by @agarwalpranav0711 in https://github.com/langgenius/dify/pull/41548 * refactor(api): trim workspace features response contract by @lyzno1 in https://github.com/langgenius/dify/pull/41948 * refactor(models): remove the legacy db.session wrappers on App by @ShousenZHANG in https://github.com/langgenius/dify/pull/41942 * refactor(models): remove four unread legacy db.session wrappers by @ShousenZHANG in https://github.com/langgenius/dify/pull/41964 * fix: make panel and node resizing keyboard accessible by @iamjoel in https://github.com/langgenius/dify/pull/41963 * refactor(web): isolate pricing modal state and lifecycle by @lyzno1 in https://github.com/langgenius/dify/pull/41960 * fix(dataset): delete segment attachment blobs from storage by @CoralGarden52 in https://github.com/langgenius/dify/pull/41400 * fix(api): anchor JSON extraction on brackets in parse_json_markdown by @Harsh23Kashyap in https://github.com/langgenius/dify/pull/41959 * feat: support keyboard movement for workflow nodes and comments by @iamjoel in https://github.com/langgenius/dify/pull/41967 * fix(i18n): sync agent access point copy by @WTW0313 in https://github.com/langgenius/dify/pull/41969 * fix(rag): preserve CSV cell text during knowledge import by @Souravrajvi0 in https://github.com/langgenius/dify/pull/41922 * fix(api): handle string and missing params in weekday time tool by @Harsh23Kashyap in https://github.com/langgenius/dify/pull/41952 * refactor(models): pass session into WorkflowNodeExecutionModel accessors by @keith991001 in https://github.com/langgenius/dify/pull/41968 * fix(api): correct service api rate limit descriptions by @hyoban in https://github.com/langgenius/dify/pull/41975 * fix(api): accept CRLF SKILL.md when importing skill zips by @leilei3167 in https://github.com/langgenius/dify/pull/41657 * fix(web): reset goto anything search after dialog closes by @lyzno1 in https://github.com/langgenius/dify/pull/41976 * fix: restore comment marker focus after closing threads by @iamjoel in https://github.com/langgenius/dify/pull/41978 * test: migrate provider core entity sessions and ORM models to SQLite by @asukaminato0721 in https://github.com/langgenius/dify/pull/40532 * test: migrate console dataset document sessions and ORM models to SQLite by @asukaminato0721 in https://github.com/langgenius/dify/pull/40522 * test: migrate workspace snippet sessions and ORM models to SQLite by @asukaminato0721 in https://github.com/langgenius/dify/pull/40524 * test: migrate segment service sessions and ORM models to SQLite by @asukaminato0721 in https://github.com/langgenius/dify/pull/40535 * fix(api): flatten readabilipy plain_text items in web reader tool by @Harsh23Kashyap in https://github.com/langgenius/dify/pull/41954 * fix(web): keep recommend banner logos intact and show template authors by @CodingOnStar in https://github.com/langgenius/dify/pull/41980 * fix(api): resolve aliases in remote settings sources by @GYJ99 in https://github.com/langgenius/dify/pull/41463 * fix(api): allow PDF extraction from URLs without an upload file by @Harsh23Kashyap in https://github.com/langgenius/dify/pull/41950 * docs(CODEOWNERS): Assign domain owners for backend test paths by @laipz8200 in https://github.com/langgenius/dify/pull/42007 * fix(dataset): clean multimodal attachments during reindex by @CoralGarden52 in https://github.com/langgenius/dify/pull/41999 * chore(deps): upgrade pnpm to 12.3.4 and Vite+ to 0.3.1 by @lyzno1 in https://github.com/langgenius/dify/pull/42005 * fix: dataset hitcount deadlock by @FFXN in https://github.com/langgenius/dify/pull/41979 * fix(api): fall back to first server URL when X-Request-Env is set but servers lack env key by @Harsh23Kashyap in https://github.com/langgenius/dify/pull/42025 * fix: validate declared blob size before allocating buffer in chunk merger by @Harsh23Kashyap in https://github.com/langgenius/dify/pull/42021 * fix(api): reject trailing newlines in user_input_form variable names by @Harsh23Kashyap in https://github.com/langgenius/dify/pull/42029 * fix(api): handle invalid app icon references by @linw1995 in https://github.com/langgenius/dify/pull/41977 * fix: keep Notion table cell rich text segments in one Markdown column by @Harsh23Kashyap in https://github.com/langgenius/dify/pull/41993 * chore(deps): upgrade jotai to v3 and jotai-scope by @lyzno1 in https://github.com/langgenius/dify/pull/42036 * fix(api): accept valid epoch-0 timestamps in localtime conversion tool by @Harsh23Kashyap in https://github.com/langgenius/dify/pull/42027 * fix: deduplicate repeated GET request error notifications by @iamjoel in https://github.com/langgenius/dify/pull/42035 * chore(deps): bump gitpython from 3.1.58 to 3.1.59 in /api by @dependabot[bot] in https://github.com/langgenius/dify/pull/42017 * fix(console): stop advertising the education plan outside Dify Cloud by @lin-snow in https://github.com/langgenius/dify/pull/41898 * refactor(models): remove the unread App.author_name db.session wrapper by @ShousenZHANG in https://github.com/langgenius/dify/pull/41983 * refactor(models): remove the App.bound_agent_id and App.is_agent wrappers by @ShousenZHANG in https://github.com/langgenius/dify/pull/41998 * refactor(api): remove InstalledApp implicit-session accessor by @nehal-a2z in https://github.com/langgenius/dify/pull/42000 * refactor(controllers/console): inject saved-message query with @model_validate by @wr-Jiao in https://github.com/langgenius/dify/pull/41819 * fix: escape double quotes in .xls cell values like the .xlsx path by @Harsh23Kashyap in https://github.com/langgenius/dify/pull/42049 * chore(lint): share and tighten JSX accessibility rules by @lyzno1 in https://github.com/langgenius/dify/pull/42045 * fix: join all rich_text/title segments in Notion database extraction by @Harsh23Kashyap in https://github.com/langgenius/dify/pull/42050 * refactor(web): migrate workflow numeric configuration inputs by @lyzno1 in https://github.com/langgenius/dify/pull/42052 * fix: make sortable lists keyboard accessible by @iamjoel in https://github.com/langgenius/dify/pull/41974 * chore(deps): bump transformers from 5.6.2 to 5.16.1 in /dify-agent by @wylswz in https://github.com/langgenius/dify/pull/42054 * test: reclassify response filter regressions by @asukaminato0721 in https://github.com/langgenius/dify/pull/40706 * chore(lint): tighten inline disable enforcement by @hyoban in https://github.com/langgenius/dify/pull/42058 * test: migrate workflow node execution task sessions and ORM models to SQLite by @asukaminato0721 in https://github.com/langgenius/dify/pull/40571 * fix(web): hide decorative content and redundant list semantics by @iamjoel in https://github.com/langgenius/dify/pull/42060 * feat: add agent resource permissions by @WTW0313 in https://github.com/langgenius/dify/pull/41940 * chore(lint): respect gitignore in ESLint flat config by @hyoban in https://github.com/langgenius/dify/pull/42065 * chore(deps): bump unstructured from 0.21.5 to 0.27.5 in /api by @wylswz in https://github.com/langgenius/dify/pull/42053 * test: migrate console app response sessions and ORM models to SQLite by @asukaminato0721 in https://github.com/langgenius/dify/pull/40562 * test: migrate console workflow sessions and ORM models to SQLite by @asukaminato0721 in https://github.com/langgenius/dify/pull/40563 * chore(deps): bump h2 from 4.3.0 to 4.4.1 in /dify-agent by @dependabot[bot] in https://github.com/langgenius/dify/pull/40119 * chore: example to add Mapped by @asukaminato0721 in https://github.com/langgenius/dify/pull/40374 * chore(i18n): sync translations with en-US by @github-actions[bot] in https://github.com/langgenius/dify/pull/42064 * fix: fix undo delete operation for webhook trigger node lead the url … by @fatelei in https://github.com/langgenius/dify/pull/42069 * chore(deps): bump httpx2 from 2.5.0 to 2.12.0 in /dify-agent by @dependabot[bot] in https://github.com/langgenius/dify/pull/42011 * chore(deps): bump httpx2 from 2.5.0 to 2.12.0 in /api by @dependabot[bot] in https://github.com/langgenius/dify/pull/42012 * fix(web): open embedded recommend banner templates in the detail dialog by @CodingOnStar in https://github.com/langgenius/dify/pull/42063 * chore(deps): bump the storage group across 1 directory with 4 updates by @dependabot[bot] in https://github.com/langgenius/dify/pull/41893 * chore(release): Upgrade self-hosted Weaviate to 1.39 by @dudanogueira in https://github.com/langgenius/dify/pull/38214 * fix(web): restore focus after closing overlays by @iamjoel in https://github.com/langgenius/dify/pull/42068 * chore(deps): bump gunicorn from 26.1.0 to 26.2.0 in /api in the flask group across 1 directory by @dependabot[bot] in https://github.com/langgenius/dify/pull/41505 * refactor(web): migrate conversation variable inputs by @lyzno1 in https://github.com/langgenius/dify/pull/42070 * refactor(api): migrate remaining RESTX models to Pydantic by @asukaminato0721 in https://github.com/langgenius/dify/pull/40399 * chore(deps): bump unstructured from 0.21.5 to 0.24.0 in /dify-agent by @dependabot[bot] in https://github.com/langgenius/dify/pull/41765 * fix(web): align card tag masks with design tokens by @lyzno1 in https://github.com/langgenius/dify/pull/42074 * chore(deps): bump the google group across 1 directory with 2 updates by @dependabot[bot] in https://github.com/langgenius/dify/pull/41121 * chore: fit the app canvas when create from DSL and preview by @iamjoel in https://github.com/langgenius/dify/pull/42073 * fix: prevent note bold shortcut from toggling the sidebar by @iamjoel in https://github.com/langgenius/dify/pull/42078 * fix(ci): refresh E2E runtime path filters by @lyzno1 in https://github.com/langgenius/dify/pull/42079 * test: split CodeNode validation from sandbox coverage by @asukaminato0721 in https://github.com/langgenius/dify/pull/40707 * feat(nuqs-jotai): bridge nuqs URL state into Jotai by @hyoban in https://github.com/langgenius/dify/pull/42086 * refactor(api): remove legacy end user type fallback by @EvanYao826 in https://github.com/langgenius/dify/pull/39662 * chore(codeowners): assign dify-agent to Yanli by @laipz8200 in https://github.com/langgenius/dify/pull/42091 * docs(api): fix working directory instructions for running tests by @Babulubobo in https://github.com/langgenius/dify/pull/42085 * fix(web): prefetch skill feature flag for initial navigation by @kabishou11 in https://github.com/langgenius/dify/pull/41731 * fix(web): stabilize install footer and shortcut initial rendering by @hyoban in https://github.com/langgenius/dify/pull/42088 * chore(web): upgrade React to 19.3 and adopt browser-only rendering by @lyzno1 in https://github.com/langgenius/dify/pull/42093 * fix(web): restore content-sized search shortcut keycap by @lyzno1 in https://github.com/langgenius/dify/pull/42097 * fix: fix agent.id mismatch lead permission keys are empty by @fatelei in https://github.com/langgenius/dify/pull/42095 * fix(web): remove local search delay and clean up component lifecycles by @lyzno1 in https://github.com/langgenius/dify/pull/42102 * test: migrate summary index sessions and ORM models to SQLite by @asukaminato0721 in https://github.com/langgenius/dify/pull/40505 * test: migrate console dataset metadata sessions and ORM models to SQLite by @asukaminato0721 in https://github.com/langgenius/dify/pull/40520 * test: migrate custom tool provider ORM model to real entity by @asukaminato0721 in https://github.com/langgenius/dify/pull/40653 * test: migrate agent workspace and publishing sessions and ORM models to SQLite by @asukaminato0721 in https://github.com/langgenius/dify/pull/40506 * test: migrate Service API app sessions and ORM models to SQLite by @asukaminato0721 in https://github.com/langgenius/dify/pull/40558 * test: migrate RAG retrieval sessions and ORM models to SQLite by @asukaminato0721 in https://github.com/langgenius/dify/pull/40512 * test: move mocked model and tool cases to unit tests by @asukaminato0721 in https://github.com/langgenius/dify/pull/40708 * fix(dify-ui): preserve invalid focus colors and remove shadow transitions by @lyzno1 in https://github.com/langgenius/dify/pull/42108 * fix(agent): pin chatflow participant versions across config updates by @zyssyz123 in https://github.com/langgenius/dify/pull/42105 * fix(api): restore Human Input completion events by @QuantumGhost in https://github.com/langgenius/dify/pull/42082 * fix(web): preserve web apps navigation focus and disclosure semantics by @lyzno1 in https://github.com/langgenius/dify/pull/42113 * fix(ui): let collapsible consumers own trigger styling by @lyzno1 in https://github.com/langgenius/dify/pull/42116 * fix(web): correct form labels, validation feedback, and keyboard navigation by @iamjoel in https://github.com/langgenius/dify/pull/42096 * fix(web): center settings dialog across viewport sizes by @hyoban in https://github.com/langgenius/dify/pull/42120 * fix(web): delegate overlay initial focus to popup owners by @lyzno1 in https://github.com/langgenius/dify/pull/42121 * chore: bump version to 1.17.1 by @wylswz in https://github.com/langgenius/dify/pull/42129 ## New Contributors * @ccl125 made their first contribution in https://github.com/langgenius/dify/pull/39772 * @HelloSrauker made their first contribution in https://github.com/langgenius/dify/pull/41186 * @huyua9 made their first contribution in https://github.com/langgenius/dify/pull/41419 * @keith991001 made their first contribution in https://github.com/langgenius/dify/pull/41370 * @alanhuangyoo made their first contribution in https://github.com/langgenius/dify/pull/41327 * @ShousenZHANG made their first contribution in https://github.com/langgenius/dify/pull/41374 * @Terminator666666 made their first contribution in https://github.com/langgenius/dify/pull/41244 * @lin597410-design made their first contribution in https://github.com/langgenius/dify/pull/41454 * @jjj-n made their first contribution in https://github.com/langgenius/dify/pull/41464 * @LuckTerence made their first contribution in https://github.com/langgenius/dify/pull/41319 * @elyar1124 made their first contribution in https://github.com/langgenius/dify/pull/41568 * @kabishou11 made their first contribution in https://github.com/langgenius/dify/pull/41719 * @jrlprost made their first contribution in https://github.com/langgenius/dify/pull/41658 * @ayush-singh-0601 made their first contribution in https://github.com/langgenius/dify/pull/41756 * @Kiveiru3 made their first contribution in https://github.com/langgenius/dify/pull/41847 * @XiaoSong1223 made their first contribution in https://github.com/langgenius/dify/pull/41878 * @however-yir made their first contribution in https://github.com/langgenius/dify/pull/41885 * @anneheartrecord made their first contribution in https://github.com/langgenius/dify/pull/40379 * @yuki-uix made their first contribution in https://github.com/langgenius/dify/pull/41859 * @ShawYann made their first contribution in https://github.com/langgenius/dify/pull/41831 * @Java123456com made their first contribution in https://github.com/langgenius/dify/pull/41856 * @GYJ99 made their first contribution in https://github.com/langgenius/dify/pull/41463 * @nehal-a2z made their first contribution in https://github.com/langgenius/dify/pull/42000 * @wr-Jiao made their first contribution in https://github.com/langgenius/dify/pull/41819 * @dudanogueira made their first contribution in https://github.com/langgenius/dify/pull/38214 * @Babulubobo made their first contribution in https://github.com/langgenius/dify/pull/42085 **Full Changelog**: https://github.com/langgenius/dify/compare/1.17.0...1.17.1

  5. 1.17.0 GitHub ↗
    Original release notes

    ## New Features **Agent: E2B Sandbox, Home Snapshots, and Skill Management** - **E2B sandbox backend**: agent shell/code execution can now run on [E2B](https://e2b.dev) cloud sandboxes in addition to the local sandbox. Select the backend with `DIFY_AGENT_RUNTIME_BACKEND`; a new `docker-compose.e2b.yaml` ships the E2B stack, E2B traffic is authenticated, and the E2B template is synced on release (#39480, #39705, #39873, #39996, #40858, #40871, #40891, #40892). - **Build-time Home Snapshots**: when an agent build is applied (published), the agent's sandbox home directory — installed packages, prepared files, working state — is captured and subsequent runs of the published agent restore their home directory from that snapshot, so the agent starts from the exact filesystem state it had at build time. (#39702, #40876, #40996). - **Workspace-level Skill management**: Skills are reusable, versioned capabilities packaged with code and tool definitions that agents can discover and invoke. A new workspace-level skills manager with draft → publish → version lifecycle ships alongside a web UI (skill listing, builder panel, file editor). (#39675, #39798, #39799, #41180). - **Context-aware history compaction**: long agent conversations no longer blow past the model's context window — Dify resolves each model's effective window and tiers compaction (clear old tool results first, then summarize older history) so runs stay within budget without losing recent context (#40872). **Reusable LLM Environment Variables in Workflows** - Define a shared provider/model/mode/parameter configuration once (e.g. `for_summarize`, `for_research`) and reference it from any LLM node. Coordinated model changes now happen in one place instead of drifting node-by-node, and the references survive DSL import/export, snippets, RAG pipelines, and collaborative editing (#39125). **Human Input in Loops and Iterations** - Human-in-the-loop forms now work *inside* Loop and Iteration nodes, pausing and resuming correctly across page refreshes for both debug and installed apps — enabling review/approval steps within repeated work (#39243). **Provider-Neutral Unified Tracing** - Opt-in unified tracing (`OPS_TRACE_UNIFIED_ENABLED`) assembles the full parent-child span tree (workflows, chatflows, messages, nodes, loops, iterations, nested workflows) once in core and delegates only transport to lightweight adapters. Phoenix and LangSmith adapters ship first; disabled by default and fully backward compatible (#39451). - New GenAI spans surface LLM TTFT, agent ReAct steps, tool calls, and failed LLM nodes for deeper observability (#39339). **Cloudflare Turnstile (CAPTCHA) Support** - Optional Turnstile challenge on sign-in and email-code login to protect authentication endpoints from abuse, with configurable site/secret keys and allowed hostnames (#40494). **Azure Key Vault / Pluggable KMS** - Introduces a KMS provider abstraction with Azure Key Vault support for key provisioning, encryption, and decryption, plus key rotation configuration — a step toward externally-managed encryption keys (#39933). **TiDB Vector Full-Text & Hybrid Search** - TiDB Vector deployments can now enable full-text and hybrid retrieval (`TIDB_VECTOR_ENABLE_FULLTEXT_SEARCH`, default off), using a multilingual full-text index alongside vector search (#38112). **Broader Model & File Handling** - LLM nodes and agents can now pass image files directly to multimodal models, and non-vision attachments are no longer silently dropped from agent chats (#39848, #40179). - New multimodal retrieval guidance helps users pick embedding models correctly for image-bearing knowledge bases (#40566). - Audio ASR now accepts `audio/x-m4a`, and audio MIME types are validated more accurately (#40776, #41043). **Go to Anything (⌘K / Ctrl+K)** - Press ⌘K (Ctrl+K on Windows/Linux) anywhere in the console to open the command palette and jump to apps, agents, skills, knowledge bases, plugins, or workflow nodes, or trigger quick actions via slash commands. New in this release: agents and skills are searchable, and the icon-command system was refactored across all domains for consistency (#40620, #40621, #40646–#40649, #41160). **Other Additions** - ODT (OpenDocument Text) document extraction support (#39973). - New `date` / `date-picker` parameter type for tool plugins (#36163). - Lao (lo-LA) language support (#39474). - Automatic cleanup task for old conversations (`ENABLE_CONVERSATION_CLEANUP_TASK`) to bound data growth (#40889-era). - Marketplace embedded directly into integration categories for smoother tool/plugin discovery (#40744). ## Improvements **Accessibility (large a11y pass)** - A very large set of changes makes the console keyboard- and screen-reader-friendly: real `<button>` semantics for dozens of interactive controls, accessible names for icon-only actions (copy, close, delete, menus), primary headings on auth/install pages, keyboard-accessible member/tool selectors, and correct ARIA states (#40192–#40377 and many others). **Workflow Authoring** - The workflow generator now prefers already-installed and configured tools when suggesting nodes, so builders reach for the tools they actually have (#40611, #39850). **Workflow & Runtime Stability** - Reproducible web workflow runs, preserved canvas state after history updates, no more refresh render loops, and SSE streams now end cleanly on terminal events (#40010, #40489, #41105, #40042). - `stop` is now honored between non-streaming nodes and paused workflows clear stale cancellation signals correctly (#41090, #40905, #40972). - `APP_MAX_EXECUTION_TIME` and `WORKFLOW_MAX_EXECUTION_TIME` defaults raised from **1200s → 3600s** to accommodate longer-running workflows. **Internal Quality** - Large migration of unit tests to real ORM models / SQLite sessions for more reliable coverage, plus stronger typing across migrated tests (many #38xxx–#39xxx). No user-facing behavior change. ## Security Enhancements - **Authentication hardening**: Turnstile challenge on login/email-code flows, hardened email-code verification with attempt limits and token expiry (`EMAIL_CODE_LOGIN_MAX_ATTEMPTS`, `EMAIL_CODE_LOGIN_TOKEN_EXPIRY_MINUTES`), suspended-email-domain handling, and short-lived agent authorization tokens (#40494, #40960, #41004, #40884). - **Access-control / ownership scoping**: dataset, document, RAG, conversation, workspace-credential, and OAuth-client resources are now consistently bound to their owners and app scope, closing several unauthorized-access paths (#40989, #40888, #40790, #40745, #40893, #40786, and related). - **SSRF & outbound hardening**: outbound HTTP connect phases are bounded (5s), agent/binding download and run timeouts are configurable, and the SSRF-blocked error message now points to the correct issue (#40807, #41027, #40605). ## Bug Fixes (selected) - Prevent dropped `workflow_started` events in Redis Streams and dropped/duplicated runs from superseded executions (#40964, #40699). - Normalize workflow timestamps to naive UTC and preserve run snapshots/history for failed, cancelled, and interrupted runs (#40947, #40876, #40972). - Prevent cross-tab chat conversation switching and stop dropping non-vision attachments in agent chat (#40709, #40179). - Correct Qwen/VL system-message ordering by merging system messages first (#39136). - Fix Elasticsearch-JA adapter `document_id` mapping and `VectorType` (#40400); avoid empty Bedrock schema fields (#40443). - Use dynamic DNS resolution for all nginx upstreams (#39155); preserve UTF-8 byte size for text uploads (#40034). - Numerous webapp/UI fixes: restore email-code and password form submissions, mobile sign-in overflow, toast stacking, model selector spacing (#40227, #40222, #40921, #40970, #8d612895). --- ## Environment Variable Changes ### Added **Agent runtime / sandbox** (`docker/envs/core-services/dify-agent.env.example`) - `DIFY_AGENT_RUNTIME_BACKEND`, `DIFY_AGENT_RUN_TIMEOUT_SECONDS`, `DIFY_AGENT_SANDBOX_FILES_BASE_URL`, `DIFY_AGENT_STUB_UPLOAD_FILE_SIZE_LIMIT`, `DIFY_AGENT_BINDING_FILE_DOWNLOAD_COMMAND_TIMEOUT_SECONDS` - E2B: `DIFY_AGENT_E2B_API_KEY`, `DIFY_AGENT_E2B_TEMPLATE`, `DIFY_AGENT_E2B_SHELLCTL_PORT`, `DIFY_AGENT_E2B_ACTIVE_TIMEOUT_SECONDS` - Local sandbox: `DIFY_AGENT_LOCAL_SANDBOX_ENDPOINT`, `DIFY_AGENT_LOCAL_SANDBOX_AUTH_TOKEN` - Outbound HTTP tuning: `DIFY_AGENT_OUTBOUND_HTTP_CONNECT_TIMEOUT`, `DIFY_AGENT_OUTBOUND_HTTP_READ_TIMEOUT`, `DIFY_AGENT_OUTBOUND_HTTP_WRITE_TIMEOUT`, `DIFY_AGENT_OUTBOUND_HTTP_POOL_TIMEOUT`, `DIFY_AGENT_OUTBOUND_HTTP_KEEPALIVE_EXPIRY`, `DIFY_AGENT_OUTBOUND_HTTP_MAX_CONNECTIONS`, `DIFY_AGENT_OUTBOUND_HTTP_MAX_KEEPALIVE_CONNECTIONS` - `AGENT_BACKEND_BINDING_FILE_DOWNLOAD_TIMEOUT_SECONDS`, `AGENT_BACKEND_HOME_SNAPSHOT_TIMEOUT_SECONDS` (`api/.env.example`) **Auth / security** - `TURNSTILE_SITE_KEY`, `TURNSTILE_SECRET_KEY`, `TURNSTILE_ALLOWED_HOSTNAMES`, `TURNSTILE_EMAIL_CODE_VERIFY_REQUIRED` - `EMAIL_CODE_LOGIN_MAX_ATTEMPTS`, `EMAIL_CODE_LOGIN_TOKEN_EXPIRY_MINUTES` - `KEY_PROVIDER_TYPE`, `AZURE_KEYVAULT_VAULT_URL`, `AZURE_KEYVAULT_KEY_SIZE`, `AZURE_KEYVAULT_ROTATION_INTERVAL_DAYS` **Knowledge / retrieval** - `TIDB_VECTOR_ENABLE_FULLTEXT_SEARCH`, `TIDB_ON_QDRANT_ESTIMATED_STORAGE_LIMITS_MB`, `KNOWLEDGE_UPLOAD_FILE_SIZE_LIMIT_FOR_PAID_PLAN` **Tracing / observability** - `OPS_TRACE_UNIFIED_ENABLED`, `OPS_TRACE_PARENT_CONTEXT_TTL_SECONDS` **Misc** - `ENABLE_CONVERSATION_CLEANUP_TASK`, `CONVERSATION_CLEANUP_TASK_INTERVAL`, `CONVERSATION_CLEANUP_BATCH_SIZE` - `UPLOAD_SKILL_FILE_SIZE_LIMIT`, `PLUGIN_MAX_FILE_SIZE`, `MARKDOWN_FORM_FIELD_NAME_EXTRA_CHARS` - `DEPLOYMENT_EDITION` (replaces `EDITION`, see below) ### Removed - `EDITION` → renamed to `DEPLOYMENT_EDITION` - `ENTERPRISE_ENABLED` (enterprise gating consolidated) - `AGENT_BACKEND_RUN_TIMEOUT_SECONDS` → replaced by `DIFY_AGENT_RUN_TIMEOUT_SECONDS` - `DIFY_AGENT_SHELLCTL_AUTH_TOKEN`, `DIFY_AGENT_SHELLCTL_ENTRYPOINT` (agent runtime reworked) ### Modified (default values) - `APP_MAX_EXECUTION_TIME`: `1200` → `3600` - `WORKFLOW_MAX_EXECUTION_TIME`: `1200` → `3600` - `OPS_TRACE_RETRYABLE_DISPATCH_MAX_RETRIES`: `60` → `780` - `GRAPH_ENGINE_SCALE_UP_THRESHOLD`: `3` → `0` ### Docker Compose - `docker/docker-compose.yaml` — modified - `docker/docker-compose.middleware.yaml` — modified - `docker/docker-compose.e2b.yaml` — **new** (E2B agent sandbox stack) --- ## Database Migrations This release includes new migrations (community-edition relevant): - `add_workflow_version_number` — workflow version numbering (deployment v2) - `add_oauth_provider_app_auto_authorize` — silent OAuth authorization flag - `add_conversation_cleanup_index` — supports the conversation cleanup task - `add_workspace_skill_management` — workspace-level Skill management (draft/version/publish lifecycle) - `add_agent_home_snapshot_ledger`, `make_home_snapshot_references_nullable` — agent build-time Home Snapshot ledger and nullable snapshot references - `replace_agent_runtime_sessions_with_*`, `remove_agent_drive`, `clean_legacy_agent_soul_files`, `simplify_agent_v2_output_contract` — new agent runtime No manual backfill command is required for these migrations. Run `flask db upgrade` as part of the upgrade. --- ## Upgrade Guide ### Model Type Migration > [!IMPORTANT] > > **One-time legacy model type migration for self-hosted upgrades** > > If this deployment was upgraded from a Dify version earlier than `1.15.0` and this migration has not already been applied, run it after upgrading. > > This migration is **not included in `flask db upgrade`**. Without it, legacy model records can cause model-related API requests to fail with errors, preventing affected models from being loaded or used. > > Back up the database before applying the migration. The command runs in dry-run mode by default; review the output before rerunning it with `--apply`. The migration is idempotent and can be safely rerun. #### Docker Compose Run from the `docker` directory. ```bash # Apply after reviewing the dry-run output docker compose exec -T api flask data-migrate legacy-model-types --apply \ > legacy-model-types-apply.jsonl ``` #### Source Code Deployment Run from the repository root after completing `flask db upgrade`. ```bash # Apply after reviewing the dry-run output uv run --project api flask data-migrate legacy-model-types --apply \ > legacy-model-types-apply.jsonl ``` After applying the migration, run the dry-run command again. If it reports no additional row updates or deletions, restart the relevant services and verify that existing models can be loaded and invoked successfully. > [!IMPORTANT] > - This release includes **new database migrations** — run them as part of the upgrade. > - Environment variables changed substantially (many added, edition variable **renamed** `EDITION` → `DEPLOYMENT_EDITION`, several defaults changed). Review the Environment Variable Changes section and update your `.env` accordingly. In particular, **rename `EDITION` to `DEPLOYMENT_EDITION`** if you set it. > - Docker Compose configuration changed and a new `docker-compose.e2b.yaml` was added. If you maintain a customized `docker-compose.yaml`, re-apply local customizations carefully. > - The migration `add_conversation_cleanup_index` builds index on existing data, which could take longer to execute if the `conversations` table is big. ### Docker Compose Deployments 1. Back up your customized compose and env files: ```bash cd docker cp docker-compose.yaml docker-compose.yaml.$(date +%s).bak cp .env .env.$(date +%s).bak 2>/dev/null || true ``` 2. Get the latest code: ```bash git fetch --tags git checkout main # or the target release tag once cut ``` 3. Stop services (from the `docker` directory): ```bash docker compose down ``` 4. Back up data: ```bash tar -cvf volumes-$(date +%s).tgz volumes ``` 5. Review env changes and re-apply local customizations (remember `EDITION` → `DEPLOYMENT_EDITION`). 6. Upgrade: ```bash docker compose up -d ``` ### Source Code Deployments 1. Stop the API server, Worker, and Web frontend. 2. Get the latest code: ```bash git fetch --tags git checkout main # or the target release tag once cut ``` 3. Update Python dependencies: ```bash cd api uv sync ``` 4. Run migrations: ```bash uv run flask db upgrade ``` 5. Rebuild/restart the Web frontend, then restart the API server and Worker. ## What's Changed * test: use SQLite sessions in services plugin by @asukaminato0721 in https://github.com/langgenius/dify/pull/39084 * test: separate human input unit and database paths by @escape0707 in https://github.com/langgenius/dify/pull/39655 * test: use SQLite sessions in services core by @asukaminato0721 in https://github.com/langgenius/dify/pull/39088 * test: use SQLite sessions in controllers service api by @asukaminato0721 in https://github.com/langgenius/dify/pull/39098 * test: use SQLite sessions in services core by @asukaminato0721 in https://github.com/langgenius/dify/pull/39090 * test: move message cleanup coverage to unit tests by @asukaminato0721 in https://github.com/langgenius/dify/pull/38932 * test: use sqlite3 session in test_plugin_service by @asukaminato0721 in https://github.com/langgenius/dify/pull/38727 * test: use sqlite3 session in test_wraps by @asukaminato0721 in https://github.com/langgenius/dify/pull/38770 * test: use SQLite sessions in commands by @asukaminato0721 in https://github.com/langgenius/dify/pull/39080 * test: move data source controller coverage to unit tests by @asukaminato0721 in https://github.com/langgenius/dify/pull/38924 * fix: prevent Safari from clipping the settings close button by @iamjoel in https://github.com/langgenius/dify/pull/39664 * fix: prevent the model selector footer from covering options by @iamjoel in https://github.com/langgenius/dify/pull/39668 * test: move OAuth server service coverage to unit tests by @asukaminato0721 in https://github.com/langgenius/dify/pull/38931 * fix: validate plugin installation scope by @lyzno1 in https://github.com/langgenius/dify/pull/39669 * chore: improve archived logs hint in logs list page by @hjlarry in https://github.com/langgenius/dify/pull/39659 * test: use SQLite sessions in core app by @asukaminato0721 in https://github.com/langgenius/dify/pull/39099 * test: use SQLite sessions in core datasource by @asukaminato0721 in https://github.com/langgenius/dify/pull/39104 * test: use SQLite in LangSmith traces by @asukaminato0721 in https://github.com/langgenius/dify/pull/38986 * test: move workflow app service coverage to unit tests by @asukaminato0721 in https://github.com/langgenius/dify/pull/38946 * chore(docker): remove redundant feature preview env by @laipz8200 in https://github.com/langgenius/dify/pull/39035 * test: use SQLite in Aliyun trace utilities by @asukaminato0721 in https://github.com/langgenius/dify/pull/38983 * test: use SQLite sessions in services retention by @asukaminato0721 in https://github.com/langgenius/dify/pull/39074 * test: use SQLite sessions in core rag by @asukaminato0721 in https://github.com/langgenius/dify/pull/39105 * fix: reject trailing newlines in alphanumeric() validator (#39666) by @Harsh23Kashyap in https://github.com/langgenius/dify/pull/39667 * test: use SQLite sessions in core app apps by @asukaminato0721 in https://github.com/langgenius/dify/pull/39103 * chore(i18n): sync translations with en-US by @github-actions[bot] in https://github.com/langgenius/dify/pull/39671 * test: use sqlite3 session in test_agent_app_feature_service by @asukaminato0721 in https://github.com/langgenius/dify/pull/38724 * test: use sqlite3 session in test_web_login by @asukaminato0721 in https://github.com/langgenius/dify/pull/38725 * fix: improve unconfigured agent guidance by @iamjoel in https://github.com/langgenius/dify/pull/39676 * fix: populate completion_params from model schema defaults in Agent node by @rkfshakti in https://github.com/langgenius/dify/pull/39590 * ci: wait for KnowledgeFS before deployment by @JohnJyong in https://github.com/langgenius/dify/pull/39677 * chore: bump nltk from 3.9.4 to 3.10.0 in /api by @dependabot[bot] in https://github.com/langgenius/dify/pull/39503 * feat: add missing plugin installation to agent DSL imports by @iamjoel in https://github.com/langgenius/dify/pull/39680 * ci: replace custom noqa markers with guard ignores by @escape0707 in https://github.com/langgenius/dify/pull/39679 * ci: enforce strict checks for unit tests by @escape0707 in https://github.com/langgenius/dify/pull/39682 * refactor(web): derive workspace billing from current workspace by @lyzno1 in https://github.com/langgenius/dify/pull/39674 * feat: label agent conversation reset action on hover by @iamjoel in https://github.com/langgenius/dify/pull/39691 * chore(deps): bump gitpython from 3.1.54 to 3.1.57 in /api by @wylswz in https://github.com/langgenius/dify/pull/39684 * refactor: introduce agent working environment architecture by @BeautyyuYanli in https://github.com/langgenius/dify/pull/39480 * test(e2e): align Agent tool credential states by @lyzno1 in https://github.com/langgenius/dify/pull/39698 * test: enforce strict typing in migrated unit tests by @escape0707 in https://github.com/langgenius/dify/pull/39689 * test: share unbound unit test sessions by @escape0707 in https://github.com/langgenius/dify/pull/39690 * refactor(e2e): unify seeded runtime orchestration by @lyzno1 in https://github.com/langgenius/dify/pull/39700 * chore(deps): bump starlette, soupsieve, cryptography for CVE fixes by @GareArc in https://github.com/langgenius/dify/pull/39716 * feat(agent): make home snapshots optional and use backend defaults by @BeautyyuYanli in https://github.com/langgenius/dify/pull/39702 * chore: add E2B sync and tini supervision by @BeautyyuYanli in https://github.com/langgenius/dify/pull/39705 * chore(deps): bump wandb 0.28.0 -> 0.28.1 for CVE fix attempt by @GareArc in https://github.com/langgenius/dify/pull/39718 * fix(web): gate plugin auth permission hint by @hjlarry in https://github.com/langgenius/dify/pull/39721 * refactor(web): remove workflow node useBoolean usage by @lyzno1 in https://github.com/langgenius/dify/pull/39729 * test: use sqlite3 session in test_workflow_pause_events by @asukaminato0721 in https://github.com/langgenius/dify/pull/38688 * test: use sqlite3 session in test_human_input_timeout_tasks by @asukaminato0721 in https://github.com/langgenius/dify/pull/38703 * test: use sqlite3 session in test_metadata_bug_complete by @asukaminato0721 in https://github.com/langgenius/dify/pull/38721 * test: use sqlite3 session in test_sqlalchemy_workflow_execution_repository by @asukaminato0721 in https://github.com/langgenius/dify/pull/38761 * test: use sqlite3 session in test_session by @asukaminato0721 in https://github.com/langgenius/dify/pull/38772 * test: use SQLite sessions in core tools by @asukaminato0721 in https://github.com/langgenius/dify/pull/39107 * test: use SQLite sessions in libs by @asukaminato0721 in https://github.com/langgenius/dify/pull/39089 * test: use SQLite sessions in core rag by @asukaminato0721 in https://github.com/langgenius/dify/pull/39106 * refactor(web): consolidate settings state in URL by @lyzno1 in https://github.com/langgenius/dify/pull/39740 * fix: handle unconfigured LLM workflow streams by @linw1995 in https://github.com/langgenius/dify/pull/39741 * fix: avoid returning unused vectors in TiDB on Qdrant search by @hjlarry in https://github.com/langgenius/dify/pull/39744 * fix: display workflow run errors in the result panel by @iamjoel in https://github.com/langgenius/dify/pull/39746 * refactor(web): clarify education state ownership by @lyzno1 in https://github.com/langgenius/dify/pull/39748 * fix(web): force render dialog backdrop and use dialog description in education verify modal by @lyzno1 in https://github.com/langgenius/dify/pull/39749 * test: move service dataset controller coverage to unit tests by @asukaminato0721 in https://github.com/langgenius/dify/pull/38941 * test: use SQLite sessions in core app by @asukaminato0721 in https://github.com/langgenius/dify/pull/39100 * fix(docker): mount shared storage volume in api_websocket by @dparkmit24 in https://github.com/langgenius/dify/pull/39424 * test: use SQLite in Tencent traces by @asukaminato0721 in https://github.com/langgenius/dify/pull/38988 * fix(web): show API errors when agent publishing fails by @iamjoel in https://github.com/langgenius/dify/pull/39756 * chore: paginate installed apps by @hjlarry in https://github.com/langgenius/dify/pull/39739 * test: migrate account service tests to shared SQLite by @escape0707 in https://github.com/langgenius/dify/pull/39758 * chore: canonicalize Tailwind classes by @hyoban in https://github.com/langgenius/dify/pull/39762 * fix: fix hardcode /home/dify by @fatelei in https://github.com/langgenius/dify/pull/39767 * fix(matrixone): generate ids for every document by @csurong in https://github.com/langgenius/dify/pull/39734 * fix: refactor account about dialog ownership by @lyzno1 in https://github.com/langgenius/dify/pull/39765 * fix(plugin): preserve credentials during local replacement by @zyssyz123 in https://github.com/langgenius/dify/pull/39764 * fix(socketio): omit socket_timeout from RedisManager pub/sub options by @sergioperezcheco in https://github.com/langgenius/dify/pull/39587 * fix: allow an empty Agent tools selection by @zyz619963502zyz in https://github.com/langgenius/dify/pull/39695 * fix(api): delete custom models stored with legacy model_type values by @Souravrajvi0 in https://github.com/langgenius/dify/pull/39708 * fix(web): constrain slash picker triggers by @lyzno1 in https://github.com/langgenius/dify/pull/39768 * test: use SQLite sessions in services tools by @asukaminato0721 in https://github.com/langgenius/dify/pull/39063 * test: use SQLite sessions in services data_migration by @asukaminato0721 in https://github.com/langgenius/dify/pull/39065 * test: use SQLite sessions in rag pipeline transform by @asukaminato0721 in https://github.com/langgenius/dify/pull/39050 * test: use sqlite3 session in test_completion_completion_app_generator by @asukaminato0721 in https://github.com/langgenius/dify/pull/38723 * test: use SQLite sessions in core repositories by @asukaminato0721 in https://github.com/langgenius/dify/pull/39067 * test: use SQLite sessions in core repositories by @asukaminato0721 in https://github.com/langgenius/dify/pull/39073 * test: use SQLite sessions in services workflow by @asukaminato0721 in https://github.com/langgenius/dify/pull/39091 * test: use SQLite sessions in core rag by @asukaminato0721 in https://github.com/langgenius/dify/pull/39092 * test: use SQLite sessions in controllers console app by @asukaminato0721 in https://github.com/langgenius/dify/pull/39095 * test: use SQLite sessions in controllers console app by @asukaminato0721 in https://github.com/langgenius/dify/pull/39097 * test: use SQLite sessions in core app apps by @asukaminato0721 in https://github.com/langgenius/dify/pull/39101 * test: use SQLite sessions in core app apps by @asukaminato0721 in https://github.com/langgenius/dify/pull/39102 * fix(api): prevent HITL pause from aborting workflow resume by @Success6666 in https://github.com/langgenius/dify/pull/39485 * fix: open inline agent editor from checklist warnings by @iamjoel in https://github.com/langgenius/dify/pull/39781 * test: use SQLite in Langfuse traces by @asukaminato0721 in https://github.com/langgenius/dify/pull/38985 * test: use SQLite in Opik traces by @asukaminato0721 in https://github.com/langgenius/dify/pull/38987 * test: use SQLite sessions in core tools by @asukaminato0721 in https://github.com/langgenius/dify/pull/39094 * test: move RAG pipeline import coverage to unit tests by @asukaminato0721 in https://github.com/langgenius/dify/pull/38938 * test: use sqlite3 session in test_billing by @asukaminato0721 in https://github.com/langgenius/dify/pull/38722 * test: use sqlite3 session in test_factory by @asukaminato0721 in https://github.com/langgenius/dify/pull/38731 * test: use sqlite3 session in test_trial by @asukaminato0721 in https://github.com/langgenius/dify/pull/38732 * test: use sqlite3 session in test_workflow_node_execution_truncation by @asukaminato0721 in https://github.com/langgenius/dify/pull/38734 * test: use SQLite sessions in tasks by @asukaminato0721 in https://github.com/langgenius/dify/pull/39076 * fix(workflow): provide default values for AgentNodeData fields (#39743) by @loulanyue in https://github.com/langgenius/dify/pull/39754 * refactor(web): localize model load balancing modal state by @lyzno1 in https://github.com/langgenius/dify/pull/39789 * fix(chat): derive themes per chat root by @lyzno1 in https://github.com/langgenius/dify/pull/39790 * refactor(web): localize dataset external API state by @lyzno1 in https://github.com/langgenius/dify/pull/39791 * refactor(web): remove app log drawer context by @lyzno1 in https://github.com/langgenius/dify/pull/39792 * refactor(web): internalize trigger limit modal state by @lyzno1 in https://github.com/langgenius/dify/pull/39794 * refactor(web): localize retrieval method query by @lyzno1 in https://github.com/langgenius/dify/pull/39795 * refactor(web): remove configuration mitt context by @lyzno1 in https://github.com/langgenius/dify/pull/39796 * fix(web): isolate MCP card action overlays by @Jingyi-Dify in https://github.com/langgenius/dify/pull/39797 * feat: add upload size guidance and validation for agent files and skills by @iamjoel in https://github.com/langgenius/dify/pull/39798 * refactor(web): remove dead dataset operator context state by @lyzno1 in https://github.com/langgenius/dify/pull/39800 * refactor(web): remove stale header maximize state by @lyzno1 in https://github.com/langgenius/dify/pull/39801 * refactor(web): narrow app list context by @lyzno1 in https://github.com/langgenius/dify/pull/39802 * fix(ui): align select trigger focus ring by @lyzno1 in https://github.com/langgenius/dify/pull/39804 * feat: make skill package upload size limit configurable by @linw1995 in https://github.com/langgenius/dify/pull/39799 * test: use SQLite sessions in app DSL service tests by @escape0707 in https://github.com/langgenius/dify/pull/39803 * test: use caplog for telemetry error logging by @EvanYao826 in https://github.com/langgenius/dify/pull/39722 * refactor(dify-ui): govern public component APIs by @lyzno1 in https://github.com/langgenius/dify/pull/39806 * feat: change api/v1/plugins/download to api/v1/plugins/download-url by @fatelei in https://github.com/langgenius/dify/pull/39811 * refactor(web): align Base UI composition contracts by @lyzno1 in https://github.com/langgenius/dify/pull/39820 * docs: remove trailing whitespace in docker/README.md by @xiaoyaoqilan in https://github.com/langgenius/dify/pull/39808 * chore(api): consolidate chained .where() calls into single calls by @MannXo in https://github.com/langgenius/dify/pull/39819 * test: exercise credential visibility with SQLite by @escape0707 in https://github.com/langgenius/dify/pull/39827 * fix: refresh mcp server code by app id by @zhangx1n in https://github.com/langgenius/dify/pull/39828 * docs: fix typos in api comments and prompt example by @iridescentWen in https://github.com/langgenius/dify/pull/39838 * fix(api): silence opentelemetry.context error reports to Sentry on cloud by @MRZHUH in https://github.com/langgenius/dify/pull/39841 * fix(workflow): remap snippet references by @JzoNgKVO in https://github.com/langgenius/dify/pull/39843 * feat: prioritize configured tools in the agent prompt picker by @iamjoel in https://github.com/langgenius/dify/pull/39850 * fix(web): skip auth validation for local file datasource by @hjlarry in https://github.com/langgenius/dify/pull/39856 * fix(web): hide prompt log action in agent v2 logs by @lyzno1 in https://github.com/langgenius/dify/pull/39858 * refactor(ui): simplify scroll area API by @lyzno1 in https://github.com/langgenius/dify/pull/39857 * test: use SQLite sessions in services agent by @asukaminato0721 in https://github.com/langgenius/dify/pull/39054 * test: use SQLite sessions in core rag by @asukaminato0721 in https://github.com/langgenius/dify/pull/39055 * test: use SQLite sessions in core ops by @asukaminato0721 in https://github.com/langgenius/dify/pull/39062 * test: use SQLite sessions in core tools by @asukaminato0721 in https://github.com/langgenius/dify/pull/39068 * test: use SQLite sessions in core llm_generator by @asukaminato0721 in https://github.com/langgenius/dify/pull/39070 * test: use SQLite sessions in core repositories by @asukaminato0721 in https://github.com/langgenius/dify/pull/39078 * test: use SQLite sessions in core callback_handler by @asukaminato0721 in https://github.com/langgenius/dify/pull/39081 * test: use SQLite sessions in core workflow by @asukaminato0721 in https://github.com/langgenius/dify/pull/39086 * test: use SQLite sessions in services workflow by @asukaminato0721 in https://github.com/langgenius/dify/pull/39087 * fix(rag): add bounded timeout to Firecrawl extractor requests by @superdiaodiao in https://github.com/langgenius/dify/pull/39831 * fix(rag): add bounded timeout to Notion extractor requests by @superdiaodiao in https://github.com/langgenius/dify/pull/39833 * fix(auth): add bounded timeout to WaterCrawl credential validation by @superdiaodiao in https://github.com/langgenius/dify/pull/39824 * fix(web): align secondary sidebar help trigger by @lyzno1 in https://github.com/langgenius/dify/pull/39862 * fix(api): scope segment batch deletes by @WH-2099 in https://github.com/langgenius/dify/pull/38217 * chore(api): fix typos in config description and comment by @zyz619963502zyz in https://github.com/langgenius/dify/pull/39870 * fix(api): bound billing service HTTP timeouts (#39874) by @Harsh23Kashyap in https://github.com/langgenius/dify/pull/39875 * refactor(web): align Base UI state consumers by @lyzno1 in https://github.com/langgenius/dify/pull/39864 * fix(api): prevent cookies from shadowing admin API keys by @kenwoodjw in https://github.com/langgenius/dify/pull/39872 * fix(matrixone): apply score threshold to vector search by @csurong in https://github.com/langgenius/dify/pull/39784 * fix(api): bound JinaReader and adaptive-crawl HTTP timeouts (#39859) by @Harsh23Kashyap in https://github.com/langgenius/dify/pull/39860 * fix(api): make SSRF-blocked error message actionable by @Taranum01 in https://github.com/langgenius/dify/pull/39867 * test(web): remove Base UI component mocks by @lyzno1 in https://github.com/langgenius/dify/pull/39877 * perf(dataset): fix N+1 database insert bottleneck in Notion sync by @HassanRady in https://github.com/langgenius/dify/pull/39899 * fix(vdb-oceanbase): reject trailing newlines in metadata-key and document-id validators (#39884) by @Harsh23Kashyap in https://github.com/langgenius/dify/pull/39901 * feat(workflow): support human input in loop and iteration by @laipz8200 in https://github.com/langgenius/dify/pull/39243 * chore(deps): bump the github-actions-dependencies group with 2 updates by @dependabot[bot] in https://github.com/langgenius/dify/pull/39909 * chore: pass session explicitly in ApiModeration by @HandSonic in https://github.com/langgenius/dify/pull/39885 * fix(web): clarify member permission exception copy by @WTW0313 in https://github.com/langgenius/dify/pull/39917 * chore: keep dify-agent env same with dify by @fatelei in https://github.com/langgenius/dify/pull/39918 * fix(api): stop echoing the raw api_key in the 403 error message (#39888) by @Harsh23Kashyap in https://github.com/langgenius/dify/pull/39902 * fix(dify-agent): stabilize E2B config materialization by @zhaohao1004 in https://github.com/langgenius/dify/pull/39873 * chore: bump pyrefly version by @asukaminato0721 in https://github.com/langgenius/dify/pull/39876 * feat: pass image file to llm by @fatelei in https://github.com/langgenius/dify/pull/39848 * fix: keep colons in HTTP node form body values on migration by @weijun-xia in https://github.com/langgenius/dify/pull/38861 * fix(dify-agent): atomically finalize run terminals by @zhaohao1004 in https://github.com/langgenius/dify/pull/39929 * fix(web): improve home accessibility by @lyzno1 in https://github.com/langgenius/dify/pull/39938 * fix(web): remove Web Apps loading skeleton by @lyzno1 in https://github.com/langgenius/dify/pull/39939 * test: use SQLite sessions in web controller fixtures by @asukaminato0721 in https://github.com/langgenius/dify/pull/39052 * test: use SQLite sessions in rag pipeline dsl by @asukaminato0721 in https://github.com/langgenius/dify/pull/39053 * test: use SQLite sessions in controllers service api by @asukaminato0721 in https://github.com/langgenius/dify/pull/39059 * test: use SQLite sessions in controllers console explore by @asukaminato0721 in https://github.com/langgenius/dify/pull/39064 * test: use SQLite sessions in core test_provider_manager.py by @asukaminato0721 in https://github.com/langgenius/dify/pull/39071 * test: use SQLite sessions in core app apps by @asukaminato0721 in https://github.com/langgenius/dify/pull/39079 * fix(web): improve main navigation responsiveness and tour focus by @lyzno1 in https://github.com/langgenius/dify/pull/39940 * perf(web): streaming ssr for home page by @lyzno1 in https://github.com/langgenius/dify/pull/39922 * fix(api): bump OpenTelemetry to stop duplicate Flask context detach by @GareArc in https://github.com/langgenius/dify/pull/39921 * fix(api): validate installation scope for cached marketplace packages by @GareArc in https://github.com/langgenius/dify/pull/39935 * feat(api): isolate credentials from local packages by @linw1995 in https://github.com/langgenius/dify/pull/39957 * chore(deps): bump cryptography from 49.0.0 to 50.0.0 in /dify-agent by @dependabot[bot] in https://github.com/langgenius/dify/pull/39958 * fix(dify-agent): keep tmux server alive without sessions by @BeautyyuYanli in https://github.com/langgenius/dify/pull/39943 * fix(dify-agent): make run cancellation route-independent by @BeautyyuYanli in https://github.com/langgenius/dify/pull/39942 * chore(deps): bump aiohttp from 3.14.1 to 3.14.3 in /api by @dependabot[bot] in https://github.com/langgenius/dify/pull/39959 * fix(vdb): bound the TiDB Cloud API timeouts by @he-yufeng in https://github.com/langgenius/dify/pull/39953 * chore(deps): bump the vdb group with 9 updates by @dependabot[bot] in https://github.com/langgenius/dify/pull/39911 * refactor(workflow): move AgentNode events out of graphon by @laipz8200 in https://github.com/langgenius/dify/pull/39845 * chore(web): upgrade Next.js to 16.3 by @lyzno1 in https://github.com/langgenius/dify/pull/39962 * fix(api): allow external knowledge base creation under enterprise RBAC by @GareArc in https://github.com/langgenius/dify/pull/39930 * fix(dify-ui): improve select and status dot accessibility by @lyzno1 in https://github.com/langgenius/dify/pull/39971 * chore(docker): move optional settings to service envs by @laipz8200 in https://github.com/langgenius/dify/pull/39970 * feat(workflow): support LLM environment variables by @laipz8200 in https://github.com/langgenius/dify/pull/39125 * fix: align build and preview chat layouts by @iamjoel in https://github.com/langgenius/dify/pull/39980 * fix(workflow): avoid app context dependency in parallel iteration by @hjlarry in https://github.com/langgenius/dify/pull/39983 * fix(api): surface system quota exhaustion without fallback by @linw1995 in https://github.com/langgenius/dify/pull/39986 * fix(ui): align button spacing with design by @lyzno1 in https://github.com/langgenius/dify/pull/39990 * test: use sqlite3 session in test_if_else by @asukaminato0721 in https://github.com/langgenius/dify/pull/38753 * test: use sqlite3 session in test_qa_index_processor by @asukaminato0721 in https://github.com/langgenius/dify/pull/38765 * chore(api): remove unreachable match suppressions by @nightcityblade in https://github.com/langgenius/dify/pull/39949 * feat(agent): separate CLI file URL audiences by @BeautyyuYanli in https://github.com/langgenius/dify/pull/39952 * fix(agent): expose feedback in agent logs by @zyssyz123 in https://github.com/langgenius/dify/pull/39994 * fix(e2e): configure sandbox-reachable API URL by @lyzno1 in https://github.com/langgenius/dify/pull/40005 * refactor(api): extract workspace list into layered application service by @41tair in https://github.com/langgenius/dify/pull/39822 * fix(web): preserve feedback state on submission failure by @lyzno1 in https://github.com/langgenius/dify/pull/40004 * test: use SQLite in Arize Phoenix traces by @asukaminato0721 in https://github.com/langgenius/dify/pull/38984 * chore(deps): upgrade Base UI to 1.7.0 by @lyzno1 in https://github.com/langgenius/dify/pull/40006 * fix(ci): harden Playwright browser installs by @lyzno1 in https://github.com/langgenius/dify/pull/40009 * fix(ci): make web workflows reproducible by @lyzno1 in https://github.com/langgenius/dify/pull/40010 * chore: add copy action to workflow log errors by @iamjoel in https://github.com/langgenius/dify/pull/40011 * refactor(web): simplify tag selector trigger by @lyzno1 in https://github.com/langgenius/dify/pull/40014 * refactor(web): remove duplicate dataset title update by @lyzno1 in https://github.com/langgenius/dify/pull/40023 * fix(web): remove misleading ARIA states by @lyzno1 in https://github.com/langgenius/dify/pull/40015 * refactor(web): align query client ownership by @lyzno1 in https://github.com/langgenius/dify/pull/40024 * refactor(web): derive system feature enums from schemas by @lyzno1 in https://github.com/langgenius/dify/pull/40030 * test: use sqlite3 session in test_credit_pool_service by @asukaminato0721 in https://github.com/langgenius/dify/pull/38694 * test: use sqlite3 session in test_agent_config_service by @asukaminato0721 in https://github.com/langgenius/dify/pull/38764 * fix(web): improve debug plugin copy accessibility by @linw1995 in https://github.com/langgenius/dify/pull/40035 * test: use real ORM models in RAG indexing tests by @asukaminato0721 in https://github.com/langgenius/dify/pull/40017 * fix(dify-agent): wait for E2B shellctl readiness by @BeautyyuYanli in https://github.com/langgenius/dify/pull/39996 * fix(web): refresh model provider plugins after updates by @Jingyi-Dify in https://github.com/langgenius/dify/pull/40002 * fix(web): redirect legacy plugin fallbacks by @Jingyi-Dify in https://github.com/langgenius/dify/pull/40051 * refactor(api): extract workspace member listing into layered service by @escape0707 in https://github.com/langgenius/dify/pull/39974 * fix: make document retry batches consistent by @csurong in https://github.com/langgenius/dify/pull/39978 * fix: preserve UTF-8 byte size for text uploads by @pineapple880066 in https://github.com/langgenius/dify/pull/40034 * chore: more upload file size for paid user by @hjlarry in https://github.com/langgenius/dify/pull/39967 * fix(api): allow account avatars across workspaces by @CodeWarriors0 in https://github.com/langgenius/dify/pull/40055 * test: use SQLite sessions in core tools by @asukaminato0721 in https://github.com/langgenius/dify/pull/39108 * test: use real ORM models in workflow repository tests by @asukaminato0721 in https://github.com/langgenius/dify/pull/40019 * test: use SQLite sessions in services core by @asukaminato0721 in https://github.com/langgenius/dify/pull/39058 * fix: offset legacy app error toasts below model controls by @iamjoel in https://github.com/langgenius/dify/pull/40040 * test: use real ORM models in dataset service tests by @asukaminato0721 in https://github.com/langgenius/dify/pull/40018 * fix: hide log detail actions for legacy app logs by @iamjoel in https://github.com/langgenius/dify/pull/40057 * test: use real ORM models in app and API tests by @asukaminato0721 in https://github.com/langgenius/dify/pull/40020 * test: use SQLite sessions in core app apps by @asukaminato0721 in https://github.com/langgenius/dify/pull/39083 * test: move webhook service coverage to unit tests by @asukaminato0721 in https://github.com/langgenius/dify/pull/38945 * test: use SQLite sessions in clean dataset by @asukaminato0721 in https://github.com/langgenius/dify/pull/39051 * refactor(system-features): derive nullable SSO protocol by @lyzno1 in https://github.com/langgenius/dify/pull/40063 * test: use SQLite sessions in core entities by @asukaminato0721 in https://github.com/langgenius/dify/pull/39056 * test: use SQLite sessions in controllers console auth by @asukaminato0721 in https://github.com/langgenius/dify/pull/39060 * test: use SQLite sessions in commands by @asukaminato0721 in https://github.com/langgenius/dify/pull/39082 * test: use SQLite sessions in controllers console app by @asukaminato0721 in https://github.com/langgenius/dify/pull/39096 * fix(web): improve markdown form rendering by @WTW0313 in https://github.com/langgenius/dify/pull/40070 * test: use SQLite sessions in core repositories by @asukaminato0721 in https://github.com/langgenius/dify/pull/39061 * feat(trace-aliyun): GenAI spans for LLM TTFT, agent ReAct, tools, and failed LLM nodes by @123liuziming in https://github.com/langgenius/dify/pull/39339 * chore: upgrade workspace dependencies by @lyzno1 in https://github.com/langgenius/dify/pull/40069 * fix(e2e): align marketplace plugin download URL by @lyzno1 in https://github.com/langgenius/dify/pull/40075 * fix(web): only open slash variable picker when / is typed (#39755) by @Souravrajvi0 in https://github.com/langgenius/dify/pull/39761 * chore: format GitHub metadata with Oxfmt by @lyzno1 in https://github.com/langgenius/dify/pull/40073 * fix: get role and list role need filter billing permission key by @fatelei in https://github.com/langgenius/dify/pull/38218 * fix(web): register audio listeners on real media events by @eldardada in https://github.com/langgenius/dify/pull/37841 * feat: Add Lao (lo-LA) language support #39489 by @bounkirdni-2025 in https://github.com/langgenius/dify/pull/39474 * feat: support TiDB Vector full-text and hybrid search by @bkidy in https://github.com/langgenius/dify/pull/38112 * chore(web): remove obsolete PWA assets by @lyzno1 in https://github.com/langgenius/dify/pull/40082 * fix: report unavailable agent tools in publish and workflow checks by @iamjoel in https://github.com/langgenius/dify/pull/40077 * chore(i18n): sync translations with en-US by @github-actions[bot] in https://github.com/langgenius/dify/pull/40096 * chore: remove obsolete development docs by @lyzno1 in https://github.com/langgenius/dify/pull/40098 * test: use sqlite3 session in test_external_dataset_service by @asukaminato0721 in https://github.com/langgenius/dify/pull/38696 * test: use SQLite sessions in datasource files by @asukaminato0721 in https://github.com/langgenius/dify/pull/39048 * fix(ci): switch Playwright jobs to Azure Ubuntu mirror by @lyzno1 in https://github.com/langgenius/dify/pull/40100 * revert(web): remove redundant slash picker intent tracking by @lyzno1 in https://github.com/langgenius/dify/pull/40103 * fix(dify-agent): end SSE streams on terminal events by @BeautyyuYanli in https://github.com/langgenius/dify/pull/40042 * fix(dify-agent): align agent and shell execution limits by @BeautyyuYanli in https://github.com/langgenius/dify/pull/40043 * fix: gate Agent access until first publish by @zyssyz123 in https://github.com/langgenius/dify/pull/40105 * feat: support azure keyvault by @wylswz in https://github.com/langgenius/dify/pull/39933 * refactor(api): decouple console queries through application services by @41tair in https://github.com/langgenius/dify/pull/40031 * test(e2e): align duplicate Agent publish state by @lyzno1 in https://github.com/langgenius/dify/pull/40108 * feat: optimize integrations initial loading by @Jingyi-Dify in https://github.com/langgenius/dify/pull/40118 * refactor(web): modernize Studio app list data flow by @lyzno1 in https://github.com/langgenius/dify/pull/40109 * feat: make the console license expiry badge optional by @GareArc in https://github.com/langgenius/dify/pull/39972 * chore: improve current workspace summary by @hjlarry in https://github.com/langgenius/dify/pull/40121 * fix(web): enforce frame ancestors on protected routes by @lyzno1 in https://github.com/langgenius/dify/pull/40124 * test: use sqlite sessions at generation boundaries by @asukaminato0721 in https://github.com/langgenius/dify/pull/40095 * test: migrate document indexing task sessions to SQLite by @asukaminato0721 in https://github.com/langgenius/dify/pull/40092 * test: migrate console app sessions to SQLite by @asukaminato0721 in https://github.com/langgenius/dify/pull/40081 * refactor(api): move license expiry notice flag onto license detail by @GareArc in https://github.com/langgenius/dify/pull/40128 * fix(web): scope hidden outlines to focus-visible by @lyzno1 in https://github.com/langgenius/dify/pull/40130 * refactor(web): simplify billing portal link by @lyzno1 in https://github.com/langgenius/dify/pull/40131 * docs: Fixes Star History chart by @Mubelotix in https://github.com/langgenius/dify/pull/40115 * refactor(web): localize education status query by @lyzno1 in https://github.com/langgenius/dify/pull/40132 * chore: bump plugin daemon image by @hjlarry in https://github.com/langgenius/dify/pull/40134 * refactor(dify-agent): make config pulls direct and remove gRPC by @BeautyyuYanli in https://github.com/langgenius/dify/pull/40044 * chore: use multi-arch plugin daemon image tag by @hjlarry in https://github.com/langgenius/dify/pull/40139 * chore(web): add dedicated home loading boundary by @lyzno1 in https://github.com/langgenius/dify/pull/40135 * perf(web): prefetch app links on intent by @lyzno1 in https://github.com/langgenius/dify/pull/40133 * fix: show inline agent build draft change details by @iamjoel in https://github.com/langgenius/dify/pull/40140 * chore: dep inject for model in notification dismiss by @likalikali in https://github.com/langgenius/dify/pull/40146 * fix(api): scope temporary capabilities to owners by @WH-2099 in https://github.com/langgenius/dify/pull/39863 * chore(web): remove unreachable explore sidebar by @lyzno1 in https://github.com/langgenius/dify/pull/40136 * fix: improve readability of DSL import warnings by @iamjoel in https://github.com/langgenius/dify/pull/40148 * chore(i18n): sync translations with en-US by @github-actions[bot] in https://github.com/langgenius/dify/pull/40150 * feat: support accessibility checks in CI by @iamjoel in https://github.com/langgenius/dify/pull/40137 * feat(dify-agent): propagate run limit error types by @BeautyyuYanli in https://github.com/langgenius/dify/pull/40116 * chore: dep inject for model in datasets document and web human input … by @likalikali in https://github.com/langgenius/dify/pull/40151 * chore: dep inject for model in oauth server by @likalikali in https://github.com/langgenius/dify/pull/40147 * chore: dep inject for model in api based extension by @likalikali in https://github.com/langgenius/dify/pull/40154 * chore: dep inject for model in website crawl api by @likalikali in https://github.com/langgenius/dify/pull/40156 * chore: dep inject for model in tags, mcp server, and data source auth by @likalikali in https://github.com/langgenius/dify/pull/40159 * chore: dep inject for model in workflow run archive download by @likalikali in https://github.com/langgenius/dify/pull/40157 * chore: dep inject for model in onboarding step by step tour by @likalikali in https://github.com/langgenius/dify/pull/40155 * chore: dep inject for model in workspace snippets, load balancing, and endpoint by @likalikali in https://github.com/langgenius/dify/pull/40161 * chore: dep inject for model in agent app sandbox upload by @likalikali in https://github.com/langgenius/dify/pull/40153 * refactor(dify-agent): download Binding files through Agent Stub by @BeautyyuYanli in https://github.com/langgenius/dify/pull/40143 * revert(web): use suspense boundary in home page by @lyzno1 in https://github.com/langgenius/dify/pull/40167 * chore: dep inject for model in explore apis by @likalikali in https://github.com/langgenius/dify/pull/40160 * chore: dep inject for model in explore workflow run by @likalikali in https://github.com/langgenius/dify/pull/40158 * refactor: replace manual model_validate with @model_validate decorator in app controllers by @likalikali in https://github.com/langgenius/dify/pull/40170 * fix(agent-v2): accept composer UI ids on manual metadata filter conditions by @chelsealong in https://github.com/langgenius/dify/pull/40171 * refactor(api): decouple setup and spec endpoints by @41tair in https://github.com/langgenius/dify/pull/40104 * test: move RAG pipeline workflow coverage to unit tests by @asukaminato0721 in https://github.com/langgenius/dify/pull/38937 * chore: Remove redundant dataset context string conversions by @medisean in https://github.com/langgenius/dify/pull/40189 * fix(workflow): fall back when default socket is unavailable by @hjlarry in https://github.com/langgenius/dify/pull/40191 * refactor: replace manual model_validate with @model_validate in agent controllers by @likalikali in https://github.com/langgenius/dify/pull/40233 * refactor: replace manual model_validate with @model_validate in workspace plugin/tool controllers by @likalikali in https://github.com/langgenius/dify/pull/40238 * refactor: replace manual model_validate with @model_validate in auth/billing/tag controllers by @likalikali in https://github.com/langgenius/dify/pull/40240 * refactor: replace manual model_validate with @model_validate in explore/snippets controllers by @likalikali in https://github.com/langgenius/dify/pull/40241 * refactor: replace manual model_validate with @model_validate in app core controllers by @likalikali in https://github.com/langgenius/dify/pull/40234 * refactor: replace manual model_validate with @model_validate in app workflow controllers by @likalikali in https://github.com/langgenius/dify/pull/40235 * refactor: replace manual model_validate with @model_validate in rag_pipeline controllers by @likalikali in https://github.com/langgenius/dify/pull/40237 * refactor: replace manual model_validate with @model_validate in workspace remaining controllers by @likalikali in https://github.com/langgenius/dify/pull/40239 * refactor: replace manual model_validate with @model_validate in datasets controllers by @likalikali in https://github.com/langgenius/dify/pull/40236 * fix(agent): preserve plugin-declared model parameters through Agent Soul by @chelsealong in https://github.com/langgenius/dify/pull/40163 * fix(web): hide credential icons from assistive tech by @lyzno1 in https://github.com/langgenius/dify/pull/40376 * fix(web): associate app deletion confirmation label by @lyzno1 in https://github.com/langgenius/dify/pull/40375 * fix(web): remove workflow output title tab stop by @lyzno1 in https://github.com/langgenius/dify/pull/40377 * test: Type test by @asukaminato0721 in https://github.com/langgenius/dify/pull/40371 * refactor(web): unify infinite scroll sentinels by @lyzno1 in https://github.com/langgenius/dify/pull/40188 * fix(web): use primary headings on auth pages by @lyzno1 in https://github.com/langgenius/dify/pull/40192 * fix(web): use a primary heading on the install page by @lyzno1 in https://github.com/langgenius/dify/pull/40194 * fix(web): use a button for the webapp fallback action by @lyzno1 in https://github.com/langgenius/dify/pull/40197 * fix(web): use a button for unauthorized logout by @lyzno1 in https://github.com/langgenius/dify/pull/40198 * feat(api): cache remote recommended app template fetches by @Souravrajvi0 in https://github.com/langgenius/dify/pull/40176 * fix(web): name chat settings triggers by @lyzno1 in https://github.com/langgenius/dify/pull/40341 * fix(web): use button for tool detail toggle by @lyzno1 in https://github.com/langgenius/dify/pull/40349 * fix(web): hide citation measurement items from assistive tech by @lyzno1 in https://github.com/langgenius/dify/pull/40203 * fix(web): name chat history controls by @lyzno1 in https://github.com/langgenius/dify/pull/40344 * fix(web): name workflow debug actions by @lyzno1 in https://github.com/langgenius/dify/pull/40273 * fix(web): restore webapp password form submission by @lyzno1 in https://github.com/langgenius/dify/pull/40222 * fix(web): use button for chat variable panel close by @lyzno1 in https://github.com/langgenius/dify/pull/40333 * fix(web): make the human input expander a button by @lyzno1 in https://github.com/langgenius/dify/pull/40202 * fix(web): make the member selector keyboard accessible by @lyzno1 in https://github.com/langgenius/dify/pull/40209 * fix(web): make the scroll-to-node action a button by @lyzno1 in https://github.com/langgenius/dify/pull/40214 * fix(web): restore webapp email code form submission by @lyzno1 in https://github.com/langgenius/dify/pull/40227 * fix(web): restore the signup email focus order by @lyzno1 in https://github.com/langgenius/dify/pull/40230 * fix(web): expose the voice recording timer by @lyzno1 in https://github.com/langgenius/dify/pull/40205 * fix(web): name conversation menu triggers by @lyzno1 in https://github.com/langgenius/dify/pull/40253 * refactor(web): keep copy id events on the button by @lyzno1 in https://github.com/langgenius/dify/pull/40247 * fix(web): name dataset configuration actions by @lyzno1 in https://github.com/langgenius/dify/pull/40254 * fix(web): name annotation configuration action by @lyzno1 in https://github.com/langgenius/dify/pull/40255 * fix(web): make dataset sidebar menu items buttons by @lyzno1 in https://github.com/langgenius/dify/pull/40248 * fix(web): name annotation reply actions by @lyzno1 in https://github.com/langgenius/dify/pull/40270 * fix(web): name saved item actions by @lyzno1 in https://github.com/langgenius/dify/pull/40256 * fix(web): name workflow version history action by @lyzno1 in https://github.com/langgenius/dify/pull/40276 * fix(web): name snippet stop action by @lyzno1 in https://github.com/langgenius/dify/pull/40278 * fix(web): expose debug toolbar semantics by @lyzno1 in https://github.com/langgenius/dify/pull/40258 * fix(web): name human input delete action by @lyzno1 in https://github.com/langgenius/dify/pull/40293 * fix(web): name image previewer actions by @lyzno1 in https://github.com/langgenius/dify/pull/40283 * fix(web): expose workflow parallel toggle state by @lyzno1 in https://github.com/langgenius/dify/pull/40282 * fix(web): name variable inspect close actions by @lyzno1 in https://github.com/langgenius/dify/pull/40289 * fix(web): name agent log navigation menu by @lyzno1 in https://github.com/langgenius/dify/pull/40286 * fix(web): name code generator action by @lyzno1 in https://github.com/langgenius/dify/pull/40324 * fix(web): name external retrieval close action by @lyzno1 in https://github.com/langgenius/dify/pull/40317 * fix(web): name human input preview close by @lyzno1 in https://github.com/langgenius/dify/pull/40321 * fix(web): expose SVG preview toggle state by @lyzno1 in https://github.com/langgenius/dify/pull/40332 * fix(web): name prompt generator action by @lyzno1 in https://github.com/langgenius/dify/pull/40328 * refactor(web): rely on QR panel containment by @lyzno1 in https://github.com/langgenius/dify/pull/40352 * fix(web): name assigner add operation by @lyzno1 in https://github.com/langgenius/dify/pull/40337 * fix(web): use buttons for plugin type switch by @lyzno1 in https://github.com/langgenius/dify/pull/40353 * fix(web): use buttons for pricing categories by @lyzno1 in https://github.com/langgenius/dify/pull/40360 * fix(web): use button for provider tool item by @lyzno1 in https://github.com/langgenius/dify/pull/40362 * refactor(web): rely on preview dialog containment by @lyzno1 in https://github.com/langgenius/dify/pull/40363 * fix(web): use button for publisher access by @lyzno1 in https://github.com/langgenius/dify/pull/40361 * fix(web): use primary headings on password reset pages by @lyzno1 in https://github.com/langgenius/dify/pull/40193 * fix(web): make the citation toggle a button by @lyzno1 in https://github.com/langgenius/dify/pull/40204 * fix(web): name the snippet info menu trigger by @lyzno1 in https://github.com/langgenius/dify/pull/40251 * fix(web): name the plugin debug trigger by @lyzno1 in https://github.com/langgenius/dify/pull/40252 * chore: example to rm db.session by @asukaminato0721 in https://github.com/langgenius/dify/pull/40370 * fix(web): name generated result copy action by @lyzno1 in https://github.com/langgenius/dify/pull/40259 * fix(web): make verification back actions keyboard accessible by @lyzno1 in https://github.com/langgenius/dify/pull/40196 * fix(web): name OAuth redirect copy action by @lyzno1 in https://github.com/langgenius/dify/pull/40303 * fix(web): name plugin item actions by @lyzno1 in https://github.com/langgenius/dify/pull/40261 * fix(web): name plugin detail close action by @lyzno1 in https://github.com/langgenius/dify/pull/40264 * fix(web): name external API panel close by @lyzno1 in https://github.com/langgenius/dify/pull/40309 * fix(web): name external API modal close by @lyzno1 in https://github.com/langgenius/dify/pull/40313 * chore(deps): bump the github-actions-dependencies group with 2 updates by @dependabot[bot] in https://github.com/langgenius/dify/pull/40391 * fix(api): end_date filter in feedback export excludes the entire end date by @agarwalpranav0711 in https://github.com/langgenius/dify/pull/40114 * fix: catch ValueError instead of bare except in account CLI commands by @chelsealong in https://github.com/langgenius/dify/pull/40356 * fix(web): name MCP header fields by @lyzno1 in https://github.com/langgenius/dify/pull/40299 * fix(web): make tool category filters keyboard accessible by @lyzno1 in https://github.com/langgenius/dify/pull/40243 * fix(web): use buttons for version filters by @lyzno1 in https://github.com/langgenius/dify/pull/40357 * chore(deps): bump pymdown-extensions from 11.0 to 11.0.1 in /dify-agent by @dependabot[bot] in https://github.com/langgenius/dify/pull/40183 * chore(deps): bump gitpython from 3.1.57 to 3.1.58 in /api by @dependabot[bot] in https://github.com/langgenius/dify/pull/40184 * fix(web): allow unlimited text input in trial apps by @hjlarry in https://github.com/langgenius/dify/pull/40403 * fix(web): expose chat variable tips state by @lyzno1 in https://github.com/langgenius/dify/pull/40334 * docs(web): add Next.js agent rules by @lyzno1 in https://github.com/langgenius/dify/pull/40398 * chore: tighten education verification and pause discount access by @iamjoel in https://github.com/langgenius/dify/pull/40402 * fix(web): name MCP header delete actions by @lyzno1 in https://github.com/langgenius/dify/pull/40300 * fix(web): name external API card actions by @lyzno1 in https://github.com/langgenius/dify/pull/40304 * fix(web): name secret key delete action by @lyzno1 in https://github.com/langgenius/dify/pull/40297 * fix(web): use button for workflow debug close by @lyzno1 in https://github.com/langgenius/dify/pull/40274 * fix(web): name endpoint card actions by @lyzno1 in https://github.com/langgenius/dify/pull/40260 * fix(web): make suggested questions native buttons by @lyzno1 in https://github.com/langgenius/dify/pull/40200 * refactor(web): migrate webapp password fields to dify ui by @lyzno1 in https://github.com/langgenius/dify/pull/40223 * fix(web): name the webapp password visibility action by @lyzno1 in https://github.com/langgenius/dify/pull/40225 * refactor(api): extract explore banner query service by @hjlarry in https://github.com/langgenius/dify/pull/40053 * test: migrate RAG index sessions to SQLite by @asukaminato0721 in https://github.com/langgenius/dify/pull/40080 * refactor(api): merge ping and version endpoints into system by @41tair in https://github.com/langgenius/dify/pull/40058 * test: migrate core app sessions to SQLite by @asukaminato0721 in https://github.com/langgenius/dify/pull/40084 * feat: add tool plugin param type date and date-picker by @zyqzyq in https://github.com/langgenius/dify/pull/36163 * fix: widen agent orchestration chat on large displays by @iamjoel in https://github.com/langgenius/dify/pull/40433 * chore(i18n): sync translations with en-US by @github-actions[bot] in https://github.com/langgenius/dify/pull/40435 * docs(web): clarify ref mutation ownership by @lyzno1 in https://github.com/langgenius/dify/pull/40426 * fix(web): keep shared ref updates out of render by @lyzno1 in https://github.com/langgenius/dify/pull/40427 * refactor(workflow): align standalone node execution layers by @linw1995 in https://github.com/langgenius/dify/pull/40447 * fix(web): keep workflow ref updates out of render by @lyzno1 in https://github.com/langgenius/dify/pull/40428 * chore: suppress pyrefly necessary conversions by @tusharmotwani1718 in https://github.com/langgenius/dify/pull/40444 * fix(docker): use dynamic DNS resolution for all nginx upstreams by @kanson1996 in https://github.com/langgenius/dify/pull/39155 * fix(web): keep agent ref updates out of render by @lyzno1 in https://github.com/langgenius/dify/pull/40429 * fix: _multiple_retrieve_thread not fail fast by @fatelei in https://github.com/langgenius/dify/pull/40466 * test: use sqlite sessions in rag pipeline coverage by @asukaminato0721 in https://github.com/langgenius/dify/pull/40093 * test: migrate dataset indexing task sessions to SQLite by @asukaminato0721 in https://github.com/langgenius/dify/pull/40091 * test: migrate app service sessions to SQLite by @asukaminato0721 in https://github.com/langgenius/dify/pull/40088 * fix: split sandbox files into saved and temporary tabs by @iamjoel in https://github.com/langgenius/dify/pull/40478 * test: migrate core RAG sessions to SQLite by @asukaminato0721 in https://github.com/langgenius/dify/pull/40085 * test: migrate retention and task sessions to SQLite by @asukaminato0721 in https://github.com/langgenius/dify/pull/40090 * fix: show a persistent toast for agent run timeouts by @iamjoel in https://github.com/langgenius/dify/pull/40486 * fix(web): preserve workflow canvas after history updates by @lyzno1 in https://github.com/langgenius/dify/pull/40489 * refactor(api): consolidate deployment edition handling by @41tair in https://github.com/langgenius/dify/pull/40142 * refactor(web): read app profile from query cache by @lyzno1 in https://github.com/langgenius/dify/pull/40467 * chore: bump cryptography, pypdf, h2 for CVE fixes by @wylswz in https://github.com/langgenius/dify/pull/40409 * fix(web): make legacy Home redirect permanent by @lyzno1 in https://github.com/langgenius/dify/pull/40492 * fix: add zh_Hans labels for builtin Audio provider and its tools by @zrh805 in https://github.com/langgenius/dify/pull/40408 * test: migrate controller sessions to SQLite by @asukaminato0721 in https://github.com/langgenius/dify/pull/40083 * refactor(web): read dataset profile from query cache by @lyzno1 in https://github.com/langgenius/dify/pull/40468 * test: migrate snippet and vector sessions to SQLite by @asukaminato0721 in https://github.com/langgenius/dify/pull/40089 * refactor(web): read workflow profile from query cache by @lyzno1 in https://github.com/langgenius/dify/pull/40469 * fix: improve agent working directory tab labels and tooltips by @iamjoel in https://github.com/langgenius/dify/pull/40496 * refactor(web): move education verification to dedicated routes by @lyzno1 in https://github.com/langgenius/dify/pull/40493 * refactor(web): read account profile from query cache by @lyzno1 in https://github.com/langgenius/dify/pull/40470 * chore: increase nofile ulimit for qdrant container by @typenoob in https://github.com/langgenius/dify/pull/40480 * refactor(web): read plugin profile from query cache by @lyzno1 in https://github.com/langgenius/dify/pull/40471 * refactor(web): align education autocomplete async behavior by @lyzno1 in https://github.com/langgenius/dify/pull/40500 * fix(api): bind dataset operations to owners by @WH-2099 in https://github.com/langgenius/dify/pull/40149 * feat: app deployment v2 by @WTW0313 in https://github.com/langgenius/dify/pull/39829 * refactor(web): sync amplitude from profile query by @lyzno1 in https://github.com/langgenius/dify/pull/40472 * refactor(web): sync zendesk from profile query by @lyzno1 in https://github.com/langgenius/dify/pull/40473 * feat: add trunstile by @zyssyz123 in https://github.com/langgenius/dify/pull/40494 * chore(i18n): sync translations with en-US by @github-actions[bot] in https://github.com/langgenius/dify/pull/40546 * fix(web): improve app deployment v2 accessibility by @WTW0313 in https://github.com/langgenius/dify/pull/40550 * refactor(web): remove profile bootstrap atom layer by @lyzno1 in https://github.com/langgenius/dify/pull/40474 * fix(agent-v2): stop dropping non-vision attachments from agent chat by @chelsealong in https://github.com/langgenius/dify/pull/40179 * feat(web): add multimodal retrieval guidance for Knowledge embedding models by @CyberPU2099 in https://github.com/langgenius/dify/pull/40566 * chore: add Docker configuration for the Turnstile site key by @iamjoel in https://github.com/langgenius/dify/pull/40569 * fix(api): bind remaining RAG resources to owners by @WH-2099 in https://github.com/langgenius/dify/pull/40503 * fix: restrict app deploy to explicit enterprise permission by @zhangx1n in https://github.com/langgenius/dify/pull/40564 * test: migrate agent app sandbox sessions and ORM models to SQLite by @asukaminato0721 in https://github.com/langgenius/dify/pull/40568 * fix(web): restore app deletion autofill and knowledge scope label by @crazywoola in https://github.com/langgenius/dify/pull/40583 * fix(web): render workspace plan badge during SSR by @lyzno1 in https://github.com/langgenius/dify/pull/40581 * chore(i18n): sync translations with en-US by @github-actions[bot] in https://github.com/langgenius/dify/pull/40573 * test(web): remove brittle publisher lock test by @lyzno1 in https://github.com/langgenius/dify/pull/40592 * refactor(api): extract init validation into layered application service by @41tair in https://github.com/langgenius/dify/pull/40046 * refactor(web): remove deprecated deployments pages by @WTW0313 in https://github.com/langgenius/dify/pull/40593 * fix: fix create dataset with document miss rbac operation by @fatelei in https://github.com/langgenius/dify/pull/40599 * fix(rbac): grant member policies when a dataset is opened to the work… by @BenjaminX in https://github.com/langgenius/dify/pull/39735 * fix: enforce API key list permissions by @WH-2099 in https://github.com/langgenius/dify/pull/40516 * fix: meter hosted LLM invocations by @linw1995 in https://github.com/langgenius/dify/pull/40589 * feat(ui): add icon button primitive by @lyzno1 in https://github.com/langgenius/dify/pull/40616 * refactor(ui): adopt icon button in close controls by @lyzno1 in https://github.com/langgenius/dify/pull/40617 * refactor(web): migrate shared icon commands by @lyzno1 in https://github.com/langgenius/dify/pull/40620 * refactor(web): migrate domain icon commands by @lyzno1 in https://github.com/langgenius/dify/pull/40621 * feat(ui): expose base toggle composition by @lyzno1 in https://github.com/langgenius/dify/pull/40622 * test: migrate API workflow pause ORM models to real entities by @asukaminato0721 in https://github.com/langgenius/dify/pull/40669 * fix: hide knowledge retrieval from Agent V2 configuration by @iamjoel in https://github.com/langgenius/dify/pull/40679 * test: migrate residual ORM model stand-ins to real mappings by @asukaminato0721 in https://github.com/langgenius/dify/pull/40666 * test: migrate residual dataset and archive ORM models by @asukaminato0721 in https://github.com/langgenius/dify/pull/40668 * test: migrate residual session factories to shared SQLite by @asukaminato0721 in https://github.com/langgenius/dify/pull/40665 * test: migrate workflow variable ORM model to real entity by @asukaminato0721 in https://github.com/langgenius/dify/pull/40664 * fix(ops): keep the path of self-hosted LangSmith and Weave endpoints by @GareArc in https://github.com/langgenius/dify/pull/40584 * fix: update Agent advanced settings copy by @iamjoel in https://github.com/langgenius/dify/pull/40682 * fix(ci): always report required style checks by @lyzno1 in https://github.com/langgenius/dify/pull/40684 * fix(e2e): skip hidden Agent knowledge E2E scenarios by @iamjoel in https://github.com/langgenius/dify/pull/40691 * test: migrate OpenTelemetry ORM identities to real models by @asukaminato0721 in https://github.com/langgenius/dify/pull/40663 * test: migrate RAG dataset ORM contracts to real models by @asukaminato0721 in https://github.com/langgenius/dify/pull/40662 * test: migrate residual controller ORM identities to real models by @asukaminato0721 in https://github.com/langgenius/dify/pull/40661 * test: migrate reranker upload-file sessions and ORM models to SQLite by @asukaminato0721 in https://github.com/langgenius/dify/pull/40659 * test: migrate app runner transaction sessions and ORM models to SQLite by @asukaminato0721 in https://github.com/langgenius/dify/pull/40660 * test: migrate workflow tool-file ORM model to real entity by @asukaminato0721 in https://github.com/langgenius/dify/pull/40658 * test: migrate workflow node trace ORM models to real entities by @asukaminato0721 in https://github.com/langgenius/dify/pull/40657 * test: migrate conversation lifecycle sessions and ORM models to SQLite by @asukaminato0721 in https://github.com/langgenius/dify/pull/40656 * fix(api): decouple response listeners from execution lifecycle by @zyssyz123 in https://github.com/langgenius/dify/pull/39813 * fix(agent): propagate resource collection failures by @BeautyyuYanli in https://github.com/langgenius/dify/pull/40697 * fix(ci): prevent false failures from superseded runs by @lyzno1 in https://github.com/langgenius/dify/pull/40699 * refactor: resolve summary models through manager by @linw1995 in https://github.com/langgenius/dify/pull/40696 * chore: remove scope selection from the agent environment editor by @iamjoel in https://github.com/langgenius/dify/pull/40701 * refactor(web): migrate semantic icon controls by @lyzno1 in https://github.com/langgenius/dify/pull/40624 * refactor(web): migrate app icon commands by @lyzno1 in https://github.com/langgenius/dify/pull/40646 * refactor(web): migrate dataset icon commands by @lyzno1 in https://github.com/langgenius/dify/pull/40647 * refactor(web): migrate plugin icon commands by @lyzno1 in https://github.com/langgenius/dify/pull/40648 * refactor(web): migrate workflow icon commands by @lyzno1 in https://github.com/langgenius/dify/pull/40649 * refactor(web): migrate help menu icon trigger by @lyzno1 in https://github.com/langgenius/dify/pull/40650 * refactor(web): remove legacy action button references by @lyzno1 in https://github.com/langgenius/dify/pull/40651 * refactor(web): migrate app card icon controls by @lyzno1 in https://github.com/langgenius/dify/pull/40652 * fix(agent): normalize plugin provider identities by @BeautyyuYanli in https://github.com/langgenius/dify/pull/40619 * fix: prevent cross-tab chat conversation switching by @iamjoel in https://github.com/langgenius/dify/pull/40709 * fix(dify-ui): refine pagination navigation semantics by @lyzno1 in https://github.com/langgenius/dify/pull/40723 * refactor(ui): enforce single-choice segmented controls by @lyzno1 in https://github.com/langgenius/dify/pull/40726 * refactor: generalize hosted model quota lifecycle by @linw1995 in https://github.com/langgenius/dify/pull/40722 * fix(agent): meter internal LLM calls through API by @zyssyz123 in https://github.com/langgenius/dify/pull/40613 * fix(api): chain original exception in 13 except blocks per PEP 3134 by @Harsh23Kashyap in https://github.com/langgenius/dify/pull/40738 * fix(api): remove unsafe Bedrock test endpoint by @WH-2099 in https://github.com/langgenius/dify/pull/40742 * refactor(web): clarify model selector trigger ownership by @lyzno1 in https://github.com/langgenius/dify/pull/40732 * chore(deps): bump wandb to 0.28.2 (go-git, grpc, x/text, Go stdlib CVEs) by @GareArc in https://github.com/langgenius/dify/pull/40753 * feat(web): embed marketplace in integration categories by @Jingyi-Dify in https://github.com/langgenius/dify/pull/40744 * refactor: resolve completion model via manager by @linw1995 in https://github.com/langgenius/dify/pull/40756 * fix: add semantic document titles across pages by @iamjoel in https://github.com/langgenius/dify/pull/40396 * docs(web): consolidate maintainer guidance by @lyzno1 in https://github.com/langgenius/dify/pull/40758 * fix(api): enforce edit and RBAC permissions on dataset API key GET endpoint (#40740) by @agarwalpranav0711 in https://github.com/langgenius/dify/pull/40743 * fix(agent): authenticate agent control plane by @WH-2099 in https://github.com/langgenius/dify/pull/40737 * chore: upgrade Vite+ to 0.2.9 by @lyzno1 in https://github.com/langgenius/dify/pull/40762 * fix(web): skip lifecycle scripts in Docker install by @lyzno1 in https://github.com/langgenius/dify/pull/40763 * test: migrate app service accounts and commit failures to real ORM by @asukaminato0721 in https://github.com/langgenius/dify/pull/40655 * test: migrate annotation controller ORM models to real entities by @asukaminato0721 in https://github.com/langgenius/dify/pull/40643 * test: migrate load balancing account ORM model to real entity by @asukaminato0721 in https://github.com/langgenius/dify/pull/40644 * test: migrate expired log workflow ORM models to real entities by @asukaminato0721 in https://github.com/langgenius/dify/pull/40645 * test: migrate agent drive end-user ORM models to real entities by @asukaminato0721 in https://github.com/langgenius/dify/pull/40654 * test: migrate trace workflow run ORM model to real entity by @asukaminato0721 in https://github.com/langgenius/dify/pull/40642 * test: migrate OpenAPI and tool-file ORM entities by @asukaminato0721 in https://github.com/langgenius/dify/pull/40637 * test: migrate web controller identity ORM models to real entities by @asukaminato0721 in https://github.com/langgenius/dify/pull/40639 * feat(workflow-generator): prefer installed tools by @crazywoola in https://github.com/langgenius/dify/pull/40611 * test: migrate workflow event ORM models to real entities by @asukaminato0721 in https://github.com/langgenius/dify/pull/40634 * chore: update workspace dependencies by @lyzno1 in https://github.com/langgenius/dify/pull/40764 * chore(deps): bump pydantic-ai-slim from 1.102.0 to 1.106.0 in /dify-agent by @dependabot[bot] in https://github.com/langgenius/dify/pull/40736 * chore: reopen the education application flow by @iamjoel in https://github.com/langgenius/dify/pull/40760 * fix(dify-agent): clarify shell working spaces by @BeautyyuYanli in https://github.com/langgenius/dify/pull/40623 * fix: handle long text URLs in webscraper by @linw1995 in https://github.com/langgenius/dify/pull/40757 * fix: preserve file preview content type by @myshkin451 in https://github.com/langgenius/dify/pull/37211 * fix(dify-ui): refine segmented control focus feedback by @lyzno1 in https://github.com/langgenius/dify/pull/40769 * feat(dify-agent): expand and enforce agent run limits by @BeautyyuYanli in https://github.com/langgenius/dify/pull/40641 * test: migrate account tenant ORM stand-ins to SQLite by @asukaminato0721 in https://github.com/langgenius/dify/pull/40627 * test: migrate residual namespace ORM entities to real models by @asukaminato0721 in https://github.com/langgenius/dify/pull/40633 * test: migrate controller identity ORM models to SQLite by @asukaminato0721 in https://github.com/langgenius/dify/pull/40626 * test: migrate workflow tool users to SQLite ORM models by @asukaminato0721 in https://github.com/langgenius/dify/pull/40628 * test: migrate RAG residual entities to real ORM models by @asukaminato0721 in https://github.com/langgenius/dify/pull/40629 * fix(agent): return conflict for duplicate creation by @zyssyz123 in https://github.com/langgenius/dify/pull/40771 * fix: preserve successful last run status after page restore by @iamjoel in https://github.com/langgenius/dify/pull/40775 * fix(ci): align staged checks with Vite+ by @lyzno1 in https://github.com/langgenius/dify/pull/40774 * refactor(api): extract installed app definition queries by @hjlarry in https://github.com/langgenius/dify/pull/40462 * refactor(api): reuse app definition queries in web and service APIs by @hjlarry in https://github.com/langgenius/dify/pull/40463 * refactor(api): reuse app definition queries for app parameters by @hjlarry in https://github.com/langgenius/dify/pull/40465 * refactor(api): reuse app definition queries for service API info by @hjlarry in https://github.com/langgenius/dify/pull/40476 * fix(api): enforce RAG draft variable access boundaries by @WH-2099 in https://github.com/langgenius/dify/pull/40745 * fix: show accurate copy for agent run limit errors by @iamjoel in https://github.com/langgenius/dify/pull/40784 * feat(oauth): drive silent authorization from oauth_provider_apps.auto_authorize by @lin-snow in https://github.com/langgenius/dify/pull/40783 * fix(api): protect custom OAuth client deletion by @WH-2099 in https://github.com/langgenius/dify/pull/40786 * chore: dep inject for model in dataset document actions by @ddddajie in https://github.com/langgenius/dify/pull/40787 * fix(api): point SSRF-blocked error message at the correct dify issue by @chelsealong in https://github.com/langgenius/dify/pull/40605 * test(api): make session decorator path assertion platform-agnostic by @AlexMultiAgent in https://github.com/langgenius/dify/pull/39895 * refactor: add Mapped type annotations to model fields (#40373) by @mahbubsouad in https://github.com/langgenius/dify/pull/40380 * fix(api): protect workspace credential mutations by @WH-2099 in https://github.com/langgenius/dify/pull/40790 * fix(api): protect agent sandbox reads by @WH-2099 in https://github.com/langgenius/dify/pull/40794 * fix: reclaim conversation resources on deletion by @zyssyz123 in https://github.com/langgenius/dify/pull/40792 * fix: replace bare except with except Exception in core agent, storage and vector backends by @TrueFurina in https://github.com/langgenius/dify/pull/40801 * refactor(controllers/web): dep-inject payloads with @model_validate by @a-yeyang in https://github.com/langgenius/dify/pull/40796 * fix: narrow bare except in storage exists() to ClientError by @zrh805 in https://github.com/langgenius/dify/pull/40420 * fix(extension): chain original exception in APIBasedExtensionRequestor per PEP 3134 by @Harsh23Kashyap in https://github.com/langgenius/dify/pull/40810 * test: migrate residual user ORM stand-ins to real models by @asukaminato0721 in https://github.com/langgenius/dify/pull/40625 * test: migrate file controller ORM models to real entities by @asukaminato0721 in https://github.com/langgenius/dify/pull/40632 * test: migrate agent surface sessions and ORM models to SQLite by @asukaminato0721 in https://github.com/langgenius/dify/pull/40602 * test: migrate annotation security sessions and ORM models to SQLite by @asukaminato0721 in https://github.com/langgenius/dify/pull/40604 * test: migrate RAG processor residuals to SQLite ORM models by @asukaminato0721 in https://github.com/langgenius/dify/pull/40608 * docs: fix pipeline_generator docstrings to reference pipeline instead of app_model by @mesrop2008 in https://github.com/langgenius/dify/pull/40813 * test: migrate agent controller sessions and ORM models to SQLite by @asukaminato0721 in https://github.com/langgenius/dify/pull/40600 * test: migrate residual controller sessions and ORM models to SQLite by @asukaminato0721 in https://github.com/langgenius/dify/pull/40606 * fix(api): support audio/x-m4a for ASR by @CodeMak1r-zy in https://github.com/langgenius/dify/pull/40776 * fix(web): align combobox interaction semantics by @lyzno1 in https://github.com/langgenius/dify/pull/40826 * feat(plugin-auth): visibility picker for OAuth credentials by @ForeignKeyCN in https://github.com/langgenius/dify/pull/39840 * chore(deps): bump the github-actions-dependencies group with 2 updates by @dependabot[bot] in https://github.com/langgenius/dify/pull/40834 * refactor(controllers/web): dep-inject login and forgot-password payloads (#36659) by @weike-zhang in https://github.com/langgenius/dify/pull/40856 * feat(ci): sync E2B template on release tag push by @MRZHUH in https://github.com/langgenius/dify/pull/40858 * fix(web): let multimodal guidance height fit content by @CyberPU2099 in https://github.com/langgenius/dify/pull/40846 * fix(web): update agent model request limit copy by @lyzno1 in https://github.com/langgenius/dify/pull/40863 * test(e2e): align agent model selector locators by @lyzno1 in https://github.com/langgenius/dify/pull/40862 * fix(workflow): preserve historical Agent node compatibility by @zyssyz123 in https://github.com/langgenius/dify/pull/40859 * fix(dify-agent): require E2B traffic authentication by @BeautyyuYanli in https://github.com/langgenius/dify/pull/40871 * feat: create accounts with client IP by @linw1995 in https://github.com/langgenius/dify/pull/40875 * feat(dify-agent): add context-aware history compaction by @BeautyyuYanli in https://github.com/langgenius/dify/pull/40872 * fix(dify-agent): preserve snapshots for failed and cancelled runs by @BeautyyuYanli in https://github.com/langgenius/dify/pull/40876 * feat: dispatch New Agent Beta eligibility checks by @hjlarry in https://github.com/langgenius/dify/pull/40725 * fix(dify-agent): enforce short-lived Agent Stub authorization by @BeautyyuYanli in https://github.com/langgenius/dify/pull/40884 * feat(dify-agent): enforce signed upload size limits by @BeautyyuYanli in https://github.com/langgenius/dify/pull/40883 * test: migrate console conversation sessions and ORM models to SQLite by @asukaminato0721 in https://github.com/langgenius/dify/pull/40528 * test: migrate controller auth wrapper sessions and ORM models to SQLite by @asukaminato0721 in https://github.com/langgenius/dify/pull/40529 * test: migrate console app MCP sessions and ORM models to SQLite by @asukaminato0721 in https://github.com/langgenius/dify/pull/40526 * test: migrate console workflow controller sessions and ORM models to SQLite by @asukaminato0721 in https://github.com/langgenius/dify/pull/40527 * test: migrate Service API dataset document sessions and ORM models to SQLite by @asukaminato0721 in https://github.com/langgenius/dify/pull/40519 * test: migrate Service API dataset metadata sessions and ORM models to SQLite by @asukaminato0721 in https://github.com/langgenius/dify/pull/40518 * test: migrate RAG pipeline sessions and ORM models to SQLite by @asukaminato0721 in https://github.com/langgenius/dify/pull/40511 * test: migrate RAG indexing sessions and ORM models to SQLite by @asukaminato0721 in https://github.com/langgenius/dify/pull/40513 * test: isolate config inputs from process environment by @asukaminato0721 in https://github.com/langgenius/dify/pull/40847 * fix: suggest deepseek-v4-flash for Agent mode by @BlessedWithLuck1105 in https://github.com/langgenius/dify/pull/40852 * refactor(dify-ui): expose autocomplete popup anatomy by @lyzno1 in https://github.com/langgenius/dify/pull/40895 * feat(dify-ui): add input group composition by @lyzno1 in https://github.com/langgenius/dify/pull/40890 * fix(api): repair two malformed logger format strings by @amogh-nagri-11 in https://github.com/langgenius/dify/pull/40901 * fix(api): clear stale cancellation signals when resuming a paused workflow by @mesrop2008 in https://github.com/langgenius/dify/pull/40905 * fix(ci): use default Ubuntu mirror for Playwright by @lyzno1 in https://github.com/langgenius/dify/pull/40909 * fix(dify-agent): use E2B traffic access header by @BeautyyuYanli in https://github.com/langgenius/dify/pull/40891 * fix(dify-agent): isolate cancellation intent observer by @BeautyyuYanli in https://github.com/langgenius/dify/pull/40896 * chore(dify-agent): disable Landlock for E2B templates by @BeautyyuYanli in https://github.com/langgenius/dify/pull/40892 * fix(api): bound connect phase to 5.0s in two api/core/ outbound timeouts by @Harsh23Kashyap in https://github.com/langgenius/dify/pull/40807 * refactor(web): standardize app log search inputs by @lyzno1 in https://github.com/langgenius/dify/pull/40912 * refactor(web): standardize dataset search inputs by @lyzno1 in https://github.com/langgenius/dify/pull/40913 * refactor(web): standardize label search inputs by @lyzno1 in https://github.com/langgenius/dify/pull/40914 * test(dify-ui): stabilize dropdown menu story by @lyzno1 in https://github.com/langgenius/dify/pull/40916 * fix: accept legacy plugin daemon list responses by @Zenine in https://github.com/langgenius/dify/pull/38265 * refactor(api): decouple data source API key auth flow by @41tair in https://github.com/langgenius/dify/pull/40452 * refactor(api): extract account activation application service by @41tair in https://github.com/langgenius/dify/pull/40421 * fix: preserve Agent tool-generated file outputs by @zyssyz123 in https://github.com/langgenius/dify/pull/40917 * refactor(web): compose search prefixes with input group by @lyzno1 in https://github.com/langgenius/dify/pull/40922 * chore(deps): bump sqlparse from 0.5.4 to 0.6.0 in /api by @dependabot[bot] in https://github.com/langgenius/dify/pull/40904 * refactor(models): dep-inject Session on remaining @property accessors by @a-yeyang in https://github.com/langgenius/dify/pull/40797 * refactor(web): migrate retry units to number field by @lyzno1 in https://github.com/langgenius/dify/pull/40923 * refactor(web): migrate clearable search inputs by @lyzno1 in https://github.com/langgenius/dify/pull/40924 * refactor(web): remove legacy tag component by @lyzno1 in https://github.com/langgenius/dify/pull/40928 * fix(ci): align Oxlint suppression formatting by @lyzno1 in https://github.com/langgenius/dify/pull/40934 * refactor(web): remove legacy embedded API docs by @lyzno1 in https://github.com/langgenius/dify/pull/40929 * test: use typed config overrides in service coverage by @asukaminato0721 in https://github.com/langgenius/dify/pull/40848 * test: keep integration config overrides typed by @asukaminato0721 in https://github.com/langgenius/dify/pull/40850 * test: centralize enterprise config overrides by @asukaminato0721 in https://github.com/langgenius/dify/pull/40853 * test: scope plugin and datasource config overrides by @asukaminato0721 in https://github.com/langgenius/dify/pull/40854 * test: eliminate remaining whole config mocks by @asukaminato0721 in https://github.com/langgenius/dify/pull/40855 * test: migrate app model sessions and ORM models to SQLite by @asukaminato0721 in https://github.com/langgenius/dify/pull/40530 * test: migrate residual model sessions and ORM models to SQLite by @asukaminato0721 in https://github.com/langgenius/dify/pull/40531 * test: migrate service boundary sessions and ORM models to SQLite by @asukaminato0721 in https://github.com/langgenius/dify/pull/40533 * test: migrate telemetry and core entity ORM models to SQLite by @asukaminato0721 in https://github.com/langgenius/dify/pull/40574 * test: migrate residual service and task ORM models to SQLite by @asukaminato0721 in https://github.com/langgenius/dify/pull/40576 * test: migrate residual controller sessions and ORM models to SQLite by @asukaminato0721 in https://github.com/langgenius/dify/pull/40579 * test: migrate agent runtime sessions and ORM models to SQLite by @asukaminato0721 in https://github.com/langgenius/dify/pull/40587 * test: migrate app runtime sessions and ORM models to SQLite by @asukaminato0721 in https://github.com/langgenius/dify/pull/40590 * fix(web): gate system features requests by connection by @lyzno1 in https://github.com/langgenius/dify/pull/40939 * test: migrate dataset service sessions and ORM models to SQLite by @asukaminato0721 in https://github.com/langgenius/dify/pull/40534 * fix(agent): retain usage for incomplete runs by @zyssyz123 in https://github.com/langgenius/dify/pull/40937 * chore(web): align browser support targets by @lyzno1 in https://github.com/langgenius/dify/pull/40938 * fix(web): remove only-me resource access option by @WTW0313 in https://github.com/langgenius/dify/pull/40956 * refactor: clean away unnecessary-type-conversion (bool/str no-op wrappers) by @akamabu in https://github.com/langgenius/dify/pull/40822 * fix: refine access point copy and remove undeploy state warning by @RiskeyL in https://github.com/langgenius/dify/pull/40886 * refactor(web): simplify debounced filter state by @lyzno1 in https://github.com/langgenius/dify/pull/40951 * refactor(web): compose reset password fields by @lyzno1 in https://github.com/langgenius/dify/pull/40952 * refactor(web): migrate HTTP timeout inputs by @lyzno1 in https://github.com/langgenius/dify/pull/40953 * refactor(agent): remove Agent Drive by @BeautyyuYanli in https://github.com/langgenius/dify/pull/40887 * fix(api): enforce edit and RBAC permissions on model provider credential GET endpoints (#40899) by @agarwalpranav0711 in https://github.com/langgenius/dify/pull/40900 * fix(auth): harden email code login verification by @zyssyz123 in https://github.com/langgenius/dify/pull/40960 * refactor(api): reuse app definition queries for service API site by @hjlarry in https://github.com/langgenius/dify/pull/40795 * fix(agent): resolve suggested questions from runtime config by @zyssyz123 in https://github.com/langgenius/dify/pull/40963 * fix(ui): stabilize toast stack interactions by @lyzno1 in https://github.com/langgenius/dify/pull/40970 * refactor(api): extract web app access queries by @hjlarry in https://github.com/langgenius/dify/pull/40482 * refactor(api): snapshot explore banner feature flag by @hjlarry in https://github.com/langgenius/dify/pull/40555 * fix(dify-agent): persist interrupted run history by @BeautyyuYanli in https://github.com/langgenius/dify/pull/40972 * perf(dify-agent): parallelize Agent Stub config pulls by @BeautyyuYanli in https://github.com/langgenius/dify/pull/40973 * fix(web): prevent workflow errors after app deletion by @lyzno1 in https://github.com/langgenius/dify/pull/40977 * fix(ui): align toast swipe direction with viewport by @lyzno1 in https://github.com/langgenius/dify/pull/40980 * refactor(api): reuse web app access queries for permissions by @hjlarry in https://github.com/langgenius/dify/pull/40984 * fix(ci): run Playwright E2E on GitHub Ubuntu by @WH-2099 in https://github.com/langgenius/dify/pull/40986 * fix(logstore): normalize workflow timestamps to naive UTC by @amogh-nagri-11 in https://github.com/langgenius/dify/pull/40947 * fix(api): enforce dataset document ownership by @linw1995 in https://github.com/langgenius/dify/pull/40989 * refactor(web): migrate signup email field by @lyzno1 in https://github.com/langgenius/dify/pull/40990 * refactor(web): migrate signup password fields by @lyzno1 in https://github.com/langgenius/dify/pull/40991 * fix(web): redirect after deleting an agent by @lyzno1 in https://github.com/langgenius/dify/pull/40994 * ci(web): run browser tests on GitHub Ubuntu by @lyzno1 in https://github.com/langgenius/dify/pull/40995 * refactor(api): add account profile application service by @41tair in https://github.com/langgenius/dify/pull/40436 * refactor(api): extract web app runtime bootstrap by @hjlarry in https://github.com/langgenius/dify/pull/40949 * test: migrate document service sessions and ORM models to SQLite by @asukaminato0721 in https://github.com/langgenius/dify/pull/40536 * test: migrate Explore controller sessions and ORM models to SQLite by @asukaminato0721 in https://github.com/langgenius/dify/pull/40537 * test: migrate media and execution service sessions and ORM models to SQLite by @asukaminato0721 in https://github.com/langgenius/dify/pull/40552 * test: migrate snippet service ORM models to SQLite by @asukaminato0721 in https://github.com/langgenius/dify/pull/40567 * refactor(web): migrate install account fields by @lyzno1 in https://github.com/langgenius/dify/pull/40992 * refactor: consolidate frontend browser test infrastructure by @lyzno1 in https://github.com/langgenius/dify/pull/40997 * fix(web): clarify agent deletion consequences by @lyzno1 in https://github.com/langgenius/dify/pull/41002 * chore: inline custom ESLint rules by @hyoban in https://github.com/langgenius/dify/pull/41008 * fix(billing): remove misleading tax assurance by @lyzno1 in https://github.com/langgenius/dify/pull/41009 * fix(snippets): implement delete for published snippet workflow versions by @chelsealong in https://github.com/langgenius/dify/pull/41003 * fix(agent): complete ownership-aware deletion lifecycle by @BeautyyuYanli in https://github.com/langgenius/dify/pull/40888 * fix(api): handle suspended email domains by @linw1995 in https://github.com/langgenius/dify/pull/41004 * refactor(api): extract recommended app query service by @hjlarry in https://github.com/langgenius/dify/pull/40207 * fix(snippet): support snippet history version export by @FFXN in https://github.com/langgenius/dify/pull/41012 * fix(api): enforce admin and RBAC permissions on tool OAuth custom client GET endpoint (#40944) by @agarwalpranav0711 in https://github.com/langgenius/dify/pull/40945 * fix(dify-agent): adjust local sandbox home paths by @BeautyyuYanli in https://github.com/langgenius/dify/pull/41021 * fix(dify-agent): add reliable shellctl stdio mode by @BeautyyuYanli in https://github.com/langgenius/dify/pull/39997 * refactor(dify-agent): use Workspace as shell temp space by @BeautyyuYanli in https://github.com/langgenius/dify/pull/41023 * fix(agent): clean legacy Agent Soul files by @BeautyyuYanli in https://github.com/langgenius/dify/pull/41024 * fix(api): add missing admin and RBAC permission decorators to model credentials GET endpoints by @FasihUrRahman in https://github.com/langgenius/dify/pull/40962 * refactor(api): decouple console tag management by @fszcd in https://github.com/langgenius/dify/pull/40843 * refactor(api): isolate trial app usage writes by @hjlarry in https://github.com/langgenius/dify/pull/40208 * refactor(api): decouple recommended app runtime admission by @hjlarry in https://github.com/langgenius/dify/pull/40257 * refactor(api): replace legacy recommended app retrieval stack by @hjlarry in https://github.com/langgenius/dify/pull/40395 * feat: support ODT document extraction by @Zenine in https://github.com/langgenius/dify/pull/39973 * test: centralize typed runtime config overrides by @asukaminato0721 in https://github.com/langgenius/dify/pull/40857 * refactor(web): migrate conversation rename input by @lyzno1 in https://github.com/langgenius/dify/pull/41028 * refactor(web): migrate document rename input by @lyzno1 in https://github.com/langgenius/dify/pull/41029 * refactor(web): migrate empty dataset input by @lyzno1 in https://github.com/langgenius/dify/pull/41030 * fix: add MESSAGE_TRACE task on chat pipline error events by @hyhyf in https://github.com/langgenius/dify/pull/39129 * chore(deps): bump google-cloud-aiplatform from 1.160.0 to 1.164.0 in /api in the google group across 1 directory by @dependabot[bot] in https://github.com/langgenius/dify/pull/39249 * chore(deps): bump the storage group across 1 directory with 2 updates by @dependabot[bot] in https://github.com/langgenius/dify/pull/40393 * fix: when rbac enabled is true, not check_dataset_permission by @fatelei in https://github.com/langgenius/dify/pull/41022 * fix(agent): align Binding file upload timeouts by @zhaohao1004 in https://github.com/langgenius/dify/pull/41027 * fix(api): enforce app-scoped access on indirect resources by @WH-2099 in https://github.com/langgenius/dify/pull/40893 * fix(web): route enterprise documentation links by @hyoban in https://github.com/langgenius/dify/pull/40957 * fix(api): enforce edit and RBAC permissions on datasource credential …fix(api): enforce edit and RBAC permissions on datasource credential GET endpoint (#41040) by @agarwalpranav0711 in https://github.com/langgenius/dify/pull/41041 * fix(plugin): protect endpoint listings by @WH-2099 in https://github.com/langgenius/dify/pull/40897 * docs(dify-ui): establish documentation hierarchy by @lyzno1 in https://github.com/langgenius/dify/pull/41044 * refactor(dify-ui): expose slider anatomy by @lyzno1 in https://github.com/langgenius/dify/pull/41045 * fix(api): prevent dropped workflow_started events in Redis Streams by @zl86790 in https://github.com/langgenius/dify/pull/40964 * refactor(api): move account access behind application services by @41tair in https://github.com/langgenius/dify/pull/40437 * test: migrate annotation sessions and ORM models to SQLite by @asukaminato0721 in https://github.com/langgenius/dify/pull/40504 * test: add tmp_path type by @asukaminato0721 in https://github.com/langgenius/dify/pull/40724 * test: migrate vector space admission sessions and ORM models to SQLite by @asukaminato0721 in https://github.com/langgenius/dify/pull/40640 * test: migrate Agent App session store to SQLite ORM by @asukaminato0721 in https://github.com/langgenius/dify/pull/40638 * test: migrate remaining controller sessions and ORM models to SQLite by @asukaminato0721 in https://github.com/langgenius/dify/pull/40538 * test: migrate console app sessions and ORM models to SQLite by @asukaminato0721 in https://github.com/langgenius/dify/pull/40559 * fix: merge system messages and place them first to comply with Qwen/v… by @potoior in https://github.com/langgenius/dify/pull/39136 * test: migrate auth and access controller ORM models to SQLite by @asukaminato0721 in https://github.com/langgenius/dify/pull/40572 * refactor(web): migrate human input timeout field by @lyzno1 in https://github.com/langgenius/dify/pull/41050 * refactor(web): migrate subscription confirmation input by @lyzno1 in https://github.com/langgenius/dify/pull/41051 * refactor(web): migrate external API input fields by @lyzno1 in https://github.com/langgenius/dify/pull/41052 * test: migrate console agent skill ORM models to SQLite by @asukaminato0721 in https://github.com/langgenius/dify/pull/40570 * test: migrate console dataset segment sessions and ORM models to SQLite by @asukaminato0721 in https://github.com/langgenius/dify/pull/40515 * test: migrate residual app generator ORM models to SQLite by @asukaminato0721 in https://github.com/langgenius/dify/pull/40580 * refactor(api): move account lifecycle into application services by @41tair in https://github.com/langgenius/dify/pull/40438 * docs: add Sealos deployment option by @yangchuansheng in https://github.com/langgenius/dify/pull/41026 * refactor(api): extract change email state machine by @41tair in https://github.com/langgenius/dify/pull/40439 * refactor(api): finish account controller application boundary by @41tair in https://github.com/langgenius/dify/pull/40440 * fix(web): prevent Safari clipping tour recovery prompt by @lyzno1 in https://github.com/langgenius/dify/pull/41060 * fix: add missing metrics back and enhance typing by @wylswz in https://github.com/langgenius/dify/pull/40935 * refactor(dify-ui): compose dialog close controls by @lyzno1 in https://github.com/langgenius/dify/pull/41064 * fix(vdb): add document_id keyword mapping and fix VectorType in elasticsearch-ja adapter by @loulanyue in https://github.com/langgenius/dify/pull/40400 * fix(web): prevent signin page content from overflowing on mobile by @gegemeimingzi in https://github.com/langgenius/dify/pull/40921 * feat: Enterprise Home Snapshot — runtime endpoints and dify-agent adapter by @GareArc in https://github.com/langgenius/dify/pull/40996 * fix(api): attach exc_info=True to logger.warning sites that drop the traceback by @mesrop2008 in https://github.com/langgenius/dify/pull/41068 * feat(trace): add provider-neutral unified tracing by @Blackoutta in https://github.com/langgenius/dify/pull/39451 * refactor(agent): simplify Agent v2 output contract by @BeautyyuYanli in https://github.com/langgenius/dify/pull/41062 * refactor(dify-ui): simplify popover content API by @lyzno1 in https://github.com/langgenius/dify/pull/41069 * fix(api): enforce admin and RBAC permissions on data source integrates GET endpoint (#41079) by @agarwalpranav0711 in https://github.com/langgenius/dify/pull/41080 * refactor(dify-ui): simplify overlay content APIs by @lyzno1 in https://github.com/langgenius/dify/pull/41098 * fix(api): enforce admin and RBAC permissions on default model and provider models GET endpoints (#41099) by @agarwalpranav0711 in https://github.com/langgenius/dify/pull/41100 * refactor(dify-ui): rename radio family entrypoint by @lyzno1 in https://github.com/langgenius/dify/pull/41104 * fix(agent-v2): prevent workflow refresh render loop by @lyzno1 in https://github.com/langgenius/dify/pull/41105 * docs: fix dead anchors in localized READMEs and stale dify-agent link by @simpleqt in https://github.com/langgenius/dify/pull/41101 * refactor(api): standardize console billing portal errors by @hjlarry in https://github.com/langgenius/dify/pull/41055 * fix(agent): avoid empty Bedrock schema fields by @ump45nose in https://github.com/langgenius/dify/pull/40443 * refactor(api): standardize session factory wiring by @hjlarry in https://github.com/langgenius/dify/pull/41085 * fix(workflow): honor stop between non-streaming nodes by @leilei3167 in https://github.com/langgenius/dify/pull/41090 * refactor(web): use shared session factory for JWT decoding by @XIIRUAN in https://github.com/langgenius/dify/pull/41007 * chore(deps): bump the github-actions-dependencies group with 4 updates by @dependabot[bot] in https://github.com/langgenius/dify/pull/41120 * refactor: pass session to workflow comment account accessors by @ddddajie in https://github.com/langgenius/dify/pull/41117 * chore(deps): bump gunicorn from 26.0.0 to 26.1.0 in /api in the flask group by @dependabot[bot] in https://github.com/langgenius/dify/pull/41118 * fix: fall back to the batch API when the global plugin manifest is empty by @BenjaminX in https://github.com/langgenius/dify/pull/41107 * fix(tts): propagate and validate actual audio MIME by @AsperforMias in https://github.com/langgenius/dify/pull/41043 * fix: stabilize the agent tool picker placement by @iamjoel in https://github.com/langgenius/dify/pull/41132 * test: migrate trigger and webhook sessions and ORM models to SQLite by @asukaminato0721 in https://github.com/langgenius/dify/pull/40594 * refactor(web): migrate duplicate app input form by @lyzno1 in https://github.com/langgenius/dify/pull/41127 * refactor(web): migrate pipeline template input form by @lyzno1 in https://github.com/langgenius/dify/pull/41128 * refactor(web): migrate pipeline publishing input form by @lyzno1 in https://github.com/langgenius/dify/pull/41129 * chore: Replace star image with new asset link by @crazywoola in https://github.com/langgenius/dify/pull/41136 * feat: support agent skill by @fatelei in https://github.com/langgenius/dify/pull/39675 * fix: fix upload for plugin by @FFXN in https://github.com/langgenius/dify/pull/41133 * fix(api): scope hosted credits by tenant plan by @linw1995 in https://github.com/langgenius/dify/pull/41131 * fix: show checklist errors for inline agents without models by @iamjoel in https://github.com/langgenius/dify/pull/41146 * chore(deps): upgrade pnpm workspace dependencies by @lyzno1 in https://github.com/langgenius/dify/pull/41138 * fix(web): align agent v2 monitoring copy by @lyzno1 in https://github.com/langgenius/dify/pull/41150 * fix: align duplicate agent name behavior with agent forms by @iamjoel in https://github.com/langgenius/dify/pull/41156 * chore: show full agent save time on hover by @iamjoel in https://github.com/langgenius/dify/pull/41148 * fix(agent): allow saving model-less inline Agent drafts by @zyssyz123 in https://github.com/langgenius/dify/pull/41147 * chore(api): enforce backend layer boundaries by @laipz8200 in https://github.com/langgenius/dify/pull/41159 * fix(web): align agent v2 monitoring translations by @lyzno1 in https://github.com/langgenius/dify/pull/41161 * fix: keep home intro without banner by @lyzno1 in https://github.com/langgenius/dify/pull/41155 * fix: preserve agent task editor focus when inserting commands by @iamjoel in https://github.com/langgenius/dify/pull/41166 * feat(web): enhance Go to Anything navigation and discovery by @crazywoola in https://github.com/langgenius/dify/pull/41160 * ci: add HITL IM test environment deployment by @QuantumGhost in https://github.com/langgenius/dify/pull/41171 * fix(api): respect configured model params in prompt generator by @GareArc in https://github.com/langgenius/dify/pull/41165 * fix: align main navigation card grids by @lyzno1 in https://github.com/langgenius/dify/pull/41167 * test: remove obsolete integration coverage by @asukaminato0721 in https://github.com/langgenius/dify/pull/40704 * fix(api): attach exc_info=True to 11 logger.debug/info('...: %s', str(e)) sites — sibling of #41066 (DEBUG/INFO level) by @Harsh23Kashyap in https://github.com/langgenius/dify/pull/41077 * chore(i18n): sync translations with en-US by @github-actions[bot] in https://github.com/langgenius/dify/pull/41173 * fix: keep pagination skeletons in app grid by @lyzno1 in https://github.com/langgenius/dify/pull/41175 * fix: refine agent configuration copy by @iamjoel in https://github.com/langgenius/dify/pull/41177 * fix: avoid copy-sensitive agent file toast assertion by @iamjoel in https://github.com/langgenius/dify/pull/41179 * fix: failed e2e test in agent caused by changed copywriting by @iamjoel in https://github.com/langgenius/dify/pull/41187 * fix(web): restore model selector popup spacing by @lyzno1 in https://github.com/langgenius/dify/pull/41190 * fix(web): refresh model provider version after update by @Jingyi-Dify in https://github.com/langgenius/dify/pull/41212 * chore(deps): bump boto3 from 1.43.71 to 1.43.76 in /api in the storage group by @dependabot[bot] in https://github.com/langgenius/dify/pull/41126 * refactor(api): complete account education boundary by @hjlarry in https://github.com/langgenius/dify/pull/41153 * fix(skills): align management UI accessibility and localization by @zxhlyh in https://github.com/langgenius/dify/pull/41180 * fix(model): re-sign bare/backticked tool file URLs in answer by @Taranum01 in https://github.com/langgenius/dify/pull/40799 * fix(types): replace any[] with ThoughtItem[] for agent_thoughts by @3ni8ma in https://github.com/langgenius/dify/pull/41141 * fix: address Agent UX feedback by @iamjoel in https://github.com/langgenius/dify/pull/41219 * perf(api): batch recommended app catalog lookups by @SCW5370 in https://github.com/langgenius/dify/pull/41218 * fix: enforce read-only agent resources in build mode by @iamjoel in https://github.com/langgenius/dify/pull/41220 * perf(agent): polling interval tuning by @wylswz in https://github.com/langgenius/dify/pull/41221 * perf(agent): exponential backoff in polling to prevent forking storm by @wylswz in https://github.com/langgenius/dify/pull/41222 * fix(docker): harden agent compose configuration by @BeautyyuYanli in https://github.com/langgenius/dify/pull/41065 * fix(web): stop digits rendering in the emoji font by @shaba in https://github.com/langgenius/dify/pull/41201 * test(cli): tsconfig gap by @GareArc in https://github.com/langgenius/dify/pull/41224 * fix: allow OAuth trigger builder verification without credentials by @hjlarry in https://github.com/langgenius/dify/pull/39199 * fix(cli): declare write effect for import and context-switch commands by @samzong in https://github.com/langgenius/dify/pull/41225 * feat(api): support New Agent Beta for inline Workflow agents by @hjlarry in https://github.com/langgenius/dify/pull/41215 * fix: fix skill display name rename conflict by @fatelei in https://github.com/langgenius/dify/pull/41229 * test(vdb): use real ORM models in provider tests by @asukaminato0721 in https://github.com/langgenius/dify/pull/40687 * test: move pure integration cases to unit tests by @asukaminato0721 in https://github.com/langgenius/dify/pull/40705 * test: centralize app and account config overrides by @asukaminato0721 in https://github.com/langgenius/dify/pull/40860 * test: migrate step-by-step tour sessions to SQLite by @asukaminato0721 in https://github.com/langgenius/dify/pull/40636 * test: migrate RAG variable controller sessions and ORM models to SQLite by @asukaminato0721 in https://github.com/langgenius/dify/pull/40609 * fix(api): enforce APP_EDIT RBAC permission on MCP server refresh endpoint by @loulanyue in https://github.com/langgenius/dify/pull/41235 * fix: prevent sidebar footer actions from triggering hover preview by @iamjoel in https://github.com/langgenius/dify/pull/41230 * fix(skills): align Japanese Skills page title by @zxhlyh in https://github.com/langgenius/dify/pull/41242 * fix: show a not-allowed cursor for the prompt editor in build mode by @iamjoel in https://github.com/langgenius/dify/pull/41243 * feat: add skill enable feature switch by @fatelei in https://github.com/langgenius/dify/pull/41246 * fix(ui): add tabs panel focus treatment by @lyzno1 in https://github.com/langgenius/dify/pull/41231 * refactor(web): migrate pipeline DSL import form by @lyzno1 in https://github.com/langgenius/dify/pull/41232 * refactor(web): migrate dataset rename form by @lyzno1 in https://github.com/langgenius/dify/pull/41233 * feat(api): track credit usage contexts by @linw1995 in https://github.com/langgenius/dify/pull/41181 * feat: hide add library skill in agent ui by @fatelei in https://github.com/langgenius/dify/pull/41250 * chore: bump version to 1.17.0 by @wylswz in https://github.com/langgenius/dify/pull/41247 ## New Contributors * @zyz619963502zyz made their first contribution in https://github.com/langgenius/dify/pull/39695 * @Souravrajvi0 made their first contribution in https://github.com/langgenius/dify/pull/39708 * @Success6666 made their first contribution in https://github.com/langgenius/dify/pull/39485 * @loulanyue made their first contribution in https://github.com/langgenius/dify/pull/39754 * @xiaoyaoqilan made their first contribution in https://github.com/langgenius/dify/pull/39808 * @MannXo made their first contribution in https://github.com/langgenius/dify/pull/39819 * @iridescentWen made their first contribution in https://github.com/langgenius/dify/pull/39838 * @superdiaodiao made their first contribution in https://github.com/langgenius/dify/pull/39831 * @HassanRady made their first contribution in https://github.com/langgenius/dify/pull/39899 * @HandSonic made their first contribution in https://github.com/langgenius/dify/pull/39885 * @pineapple880066 made their first contribution in https://github.com/langgenius/dify/pull/40034 * @CodeWarriors0 made their first contribution in https://github.com/langgenius/dify/pull/40055 * @123liuziming made their first contribution in https://github.com/langgenius/dify/pull/39339 * @eldardada made their first contribution in https://github.com/langgenius/dify/pull/37841 * @bounkirdni-2025 made their first contribution in https://github.com/langgenius/dify/pull/39474 * @bkidy made their first contribution in https://github.com/langgenius/dify/pull/38112 * @Mubelotix made their first contribution in https://github.com/langgenius/dify/pull/40115 * @chelsealong made their first contribution in https://github.com/langgenius/dify/pull/40171 * @medisean made their first contribution in https://github.com/langgenius/dify/pull/40189 * @zyqzyq made their first contribution in https://github.com/langgenius/dify/pull/36163 * @tusharmotwani1718 made their first contribution in https://github.com/langgenius/dify/pull/40444 * @kanson1996 made their first contribution in https://github.com/langgenius/dify/pull/39155 * @zrh805 made their first contribution in https://github.com/langgenius/dify/pull/40408 * @typenoob made their first contribution in https://github.com/langgenius/dify/pull/40480 * @ddddajie made their first contribution in https://github.com/langgenius/dify/pull/40787 * @AlexMultiAgent made their first contribution in https://github.com/langgenius/dify/pull/39895 * @mahbubsouad made their first contribution in https://github.com/langgenius/dify/pull/40380 * @TrueFurina made their first contribution in https://github.com/langgenius/dify/pull/40801 * @a-yeyang made their first contribution in https://github.com/langgenius/dify/pull/40796 * @mesrop2008 made their first contribution in https://github.com/langgenius/dify/pull/40813 * @CodeMak1r-zy made their first contribution in https://github.com/langgenius/dify/pull/40776 * @weike-zhang made their first contribution in https://github.com/langgenius/dify/pull/40856 * @BlessedWithLuck1105 made their first contribution in https://github.com/langgenius/dify/pull/40852 * @amogh-nagri-11 made their first contribution in https://github.com/langgenius/dify/pull/40901 * @Zenine made their first contribution in https://github.com/langgenius/dify/pull/38265 * @akamabu made their first contribution in https://github.com/langgenius/dify/pull/40822 * @FasihUrRahman made their first contribution in https://github.com/langgenius/dify/pull/40962 * @fszcd made their first contribution in https://github.com/langgenius/dify/pull/40843 * @hyhyf made their first contribution in https://github.com/langgenius/dify/pull/39129 * @zl86790 made their first contribution in https://github.com/langgenius/dify/pull/40964 * @potoior made their first contribution in https://github.com/langgenius/dify/pull/39136 * @yangchuansheng made their first contribution in https://github.com/langgenius/dify/pull/41026 * @gegemeimingzi made their first contribution in https://github.com/langgenius/dify/pull/40921 * @simpleqt made their first contribution in https://github.com/langgenius/dify/pull/41101 * @ump45nose made their first contribution in https://github.com/langgenius/dify/pull/40443 * @leilei3167 made their first contribution in https://github.com/langgenius/dify/pull/41090 * @XIIRUAN made their first contribution in https://github.com/langgenius/dify/pull/41007 * @3ni8ma made their first contribution in https://github.com/langgenius/dify/pull/41141 * @SCW5370 made their first contribution in https://github.com/langgenius/dify/pull/41218 * @shaba made their first contribution in https://github.com/langgenius/dify/pull/41201 **Full Changelog**: https://github.com/langgenius/dify/compare/1.16.1...1.17.0

Only the five most recent versions are shown. View full version history at the source ↗

Current listing version

0.0.1

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value95/100

Highlights

  • 高价值开发指导:精准解决 React/TypeScript 组件架构决策痛点
  • 覆盖高频刚需场景:组件所有权、状态管理、数据流等核心问题
  • 明确的排除边界:避免误用于仅审查、测试、复制或样式场景
Trigger Precision95/100

Highlights

  • 触发词精准完整:明确限定实现/重构场景下的架构决策
  • 边界清晰:详细列出不适用场景(仅审查、测试、复制、样式)
  • 描述位置正确:frontmatter 和 skill_body 双重确认
Structure and Standards95/100

Highlights

  • 结构完整清晰:Topic Routing、Scope And Verification、Tailwind CSS 三部分
  • 步骤划分明确:从路由到验证的完整工作流
  • 包含端到端示例:具体场景到参考文件的映射关系
Execution Reliability95/100

Highlights

  • 工具来源明确:所有引用文件路径清晰可追踪
  • 参数正确:具体技术栈版本(Tailwind v4)和工具链
  • 验证机制完善:包含行为验证和包级检查要求
Evidence Verifiability (mean of the first four)95/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Not specified in the source documentation.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.