fix: list memory files from WSL home directory on Windows

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~ 🌸
This commit is contained in:
2026-02-08 12:45:10 -08:00
committed by Naomi Carrigan
parent fdb356a62c
commit bd5d7685d8
2 changed files with 50 additions and 1 deletions
+1 -1
View File
@@ -1636,7 +1636,7 @@ checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70"
[[package]]
name = "hikari-desktop"
version = "1.4.0"
version = "1.5.0"
dependencies = [
"chrono",
"dirs 5.0.1",