[PR #30138] fix(web): correct deleted tools matching to use provider_id instead of id #32697

Closed
opened 2026-02-21 20:51:54 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langgenius/dify/pull/30138

State: closed
Merged: Yes


Summary

  • Fixed the deleted tools matching logic in agent configuration
  • Changed deletedTool.id === tool.id to deletedTool.provider_id === tool.provider_id
  • Backend deleted_tools response contains provider_id, not id, causing matching to fail

Root Cause

The backend API returns deleted_tools with fields: type, tool_name, provider_id (see api/fields/app_fields.py:171-175). The frontend was incorrectly trying to match using deletedTool.id which doesn't exist.

Test plan

  • Verified agent-tools unit tests pass
  • Fix matches backend field structure

fixes #30048

**Original Pull Request:** https://github.com/langgenius/dify/pull/30138 **State:** closed **Merged:** Yes --- ## Summary - Fixed the deleted tools matching logic in agent configuration - Changed `deletedTool.id === tool.id` to `deletedTool.provider_id === tool.provider_id` - Backend `deleted_tools` response contains `provider_id`, not `id`, causing matching to fail ## Root Cause The backend API returns `deleted_tools` with fields: `type`, `tool_name`, `provider_id` (see `api/fields/app_fields.py:171-175`). The frontend was incorrectly trying to match using `deletedTool.id` which doesn't exist. ## Test plan - [x] Verified agent-tools unit tests pass - [x] Fix matches backend field structure fixes #30048
yindo added the pull-request label 2026-02-21 20:51:54 -05:00
yindo closed this issue 2026-02-21 20:51:54 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#32697