[BUG] Claude Code exits with error when I paste é (U+00E9)
Environment
- Platform (select one):
- [x] Anthropic API
- [ ] AWS Bedrock
- [ ] Google Vertex AI
- [ ] Other: <!-- specify -->
- Claude CLI version: 0.2.35 (Claude Code)
- Operating System: macOS Sonoma 14.7 (M1)
- Terminal: iTerm2
Bug Description
Claude Code exits with "Failed to find wrapped line in original text" when I paste é (U+00E9)
Steps to Reproduce
- Copy the Latin small letter e with acute character from the phrase "Cœur Brisé" into the clipboard.
- Paste the Latin small letter e with acute character into Claude Code (or a longer string containing the character)
Expected Behavior
The Latin small letter e with acute character should show up in the Claude Code prompt input box.
Actual Behavior
Claude Code immediately exits, with these error messages:
Debug: Failed to find wrapped line in original text Debug: Current text: é Debug: Full original text: é Debug: Search offset: 0 Debug: Wrapped text: é
Error: Failed to find wrapped line in original text
at JW0.measureWrappedText (file:///Users/peterkaminski/.nvm/versions/node/v20.18.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:513:397)
at new JW0 (file:///Users/peterkaminski/.nvm/versions/node/v20.18.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:510:712)
at W8.fromText (file:///Users/peterkaminski/.nvm/versions/node/v20.18.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:507:14025)
at W8.modifyText (file:///Users/peterkaminski/.nvm/versions/node/v20.18.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:508:1557)
at W8.insert (file:///Users/peterkaminski/.nvm/versions/node/v20.18.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:508:1615)
at file:///Users/peterkaminski/.nvm/versions/node/v20.18.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:1020:1068
at G2 (file:///Users/peterkaminski/.nvm/versions/node/v20.18.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:1021:39)
at wrappedOnInput (file:///Users/peterkaminski/.nvm/versions/node/v20.18.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:1021:623)
at file:///Users/peterkaminski/.nvm/versions/node/v20.18.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:486:2736
at I.Z.batchedUpdates (file:///Users/peterkaminski/.nvm/versions/node/v20.18.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:77:50746)
Additional Context
No additional context.
6 Comments
Nice bug report, thanks
Have the same problem after the msot recent update. Signficant slow down as sessions have to be restarted and all context is lost. Is it possible to get instruction to downgrade to the previous version please whilst this is fixed?
To give more context - anytime I past any code in the claude code chat interface, it hangs and I have to restart.
Also happens for me frequently when pasting anything longer than a few lines. It becomes unresponsive and requires a restart
We do have issues with long paste, especially in VS Code. However the original report of the problem with accented text does not repro for me, even in VS Code terminal
Can confirm, with an updated Claude Code, this no longer occurs.
Claude CLI version: 0.2.69 (Claude Code)
Operating System: macOS Sonoma 14.7 (M1)
Terminal: iTerm2
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.