[Bug] File Update Error with Parallel Agent Execution in VSCode
Resolved 💬 3 comments Opened Nov 18, 2025 by remcovolmer Closed Nov 22, 2025
Bug Description
I keep encountering an error when trying to update a file in a worktree. Don't know wether it is relevant but i am running a parallel agent in a split terminal in vscode and that agent working fine, that agent is working in another worktree on a different issue.
Environment Info
- Platform: win32
- Terminal: vscode
- Version: 2.0.44
- Feedback ID: e7c7ba63-a8a5-40ca-8dad-77f2cb951990
Errors
[{"error":"Error: File has been unexpectedly modified. Read it again before attempting to write it.\n at Object.call (file:///C:/Users/remco/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1857:754)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async q35 (file:///C:/Users/remco/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:2005:49075)","timestamp":"2025-11-18T16:01:48.322Z"},{"error":"Error: File has been unexpectedly modified. Read it again before attempting to write it.\n at Object.call (file:///C:/Users/remco/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1857:754)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async q35 (file:///C:/Users/remco/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:2005:49075)","timestamp":"2025-11-18T16:02:13.988Z"},{"error":"Error: File has been unexpectedly modified. Read it again before attempting to write it.\n at Object.call (file:///C:/Users/remco/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1857:754)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async q35 (file:///C:/Users/remco/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:2005:49075)","timestamp":"2025-11-18T16:02:55.008Z"},{"error":"Error: File has been unexpectedly modified. Read it again before attempting to write it.\n at Object.call (file:///C:/Users/remco/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1857:754)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async q35 (file:///C:/Users/remco/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:2005:49075)","timestamp":"2025-11-18T16:03:18.002Z"}]This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗