Skip to content

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

Description

@markspivey

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:tuibugSomething isn't workinghas reproHas detailed reproduction stepsplatform:windowsIssue specifically occurs on WindowsstaleIssue is inactive

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions