Skip to content

fix: allow sending messages when QuickPanel is open with @ in content#14102

Open
404-Page-Found wants to merge 1 commit intoCherryHQ:v2from
404-Page-Found:Simultaneously-calling-multiple-models
Open

fix: allow sending messages when QuickPanel is open with @ in content#14102
404-Page-Found wants to merge 1 commit intoCherryHQ:v2from
404-Page-Found:Simultaneously-calling-multiple-models

Conversation

@404-Page-Found
Copy link
Copy Markdown
Contributor

What this PR does

Before this PR:
When the QuickPanel was visible and user pressed Enter (e.g., to send a message containing @), the panel incorrectly intercepted the Enter key to select items from the list instead of allowing the message to be sent. This caused the last selected model to be deselected when multiple models were called.

After this PR:
The Enter key behavior in QuickPanelView now:

  • Closes the panel when plain Enter is pressed
  • Allows the event to propagate to the input field for message sending
  • Preserves the search text after closing (by adding 'enter' to exclusion list)

Fixes #14085

Why we need it and why it was done in this way

The following tradeoffs were made:

The following alternatives were considered:

Links to places where the discussion took place: N/A

Breaking changes

N/A

Special notes for your reviewer

N/A

Checklist

This checklist is not enforcing, but it's a reminder of items that could be relevant to every PR.
Approvers are expected to review this list.

Release note

fix: allow sending messages when QuickPanel is open with @ in content - pressing Enter now properly sends the message instead of deselecting models

When the QuickPanel was visible and user pressed Enter (e.g., to send a message
containing @), the panel would incorrectly intercept the Enter key to select
items from the list instead of allowing the message to be sent. This caused
the last selected model to be deselected when multiple models were called.

This fix changes the Enter key behavior in QuickPanelView to:
- Close the panel when plain Enter is pressed
- Allow the event to propagate to the input field for message sending
- Preserve the search text after closing (by adding 'enter' to exclusion list)

Fixes CherryHQ#14085
@404-Page-Found 404-Page-Found requested a review from a team April 8, 2026 00:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant