claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

[BUG] Pasted text repeatedly truncated mid-word when pasting long content into chat

Open markspivey opened this issue 2 months ago • 2 comments

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

When pasting multi-paragraph text into the chat input (~200-400 words), the pasting action appeared to work, but the actual text was truncated mid-word when rendered. But because the pasted content is summarised in the console, it is not obvious that the content has been truncated until after submitting and receiving Claude's response.

The truncation occurs at seemingly random positions, not at consistent character counts. This happened repeatedly across multiple separate paste operations in the same session.

What Should Happen?

The full pasted text should render completely in the chat, matching what exists in the clipboard and displays correctly in other text editors.

Error Messages/Logs

No error messages displayed. The text simply appears truncated without warning.

Steps to Reproduce

Steps to Reproduce:

  1. Copy a multi-paragraph text block (~200-400 words) containing structured content (e.g., bullet points with headers like "xxx:", "xxx:", "xxx:", "xxx:")
  2. Paste into Claude Code chat input
  3. Submit the message
  4. Observe that the message analysed is truncated

Note: The same text pastes completely in VS Code, Notepad, or other editors. The truncation only appears in Claude Code's chat rendering.

Claude Model

Opus

Is this a regression?

Yes, this worked in a previous version

Last Working Version

Unknown

Claude Code Version

2.0.59 (Claude Code)

Platform

Other

Operating System

Windows

Terminal/Shell

Windows Terminal

Additional Information

  • Issue occurred multiple times in same session with different text blocks
  • Truncation point varies (not consistent character count)
  • Session involved back-and-forth conversation with multiple tool calls (Read, file operations)
  • User confirmed full text exists in clipboard by pasting into external editor

markspivey avatar Dec 05 '25 05:12 markspivey

  • I am on 2.0.61, still broken
  • Windows 11
  • Happens in both PowerShell AND CMD (rules out terminal-specific cause)
  • Truncates even small text, not just 200-400 words
  • Typing works fine, only paste is affected

nathanielcrowell12-spec avatar Dec 07 '25 20:12 nathanielcrowell12-spec