[Bug] File Edit tool incorrectly handles quoted string values in JSON/PO files

Resolved 💬 5 comments Opened Dec 30, 2025 by KJ7LNW Closed Feb 14, 2026

Bug Description
Claude has a really hard time modifying files that begin and end with quotation marks where the entire line is quoted because it thinks that the quotes indicate content, and then it does not properly escape the content for JSON and PO files, etc.

consider tool guidance like:

+  ## Edit
+  
+  - Match Read output exactly; apply only target file format escaping (e.g., \" for embedded quotes in PO/JSON), never strip structural quotes shown in Read
+ output
+  - Copy content from Read output exactly as shown, including outer quotes that delimit the string value
+  - Escape embedded quotes according to target file format (e.g., \" in PO files), not Edit tool syntax
+  - Edit tool parameters handle their own XML escaping; focus on file format's escaping requirements
+  

Environment Info

  • Platform: linux
  • Terminal: vte-based
  • Version: 2.0.69
  • Feedback ID: d308b806-4980-4da5-aa28-316ea72a8ae2

Errors

[]

View original on GitHub ↗

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