[Bug] Edit tool produces curly quotes in JavaScript property values when content contains curly quotes inside backticks

Resolved 💬 4 comments Opened Mar 5, 2026 by danmana Closed Apr 4, 2026

Bug Description
The Edit tool keeps getting confused and uses curly quotes for js property values. happens when some strings (within backticks) have curly quotes in content. claude keeps writing ts like { type: “markdown”, text: ...“something” ... } using curly quotes instead of ascii quotes

Environment Info

  • Platform: darwin
  • Terminal: cursor
  • Version: 2.1.69
  • Feedback ID: a0cf2440-4251-423b-b0e5-4c3d458983d6

Errors

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/dan/.local/share/claude/versions/2.1.69 (expected in multi-process scenarios)\n    at NS_ (/$bunfs/root/src/entrypoints/cli.js:2397:2066)\n    at zpR (/$bunfs/root/src/entrypoints/cli.js:2397:1210)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-03-05T11:05:31.023Z"},{"error":"Error: File has been unexpectedly modified. Read it again before attempting to write it.\n    at call (/$bunfs/root/src/entrypoints/cli.js:5861:1051)\n    at async Ja$ (/$bunfs/root/src/entrypoints/cli.js:3465:14916)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-03-05T11:12:22.604Z"},{"error":"Error: Request was aborted.\n    at hG_ (/$bunfs/root/src/entrypoints/cli.js:1128:66928)\n    at next (native:1:11)\n    at V57 (/$bunfs/root/src/entrypoints/cli.js:5883:3256)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-03-05T11:26:01.531Z"}]

View original on GitHub ↗

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