/memory command fails to resolve symlinked user memory file in WSL
Status Closed — not planned
Reported on v2.1.156
Maintainer reply None cached
Activity 1 comment · opened May 29, 2026 · closed Jul 1, 2026
Description
When ~/.claude/CLAUDE.md is a symbolic link (a common setup for managing Claude Code settings in a separate git repository), the /memory command passes the symlink path directly to the editor instead of resolving it to the real file path.
As a result, VS Code opens ~/.claude/CLAUDE.md as an empty file, making it impossible to view or edit the actual content through the /memory command.
Environment
- Claude Code version: 2.1.156
- OS: WSL2 (Ubuntu on Windows, kernel 6.6.87.2-microsoft-standard-WSL2)
- Editor: VS Code 1.122.0
Steps to reproduce
- Set
~/.claude/CLAUDE.mdas a symbolic link (e.g.,ln -s /home/ubuntu/workspace/claude-code-settings/CLAUDE.md ~/.claude/CLAUDE.md) - Run
/memoryin Claude Code on WSL - Select "user-memory"
- VS Code opens but displays an empty file
Expected behavior
Detect that ~/.claude/CLAUDE.md is a symbolic link and resolve it to the real path before passing it to the editor. This behavior already works correctly in the Windows native environment.
Actual behavior
The symlink path is passed as-is to the editor, which opens an empty file.
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗