# Task: Fix Duplicate Document Creation Bug

## 1. Codebase Investigation
- [ ] Analyze `ReflectEditor.tsx` document lookup logic (`searchDocuments`) for exact matches.
- [ ] Analyze `DocumentClient.tsx` save logic for new link reconciliation (`resolveNewLinks`).
- [ ] Analyze `useWikiMap.ts` to ensure it correctly provides the ID for existing titles.

## 2. Root Cause Analysis
- [x] Identify why an exact title match (e.g., `[[ABC]]`) results in a "Create New" action instead of linking.
- [x] Draft an implementation plan to fix the reconciliation/lookup logic.

## 3. Implementation & Verification
- [x] Apply code fixes.
- [x] Verify that existing titles correctly link to their existing IDs.
