Unrequested plugin package download #13836

Closed
opened 2026-02-21 19:14:07 -05:00 by yindo · 2 comments
Owner

Originally created by @DavideDelbianco on GitHub (May 13, 2025).

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.3.1

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Open any plugin informational popup using the "Install" button
Do not install the plugin

✔️ Expected Behavior

The plugin package should not be downloaded if you haven't proceeded to install the plugin

Actual Behavior

The plugin package is downloaded creating a local copy of the plugin package and using disk space when not needed

Originally created by @DavideDelbianco on GitHub (May 13, 2025). ### Self Checks - [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [x] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 1.3.1 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce Open any plugin informational popup using the "Install" button Do not install the plugin ### ✔️ Expected Behavior The plugin package should not be downloaded if you haven't proceeded to install the plugin ### ❌ Actual Behavior The plugin package is downloaded creating a local copy of the plugin package and using disk space when not needed
yindo added the 🐞 bug label 2026-02-21 19:14:07 -05:00
yindo closed this issue 2026-02-21 19:14:07 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (May 13, 2025):

The issue you're experiencing seems to be related to the plugin package being downloaded even when you haven't proceeded with the installation. This behavior might be linked to how the download logic is triggered in the codebase.

In Dify, the download of plugin packages is triggered by the presence of a packageId or bundleInfo in the search parameters. When these parameters are present, the system fetches the plugin manifest or bundle information, which leads to showing the installation interface via the showInstallFromMarketplace() function [1].

To address this issue, you might want to check the logic in the web/app/components/plugins/plugin-page/index.tsx file to ensure that the download is only initiated when the user explicitly confirms the installation. Additionally, reviewing the useDownloadPlugin hook and the handleDownload function in the action.tsx file could help ensure that downloads are only triggered when necessary [2].

If this behavior is unintended, it might require a code change to prevent the download from occurring until the user explicitly decides to install the plugin.

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

@dosubot[bot] commented on GitHub (May 13, 2025): <!-- Answer --> The issue you're experiencing seems to be related to the plugin package being downloaded even when you haven't proceeded with the installation. This behavior might be linked to how the download logic is triggered in the codebase. In Dify, the download of plugin packages is triggered by the presence of a `packageId` or `bundleInfo` in the search parameters. When these parameters are present, the system fetches the plugin manifest or bundle information, which leads to showing the installation interface via the `showInstallFromMarketplace()` function <sup>[[1]](https://github.com/langgenius/dify/blob/main/web/app/components/plugins/plugin-page/index.tsx)</sup>. To address this issue, you might want to check the logic in the `web/app/components/plugins/plugin-page/index.tsx` file to ensure that the download is only initiated when the user explicitly confirms the installation. Additionally, reviewing the `useDownloadPlugin` hook and the `handleDownload` function in the `action.tsx` file could help ensure that downloads are only triggered when necessary <sup>[[2]](https://github.com/langgenius/dify/blob/main/web/app/components/workflow/block-selector/market-place-plugin/action.tsx)</sup>. If this behavior is unintended, it might require a code change to prevent the download from occurring until the user explicitly decides to install the plugin. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* --- <sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/b6a67301-78f2-4476-a4ee-3eace89e6955?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/b6a67301-78f2-4476-a4ee-3eace89e6955?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/b6a67301-78f2-4476-a4ee-3eace89e6955?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/b6a67301-78f2-4476-a4ee-3eace89e6955?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/b6a67301-78f2-4476-a4ee-3eace89e6955?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/b6a67301-78f2-4476-a4ee-3eace89e6955?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/b6a67301-78f2-4476-a4ee-3eace89e6955?feedback_type=other)</sup>
Author
Owner

@DavideDelbianco commented on GitHub (May 14, 2025):

Even if the packages are not that big, I have disk space issues and don't like this behavior.
A scheduled process that cleans up the storage from package versions not in use, and avoid downloading the package just because you opened its popup info modal, would be advisable.

Image

@DavideDelbianco commented on GitHub (May 14, 2025): Even if the packages are not that big, I have disk space issues and don't like this behavior. A scheduled process that cleans up the storage from package versions not in use, and avoid downloading the package just because you opened its popup info modal, would be advisable. ![Image](https://github.com/user-attachments/assets/d5fc8ba8-6e81-421c-a497-b5ce0185c1cd)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#13836