tsurutanmen
tsurutanmen
Two follow-up measurements, same version (2.1.280), Sonnet 5, `claude -p --resume`: - **Auto-compaction does not show it.** With `CLAUDE_CODE_AUTO_COMPACT_WINDOW=100000`, the same ground-rules opening followed by two large pasted logs triggered...
Update for anyone following this: 2.1.296 changes Edit from silently corrupting to refusing, per its changelog. Checked on Windows 11 with a Windows-1252 C# file (Italian accents in a comment...
A related case on Windows with Japanese: Write also **removes a BOM that an existing `.ps1` already has**, so a script someone fixed by hand breaks again the next time...
Confirmed the two things you flagged, on Windows PowerShell 5.1 (5.1.26100), CLI 2.1.296. **The parse failure is real, and it is character-dependent.** A BOM-less UTF-8 `.ps1` with `Write-Output "こんにちは"` alone...
Independent repro on a second machine, from the desktop app's Code tab, with a newer Git for Windows. **Environment:** Claude Desktop Code tab running Claude Code 2.1.295 (`%APPDATA%\Claude\claude-code\2.1.295\…\claude.exe`), Windows 11...
The 2.1.296 changelog says Edit now refuses files that are not valid UTF-8. On 2.1.295 the Edit in this report still corrupts the file (107 → 182 bytes, 38 U+FFFD,...
Confirmed on 2.1.296: the Edit corruption is fixed. Edit now refuses the Shift_JIS edit (matching the 2.1.296 changelog), and the file is left byte-for-byte intact (107 bytes, still valid CP932)...
Hi, I ran into this issue and would like to work on a fix. I reproduced it locally on current main (post-4.23.1): with `data.name_mapping_strategy.output` set to a snake-case mapper, a...
A byte-level repro on Windows with v2, since the earlier comments only reasoned about it. **Environment:** Windows 11 (Japanese locale), Python 3.11.4, `mcp` 2.3.0 from PyPI in a fresh venv....