mirror of
https://github.com/paperclipai/paperclip
synced 2026-03-25 11:21:48 +00:00
- Use a ref for mentionState so selectMention always reads the latest value (prevents stale-closure "blink" on click/Enter/Tab) - Add explicit space key handling to dismiss the popup immediately - Move Escape handler outside filteredMentions check so it always works - Sync mentionStateRef on all state transitions Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>