Windows: Long output truncation in PowerShell and file writes
Resolved 💬 4 comments Opened Mar 5, 2026 by tamvejarf Closed Apr 3, 2026
Description
When using Claude Code on Windows 11 with PowerShell, long text output gets truncated. This affects both:
- Terminal output — Long responses are cut off mid-content
- File writes — When Claude Code writes long content to files, the content is also truncated
This means the recommended workaround of "use file-based workflows" does not help, since the truncation happens at a deeper level (likely ConPTY).
Environment
- OS: Windows 11 Pro 10.0.26200
- Terminal: PowerShell (also happens in Windows Terminal)
- Claude Code version: Latest
- Shell: bash
Steps to reproduce
- Open Claude Code in PowerShell on Windows
- Ask Claude to generate or write a long piece of content (e.g., a large file, a lengthy explanation)
- Observe that the output is truncated — not all content is written/displayed
Expected behavior
Full content should be output regardless of length.
Actual behavior
Content is silently truncated after a certain length. No error is shown.
Related issues
- #14723 — Text output truncation
- #14587 — Response text truncated on Windows terminals
- #12870 — PowerShell statusLine truncation
Notes
- This appears to be related to Windows ConPTY limitations
- Switching to Git Bash (mintty) or WSL may work around the issue, but native PowerShell/Windows Terminal support should handle long output correctly
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗