The frontend was using Tauri's `readTextFile` plugin which enforces
scope restrictions and doesn't work with WSL paths on Windows.
Changed to use our `read_file_content` backend command which:
- Already handles WSL paths correctly on Windows
- Works with absolute paths on all platforms
- Bypasses Tauri's filesystem scope restrictions
- Matches the pattern used throughout the app for file operations
This fixes the "forbidden path" error when trying to read memory
files on Windows whilst maintaining functionality on Linux/Mac.
✨ This fix was created by Hikari~ 🌸
The memory files tab was empty on Windows production builds because
`list_memory_files()` was using `dirs::home_dir()` which returns the
Windows home directory (C:\Users\...), but Claude Code stores memory
files in the WSL home directory (~/.claude/projects/.../memory/).
Solution:
- Split into platform-specific implementations
- Windows: Use WSL command to find and list memory files in WSL home
- Linux/Mac: Continue using native filesystem access
- Use `bash -l` to ensure proper PATH and home directory resolution
This matches the pattern used for other file operations throughout
the codebase (read_file, write_file, list_directory, etc.).
Fixes empty memory files tab on Windows whilst maintaining full
functionality on Linux/Mac.
✨ This fix was created by Hikari~ 🌸