[PR #23862] fix: goto-anything command filter should only match shortcut #30426

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

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

State: closed
Merged: Yes


Summary

Fixes #23861

Fixed goto-anything command selector filtering logic to only match user-visible shortcuts instead of internal keys. This resolves the confusing behavior where typing @o would select @kb instead of @node.

Changes:

  • Modified CommandSelector to filter only by action.shortcut
  • Removed dual matching of action.key and action.shortcut
  • Updated tests to reflect new behavior

Screenshots

Before After
image image

Checklist

  • This change requires a documentation update, included: Dify Document
  • I understand that this PR may be closed in case there was no previous discussion or issues. (This doesn't apply to typos- [x] I've added a test for each change that was introduced, and I tried as much as possible to make a single atomic change.
  • I've updated the documentation accordingly.
  • I ran dev/reformat(backend) and cd web && npx lint-staged(frontend) to appease the lint gods
**Original Pull Request:** https://github.com/langgenius/dify/pull/23862 **State:** closed **Merged:** Yes --- ## Summary Fixes #23861 Fixed goto-anything command selector filtering logic to only match user-visible shortcuts instead of internal keys. This resolves the confusing behavior where typing @o would select @kb instead of @node. **Changes:** - Modified CommandSelector to filter only by action.shortcut - Removed dual matching of action.key and action.shortcut - Updated tests to reflect new behavior ## Screenshots | Before | After | |--------|-------| | <img width="481" height="298" alt="image" src="https://github.com/user-attachments/assets/fd897e83-914b-4724-beb8-69995498effe" /> | <img width="482" height="297" alt="image" src="https://github.com/user-attachments/assets/d8fc816d-f8ec-494f-a787-8b1261207669" /> | ## Checklist - [ ] This change requires a documentation update, included: [Dify Document](https://github.com/langgenius/dify-docs) - [x] I understand that this PR may be closed in case there was no previous discussion or issues. (This doesn't apply to typos- [x] I've added a test for each change that was introduced, and I tried as much as possible to make a single atomic change. - [x] I've updated the documentation accordingly. - [x] I ran `dev/reformat`(backend) and `cd web && npx lint-staged`(frontend) to appease the lint gods
yindo added the pull-request label 2026-02-21 20:47:28 -05:00
yindo closed this issue 2026-02-21 20:47:28 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#30426