cherry-studio/src
Jason Young 535dcf4778
Fix/at symbol deletion issue (#9206)
* fix: prevent incorrect @ symbol deletion in QuickPanel

- Track trigger source (input vs button) and @ position
- Only delete @ when triggered by input with model selection
- Button-triggered panels never delete text content
- Validate @ still exists at recorded position before deletion

* feat: delete search text along with @ symbol

- Pass searchText from QuickPanel to onClose callback
- Delete both @ and search text (e.g., @cla) when model selected
- Validate text matches before deletion for safety
- Fallback to deleting only @ if text doesn't match

* refactor: clarify ESC vs Backspace behavior in QuickPanel

- ESC: Cancel operation, delete @ + searchText when models selected
- Backspace: Natural editing, @ already deleted by browser, no extra action
- Clear separation of intent improves predictability and UX
2025-08-17 11:43:44 +08:00
..
main refactor: replace axios and node fetch with electron's net module (#9212) 2025-08-15 22:48:22 +08:00
preload feat: add code tools (#9043) 2025-08-12 11:54:38 +08:00
renderer Fix/at symbol deletion issue (#9206) 2025-08-17 11:43:44 +08:00