[PR #487] [CLOSED] feat: support passthrough propagation to plugins #535

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

📋 Pull Request Information

Original PR: https://github.com/langgenius/dify-plugin-daemon/pull/487
Author: @ywqwancbx
Created: 10/31/2025
Status: Closed

Base: mainHead: feature/passthrough-parameter


📝 Commits (1)

  • bb546fa feat: 支持 passthrough 透传至插件;清理无关日志

📊 Changes

3 files changed (+6 additions, -0 deletions)

View changed files

📝 internal/core/session_manager/session.go (+4 -0)
📝 internal/service/session.go (+1 -0)
📝 pkg/entities/plugin_entities/request.go (+1 -0)

📄 Description

Passthrough Propagation to Plugins

  • Add top-level passthrough to InvokePluginRequest and Session, and include it in Session.Message() so it reaches the Python SDK as a first-class field (similar to conversation_id).
  • Keep InvokeTool data payload strictly for business parameters; carry passthrough via session to avoid schema drift.
  • Remove temporary debug logs and unused helpers; retain only necessary code for passthrough propagation.
  • Backward compatible; existing tools continue to work without changes.
  • Corresponding upstream changes in Dify main repo: feat: add passthrough parameter support for workflow tools.

🔄 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/487 **Author:** [@ywqwancbx](https://github.com/ywqwancbx) **Created:** 10/31/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `feature/passthrough-parameter` --- ### 📝 Commits (1) - [`bb546fa`](https://github.com/langgenius/dify-plugin-daemon/commit/bb546fa63380853e5e39872c43fad8d118c0c1f1) feat: 支持 passthrough 透传至插件;清理无关日志 ### 📊 Changes **3 files changed** (+6 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `internal/core/session_manager/session.go` (+4 -0) 📝 `internal/service/session.go` (+1 -0) 📝 `pkg/entities/plugin_entities/request.go` (+1 -0) </details> ### 📄 Description ## Passthrough Propagation to Plugins - Add top-level `passthrough` to `InvokePluginRequest` and `Session`, and include it in `Session.Message()` so it reaches the Python SDK as a first-class field (similar to `conversation_id`). - Keep `InvokeTool` data payload strictly for business parameters; carry `passthrough` via session to avoid schema drift. - Remove temporary debug logs and unused helpers; retain only necessary code for passthrough propagation. - Backward compatible; existing tools continue to work without changes. - Corresponding upstream changes in Dify main repo: [feat: add passthrough parameter support for workflow tools](https://github.com/langgenius/dify/pull/27078). --- <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:15 -05:00
yindo closed this issue 2026-02-16 01:16:15 -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#535