Note
mimansajaiswal: how does the hook based duplicate detection work before adding something?
GitHub Copilot: Based on the code shown, here's how the hook-based duplicate detection works:
- The core detection logic appears to work through several hooks and processes:
- First, the detection starts in
hooks.ts
through theonNotify
handler which listens for item modifications: