[BUG] Random crash caused by node

Resolved 💬 5 comments Opened Jul 18, 2025 by chunter-rr Closed Jan 4, 2026

Environment

  • Platform (select one):
  • [x] Anthropic API (Claude Code Max Plan)
  • [ ] AWS Bedrock
  • [ ] Google Vertex AI
  • [ ] Other: <!-- specify -->
  • Claude CLI version: 1.0.55 (Claude Code inside vscode)
  • Operating System:
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.5 LTS
Release:        22.04
Codename:       jammy
  • Terminal: vscode terminal

Bug Description

I was working on a project and then randomly it hit an error and closed. I thought I'd just share in case it happens with others. It's only happened to me once, but figure it was worth sharing. It was working as expected and then when claude code was attempting to just make a change to a string in a file, it crashed. I was working with Claude Code using the VScode plugin.

Steps to Reproduce

I honestly don't know how to reproduce it. I've actually never seen this error occur before which is why I'm sharing.

Expected Behavior

No crashing when replacing strings in a file.

Actual Behavior

Crashed when attempting to replace a string in a file.

Additional Context

Here is the terminal and the error when it occurred:

> We need to make sure that all of our models are using the UUID for the id and our postgres 
  instance expects UUIDs for the id column.

● Let me also update the mcp_templates.py file:

● Update(app/api/v1/endpoints/mcp_templates.py)

╭────────────────────────────────────────────────────────────────────────────────────────────────────╮
│                                                                                                    │
│  Opened changes in Visual Studio Code ⧉                                                            │
│  Save file to continue…                                                                            │
│                                                                                                    │
│ Do you want to make this edit to mcp_templates.py?                                                 │
│ ❯ 1. Yes                                                                                           │
│   2. Yes, and don't ask again this session (shift+tab)                                             │
│   3. No, and tell Claude what to do differently (esc)                                              │
│                                                                                                    │
╰────────────────────────────────────────────────────────────────────────────────────────────────────╯


node:internal/process/promises:394
    triggerUncaughtException(err, true /* fromPromise */);
    ^

Error: String not found in file. Failed to apply edit.
    at eP (file:///home/<omitted>/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1649:728)
    at WF4 (file:///home/<omitted>/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:2615:10945)
    at J (file:///home/<omitted>/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:2615:9923)
    at file:///home/<omitted>/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:2615:10189
    at JD (file:///home/<omitted>/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:21529)
    at OY (file:///home/<omitted>/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:41144)
    at file:///home/<omitted>/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:39316
    at Tj1 (file:///home/<omitted>/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:61:78877)
    at Immediate.Nj1 [as _onImmediate] (file:///home/<omitted>/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:61:79295)
    at process.processImmediate (node:internal/timers:485:21)

Node.js v22.15.0

If you need any additional logs or any additional information, please let me know and I'll provide it.

View original on GitHub ↗

This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗