[Bug] Memory Save Fails with EINVAL Write Error
Resolved 💬 4 comments Opened Aug 26, 2025 by tlewers01 Closed Dec 16, 2025
Bug Description
Saving to memory "# Test" throws an exception .js:752:6555
at aN5 (file:///C:/Users/Tommy%20Lewers/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:3169:3065)
at iN5 (file:///C:/Users/Tommy%20Lewers/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:3169:1556) {
errno: -4071,
code: 'EINVAL',
syscall: 'write'
}
Node.js v22.16.0
Environment Info
- Platform: win32
- Terminal: windows-terminal
- Version: 1.0.92
- Feedback ID: 216c1d91-8a9d-4ae7-9ddc-1dc68663ee92
Errors
[{"error":"Error: String not found in file. Failed to apply edit.\n at fP (file:///C:/Users/Tommy%20Lewers/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1822:728)\n at tH0 (file:///C:/Users/Tommy%20Lewers/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1822:104)\n at Object.renderToolUseRejectedMessage (file:///C:/Users/Tommy%20Lewers/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1879:970)\n at shB (file:///C:/Users/Tommy%20Lewers/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:3167:1799)\n at $z (file:///C:/Users/Tommy%20Lewers/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:330:19415)\n at Ic (file:///C:/Users/Tommy%20Lewers/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:332:42814)\n at eQ (file:///C:/Users/Tommy%20Lewers/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:332:38355)\n at _b (file:///C:/Users/Tommy%20Lewers/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:332:38283)\n at jz (file:///C:/Users/Tommy%20Lewers/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:332:38137)\n at kH (file:///C:/Users/Tommy%20Lewers/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:332:35216)","timestamp":"2025-08-26T13:48:06.204Z"}]This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗