mirror of
https://github.com/MarekWo/mc-webui.git
synced 2026-05-09 23:04:48 +02:00
9967980521
Added comprehensive documentation of discovered differences between CLI and ROOM contact types when using the add_pending command. Key findings from real-world testing (2025-12-29): CLI Contacts (flexible matching): - ✅ Full name works: "StNMobile T1000e" - ✅ Name prefix works: "StN" - ✅ Public key prefix works: "2ce5514" - ✅ Full public key works ROOM Contacts (strict matching): - ❌ Full name fails: "TK room cwiczebny🔆" (UTF-8 issues) - ❌ Name prefix fails: "TK room" - ❌ Public key prefix fails: "b3fec489" - ✅ ONLY full public key works Root cause: meshcli uses different matching logic for different contact types, likely to prevent accidental approval of group rooms which have different security/privacy implications. Recommendation: UI should always send full public_key (not name) when calling POST /add_pending to ensure compatibility with all contact types. Updated sections: - Selector formats with CLI/ROOM compatibility notes - New "Important Discovery: Contact Type Differences" section - Updated test commands with real-world results - JavaScript code examples for UI implementation - Best practices for UI design This documentation will guide the next phase: UI implementation for pending contact management. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>