Input box truncates pasted text on Windows Server 2022 / PowerShell

Resolved 💬 1 comment Opened May 23, 2026 by MichelBeugnon Closed Jun 23, 2026

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 moderately long text into the Claude Code prompt input field, some of the content is silently truncated — the final prompt reaching the agent is shorter than what was on the clipboard. No error, warning, or visible truncation indicator is shown.

This happens on Windows Server 2022 (PowerShell 5.1).

What Should Happen?

The full clipboard contents should reach the prompt — or, if there is a length limit, a visible warning/truncation indicator should appear so the user knows something was dropped.

Error Messages/Logs

(No console output observed — the truncation is silent.)

Steps to Reproduce

  1. Copy a multi-line block (e.g. a JSON blob or stack trace, ~2 KB or more) to clipboard.
  2. Paste into the Claude Code prompt input field.
  3. Submit.
  4. Observe that the model received less than was pasted.

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.1.146 (Claude Code)

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

PowerShell

Additional Information

Forces a workaround of saving the text to a file and reading it via the Read tool, which adds friction to every long-paste scenario.

Environment notes:

  • OS: Windows Server 2022 Standard (10.0.20348)
  • Shell: PowerShell 5.1
  • Terminal: Windows Terminal / native PowerShell host

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗