IssueRaiser

[BUG] CLI output formatting artifacts break copy/paste - workarounds waste tokens

## Summary Claude Code CLI adds formatting artifacts to ALL output that break copy/paste workflows: - **2-space leading indentation** on every line - **Hard line breaks at ~80 characters** (breaks words mid-character) These artifacts are included when copying text, requiring manual cleanup for every paste operation. ## Environment - **Platform:** WSL2 on Windows 11 (also reported on macOS, native Linux) - **Claude Code Version:** 2.0.x - **Terminal:** Various (Windows Terminal, iTerm, Terminal.app) ## Reproduction 1. Run any Claude Code session 2. Have Claude output multi-line text (commands, code, prose) 3. Copy the output to clipboard 4. Paste into a plain text editor **Expected:** Clean text matching what Claude generated **Actual:** Text has 2-space indent on each line + hard breaks at ~80 chars ## Impact ### Workflow Disruption Every copy/paste requires cleanup: - VSCode: Select all → Shift+Tab to remove indent - Manual deletion of unwanted line breaks - Commands fail silently when pasted (extra spaces/breaks) ### Token Cost of Workarounds Users have resorted to adding prompts in CLAUDE.md memory files like: > "Use `\` line continuations for commands to survive copy/paste" These workarounds **consume tokens on every session**. Users are paying (in tokens and context window) to work around a rendering bug. Across the user base, this adds up significantly. ### Community Workarounds Shouldn't Be Necessary Tools like [`claude-fix`](https://github.com/freyjay/clau

Posted by pentafive on Dec 23, 2025, 11:03 PM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.2,000 issues0 comments

pricing (SaaS)

[BUG] CLI output formatting artifacts break copy/paste - workarounds waste tokens

pentafiveDec 23, 2025, 11:03 PM

## Summary Claude Code CLI adds formatting artifacts to ALL output that break copy/paste workflows: - **2-space leading indentation** on every line - **Hard line breaks at ~80 characters** (breaks words mid-character) These artifacts are included when copying text, requiring manual cleanup for every paste operation. ## Environment - **Platform:** WSL2 on Windows 11 (also reported on macOS, native Linux) - **Claude Code Version:** 2.0.x - **Terminal:** Various (Windows Terminal, iTerm, Terminal.app) ## Reproduction 1. Run any Claude Code session 2. Have Claude output multi-line text (commands, code, prose) 3. Copy the output to clipboard 4. Paste into a plain text editor **Expected:** Clean text matching what Claude generated **Actual:** Text has 2-space indent on each line + hard breaks at ~80 chars ## Impact ### Workflow Disruption Every copy/paste requires cleanup: - VSCode: Select all → Shift+Tab to remove indent - Manual deletion of unwanted line breaks - Commands fail silently when pasted (extra spaces/breaks) ### Token Cost of Workarounds Users have resorted to adding prompts in CLAUDE.md memory files like: > "Use `\` line continuations for commands to survive copy/paste" These workarounds **consume tokens on every session**. Users are paying (in tokens and context window) to work around a rendering bug. Across the user base, this adds up significantly. ### Community Workarounds Shouldn't Be Necessary Tools like [`claude-fix`](https://github.com/freyjay/clau

Comments (0)

No comments yet. Start the discussion.

Comment on this issue