String Edit Failure: Unable to Apply Modification
Bug Description
node:internal/process/promises:394
triggerUncaughtException(err, true / fromPromise /);
^
Error: String not found in file. Failed to apply edit.
at dP (file:///Users/x/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1650:728)
at pD4 (file:///Users/x/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2611:10945)
at J (file:///Users/x/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2611:9923)
at file:///Users/x/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2611:10189
at GD (file:///Users/x/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:21377)
at wY (file:///Users/x/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:40875)
at file:///Users/x/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:39071
at Dj1 (file:///Users/x/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:61:78877)
at Immediate.o_1 [as _onImmediate] (file:///Users/x/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:61:79295)
at process.processImmediate (node:internal/timers:491:21)
Node.js v22.14.0
Environment Info
- Platform: darwin
- Terminal: iTerm.app
- Version: 1.0.53
- Feedback ID: 056eb278-181a-4b6a-a8fd-bf3ae890d652
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 AI (file:///Users/x/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:728:6320)\n at file:///Users/x/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:640:16554\n at Q (file:///Users/x/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:542:14406)\n at MF (file:///Users/mxbook/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:640:14339)\n at zX (file:///Users/x/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:640:13205)\n at MB (file:///Users/x/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:640:19174)","timestamp":"2025-07-16T09:10:43.568Z"}]This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗