[PR #525] [CLOSED] fix: fix panic error #559

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

📋 Pull Request Information

Original PR: https://github.com/langgenius/dify-plugin-daemon/pull/525
Author: @fatelei
Created: 12/8/2025
Status: Closed

Base: mainHead: panic


📝 Commits (1)

📊 Changes

4 files changed (+21 additions, -5 deletions)

View changed files

📝 internal/core/io_tunnel/agent_service.go (+2 -3)
📝 internal/core/io_tunnel/generic.go (+6 -2)
📝 internal/core/session_manager/session.go (+10 -0)
📝 internal/service/session.go (+3 -0)

📄 Description

Description

fix https://github.com/langgenius/dify/issues/29282

The nil pointer dereference happens when:

  1. A session is created via NewSession() where runtime field remains nil
  2. The session is used before BindRuntime() is called to attach a runtime instance
  3. GenericInvokePlugin tries to access the runtime's Listen() method

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/525 **Author:** [@fatelei](https://github.com/fatelei) **Created:** 12/8/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `panic` --- ### 📝 Commits (1) - [`4790a94`](https://github.com/langgenius/dify-plugin-daemon/commit/4790a94ea265f9103ab5024aa574a1bedefab6dd) fix: fix panic error ### 📊 Changes **4 files changed** (+21 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `internal/core/io_tunnel/agent_service.go` (+2 -3) 📝 `internal/core/io_tunnel/generic.go` (+6 -2) 📝 `internal/core/session_manager/session.go` (+10 -0) 📝 `internal/service/session.go` (+3 -0) </details> ### 📄 Description ## Description fix https://github.com/langgenius/dify/issues/29282 The nil pointer dereference happens when: 1. A session is created via NewSession() where runtime field remains nil 2. The session is used before BindRuntime() is called to attach a runtime instance 3. GenericInvokePlugin tries to access the runtime's Listen() method ## 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) - [x] 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:19 -05:00
yindo closed this issue 2026-02-16 01:16:19 -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#559