claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

Incorrect User Memory Path in Memory Selection Menu

Open MiddSea opened this issue 7 months ago • 1 comments

Bug Description

Describe the issue below: Path name in /memory wrong. I am choosing user memory, but the path is not correct. This is wrong:

> /memory 
╭────────────────────────────────────────────────────────────────╮
│                                                                │
│ Select memory to edit:                                         │
│                                                                │
│    1. Project memory          Checked in at ./CLAUDE.md        │
│    2. Project memory (local)  Gitignored in ./CLAUDE.local.md  │
│  ❯ 3. User memory             Saved in ~/.claude/CLAUDE.md     │
│                                                                │
│ 18 memories in ~/CLAUDE.md                                     │
│                                                                │
╰────────────────────────────────────────────────────────────────╯
⎿ Opened user memory at ~/CLAUDE.md 


The correct path is ~/.claude/CLAUDE.md which is what was opened by claude-code And also 2. Project memory (local)` is deprecated. Imports are now used.

Environment Info

  • Platform: darwin
  • Terminal: vscode
  • Version: 1.0.30
  • Feedback ID: ecbd4dad-f5d7-451a-9214-fae0a4289585

Errors

[{"error":"Error: Command failed: security find-generic-password -a $USER -w -s \"Claude Code\"\nsecurity: SecKeychainSearchCopyNext: The specified item could not be found in the keychain.\n\n    at genericNodeError (node:internal/errors:983:15)\n    at wrappedFn (node:internal/errors:537:14)\n    at checkExecSyncError (node:child_process:882:11)\n    at execSync (node:child_process:954:15)\n    at NZ (file:///Users/sean.middleton/.nvm/versions/node/v23.10.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:699:3921)\n    at file:///Users/sean.middleton/.nvm/versions/node/v23.10.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:622:9014\n    at Q (file:///Users/sean.middleton/.nvm/versions/node/v23.10.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:526:17199)\n    at QX (file:///Users/sean.middleton/.nvm/versions/node/v23.10.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:622:8160)\n    at kS (file:///Users/sean.middleton/.nvm/versions/node/v23.10.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:622:7241)\n    at L9 (file:///Users/sean.middleton/.nvm/versions/node/v23.10.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:622:11408)","timestamp":"2025-06-19T18:15:40.308Z"}]

MiddSea avatar Jun 19 '25 19:06 MiddSea

This same issue happens on Linux.

But its even more interesting, I don't know if its because I have XDG_CONFIG_HOME set, But I had a ~/.claude and my ~/.claude/CLAUDE.md wasn't being loaded, nor was all the settings from ~/.claude/settings.json - Especially permissions (tool allows/denies).

Turns out there was another ~/.config/claude directory that had the same files as ~/.claude So I've just deleted the duplicates and symlinked it because it seems to use ~/.claude or ~/.config/claude for different things.

...or it recently changed and I missed that >_>

Version 1.0.28: • Slash commands: Fix selector display during history navigation • Resizes images before upload to prevent API size limit errors • Added XDG_CONFIG_HOME support to configuration directory • Performance optimizations for memory usage • New attributes (terminal.type, language) in OpenTelemetry logging

Yep.. nevermind <_< sorry :p

terrymunro avatar Jun 25 '25 06:06 terrymunro

This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.

github-actions[bot] avatar Dec 03 '25 10:12 github-actions[bot]