Local Memory Submission Corrupting CALUDE.md File
Resolved 💬 3 comments Opened Jul 24, 2025 by mattkgross Closed Jan 4, 2026
Bug Description
When I add a new local memory, it adds the new item to CLAUDE.md, but ends up wiping most of the rest of the file, replacing it with "[Rest of the existing file content remains unchanged]"
Environment Info
- Platform: darwin
- Terminal: iTerm.app
- Version: 1.0.59
- Feedback ID: 189a0631-cacc-44ac-9842-e56842d11e04
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:890:11)\n at execSync (node:child_process:962:15)\n at m7 (file:///Users/mattkgross/.nvm/versions/node/v22.9.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:865:5958)\n at file:///Users/mattkgross/.nvm/versions/node/v22.9.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:777:48939\n at Q (file:///Users/mattkgross/.nvm/versions/node/v22.9.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:674:14420)\n at HJ (file:///Users/mattkgross/.nvm/versions/node/v22.9.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:777:46650)\n at oH (file:///Users/mattkgross/.nvm/versions/node/v22.9.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:777:45517)\n at Z9 (file:///Users/mattkgross/.nvm/versions/node/v22.9.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:777:51565)","timestamp":"2025-07-24T18:33:16.391Z"},{"error":"MCPContentTooLargeError: MCP tool \"directory_tree\" response (860523 tokens) exceeds maximum allowed tokens (25000). Please use pagination, filtering, or limit parameters to reduce the response size.\n at nE0 (file:///Users/mattkgross/.nvm/versions/node/v22.9.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1350:7867)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async cEB (file:///Users/mattkgross/.nvm/versions/node/v22.9.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1385:12284)\n at async Object.call (file:///Users/mattkgross/.nvm/versions/node/v22.9.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1385:6743)\n at async zJ8 (file:///Users/mattkgross/.nvm/versions/node/v22.9.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:2382:10150)\n at async Vb1 (file:///Users/mattkgross/.nvm/versions/node/v22.9.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:2382:6569)\n at async HJ8 (file:///Users/mattkgross/.nvm/versions/node/v22.9.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:2382:5593)\n at async CJ8 (file:///Users/mattkgross/.nvm/versions/node/v22.9.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:2382:5222)\n at async JM (file:///Users/mattkgross/.nvm/versions/node/v22.9.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:2382:3660)\n at async JM (file:///Users/mattkgross/.nvm/versions/node/v22.9.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:2382:4343)","timestamp":"2025-07-24T18:34:20.521Z"},{"error":"McpError: MCP error -32603: net::ERR_CONNECTION_REFUSED at http://localhost:3001/discover\n at _X0._onresponse (file:///Users/mattkgross/.nvm/versions/node/v22.9.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1338:15726)\n at _transport.onmessage (file:///Users/mattkgross/.nvm/versions/node/v22.9.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1338:12834)\n at J.X.client.transport.onmessage (file:///Users/mattkgross/.nvm/versions/node/v22.9.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:2716:7853)\n at cX0.processReadBuffer (file:///Users/mattkgross/.nvm/versions/node/v22.9.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1340:2306)\n at Socket.<anonymous> (file:///Users/mattkgross/.nvm/versions/node/v22.9.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1340:1672)\n at Socket.emit (node:events:519:28)\n at Socket.emit (node:domain:488:12)\n at addChunk (node:internal/streams/readable:561:12)\n at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)\n at Readable.push (node:internal/streams/readable:392:5)","timestamp":"2025-07-24T21:05:34.592Z"},{"error":"McpError: MCP error -32603: net::ERR_CONNECTION_REFUSED at http://localhost:3001\n at _X0._onresponse (file:///Users/mattkgross/.nvm/versions/node/v22.9.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1338:15726)\n at _transport.onmessage (file:///Users/mattkgross/.nvm/versions/node/v22.9.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1338:12834)\n at J.X.client.transport.onmessage (file:///Users/mattkgross/.nvm/versions/node/v22.9.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:2716:7853)\n at cX0.processReadBuffer (file:///Users/mattkgross/.nvm/versions/node/v22.9.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1340:2306)\n at Socket.<anonymous> (file:///Users/mattkgross/.nvm/versions/node/v22.9.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1340:1672)\n at Socket.emit (node:events:519:28)\n at Socket.emit (node:domain:488:12)\n at addChunk
Note: Error logs were truncated.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗