[PR #610] [CLOSED] Issue 609 #610

Closed
opened 2026-02-16 01:16:31 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langgenius/dify-plugin-daemon/pull/610
Author: @fatelei
Created: 2/13/2026
Status: Closed

Base: mainHead: issue-609


📝 Commits (2)

  • 7660d8e fix: synchronize remote debugging plugins across cluster nodes
  • 28aa9f9 fix: write correct error structure

📊 Changes

12 files changed (+230 additions, -61 deletions)

View changed files

📝 internal/cluster/plugin.go (+11 -1)
📝 internal/core/control_panel/daemon.go (+10 -0)
📝 internal/core/control_panel/server_debugger.go (+12 -0)
📝 internal/core/io_tunnel/backwards_invocation/transaction/serverless_handler.go (+26 -8)
📝 internal/core/plugin_manager/cluster_tunnel.go (+22 -0)
📝 internal/core/plugin_manager/manager.go (+6 -0)
📝 internal/server/controllers/plugins.go (+3 -0)
📝 internal/server/middleware.go (+3 -1)
📝 internal/server/server.go (+3 -0)
📝 internal/service/install_plugin.go (+5 -5)
📝 internal/service/install_service/controlpanel.go (+28 -2)
📝 internal/types/models/curd/atomic.go (+101 -44)

📄 Description

Description

fix #609

dify plugin sdk

 class BackwardsInvocationResponseEvent(BaseModel):
      class Event(Enum):
          response = "response"
          Error = "error"
          End = "end"

      backwards_request_id: str
      event: Event
      message: str
      data: dict | None

need this structure, but origin return ctx.Writer.Write([]byte(err.Error())) this is normal string not match the python structure.

Type of Change

  • Bug fix
  • New feature
  • Refactor
  • Performance improvement
  • Other

Essential Checklist

Testing

  • I have tested the changes locally and confirmed they work as expected
  • I have added unit tests where necessary and they pass successfully

Bug Fix (if applicable)

  • I have used GitHub syntax to close the related issue (e.g., Fixes #123 or Closes #123)

Additional Information

Please provide any additional context that would help reviewers understand the changes.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langgenius/dify-plugin-daemon/pull/610 **Author:** [@fatelei](https://github.com/fatelei) **Created:** 2/13/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `issue-609` --- ### 📝 Commits (2) - [`7660d8e`](https://github.com/langgenius/dify-plugin-daemon/commit/7660d8e23c6ecbffe0e975a977fa7fbdde78d489) fix: synchronize remote debugging plugins across cluster nodes - [`28aa9f9`](https://github.com/langgenius/dify-plugin-daemon/commit/28aa9f942bf4881a48da4d6ab110d59bd01acd0f) fix: write correct error structure ### 📊 Changes **12 files changed** (+230 additions, -61 deletions) <details> <summary>View changed files</summary> 📝 `internal/cluster/plugin.go` (+11 -1) 📝 `internal/core/control_panel/daemon.go` (+10 -0) 📝 `internal/core/control_panel/server_debugger.go` (+12 -0) 📝 `internal/core/io_tunnel/backwards_invocation/transaction/serverless_handler.go` (+26 -8) 📝 `internal/core/plugin_manager/cluster_tunnel.go` (+22 -0) 📝 `internal/core/plugin_manager/manager.go` (+6 -0) 📝 `internal/server/controllers/plugins.go` (+3 -0) 📝 `internal/server/middleware.go` (+3 -1) 📝 `internal/server/server.go` (+3 -0) 📝 `internal/service/install_plugin.go` (+5 -5) 📝 `internal/service/install_service/controlpanel.go` (+28 -2) 📝 `internal/types/models/curd/atomic.go` (+101 -44) </details> ### 📄 Description ## Description fix #609 dify plugin sdk ``` class BackwardsInvocationResponseEvent(BaseModel): class Event(Enum): response = "response" Error = "error" End = "end" backwards_request_id: str event: Event message: str data: dict | None ``` need this structure, but origin return `ctx.Writer.Write([]byte(err.Error()))` this is normal string not match the python structure. ## Type of Change - [x] Bug fix - [ ] New feature - [ ] Refactor - [ ] Performance improvement - [ ] Other ## Essential Checklist ### Testing - [x] I have tested the changes locally and confirmed they work as expected - [ ] I have added unit tests where necessary and they pass successfully ### Bug Fix (if applicable) - [ ] I have used GitHub syntax to close the related issue (e.g., `Fixes #123` or `Closes #123`) ## Additional Information Please provide any additional context that would help reviewers understand the changes. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 01:16:31 -05:00
yindo closed this issue 2026-02-16 01:16:31 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-plugin-daemon#610