mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-21 17:45:23 -04:00
[slack_trigger] Missing subscription_constructor causes "Disconnected" status in Trigger node #833
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @kashira2339 on GitHub (Nov 25, 2025).
Self Checks
Dify version
1.10.0
Plugin version
langgenius/slack_trigger:0.0.1
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
Expected behavior:
Actual behavior:
Root Cause Analysis:
The provider/slack.yaml file is missing the subscription_constructor field.
Current structure:
In the dify frontend code (web/app/components/workflow/nodes/_base/components/workflow-panel/index.tsx), the Subscription selector is only rendered when subscription_constructor exists:
Without subscription_constructor, setDetail is never called, so useSubscriptionList returns an empty array, and the selector UI is not displayed.
✔️ Error log
Node Screenshot
Network response (
GET /console/api/workspaces/current/triggers)@dosubot[bot] commented on GitHub (Nov 25, 2025):
Hi @kashira2339! I'm Dosu and I’m helping the dify-official-plugins team.
The "Disconnected" status in the Slack Trigger node is caused by the missing subscription_constructor field in slack.yaml. The frontend only renders the Subscription selector UI if subscription_constructor is present in the plugin config—without it, the selector doesn't appear and the node stays disconnected, even if subscriptions exist in settings. This is confirmed by both the frontend code and the current state of slack.yaml, which lacks this field (source).
To resolve this, add a subscription_constructor block to slack.yaml, following the pattern used in other trigger plugins. This will enable the workflow panel to display the subscription selector and eliminate the "Disconnected" status. There are no other relevant issues or threads about this bug, but a related PR (#185) addressed Slack provider initialization logic, which may be worth reviewing if you want to see recent changes.
To reply, just mention @dosu.
How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other
@hjlarry commented on GitHub (Nov 25, 2025):
it should be fixed by this PR https://github.com/langgenius/dify/pull/28287
@kashira2339 commented on GitHub (Nov 25, 2025):
Thank you for the quick response!
I apologize for not checking the recent PRs before opening this issue.
Looking forward to the fix in #28287. 🙏
@kashira2339 commented on GitHub (Nov 26, 2025):
We can confirm that this issue has been resolved.
This issue will therefore be closed.
Thank you!