[BUG] Claude VSCode Extension: Chat output splits every word or character into a new line
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 using the Claude VSCode Extension chat, the agent's plain text output is split so that each word or character appears on a separate line. For example, if the answer should be "I'm doing well, thanks!", it appears as:
I'm
doing
well
,
thanks
!
This only affects the chat/plain text answers. Code blocks and editor outputs are not split.
What Should Happen?
Claude should produce chat answers as regular, properly formatted sentences.
Error Messages/Logs
No error messages appear. The issue is visual/output formatting only.
Steps to Reproduce
Open VSCode and the Claude VSCode Extension.
Ask the Claude agent a plain text question in the chat, like "How are you?".
The reply will be split so that each word or character appears on a new line, instead of in a normal sentence.
See attached screenshot for an example.
<img width="1296" height="763" alt="Image" src="https://github.com/user-attachments/assets/4a1318d4-c0ad-40b0-8c24-bfd16ab29df3" />
Claude Model
Sonnet (default)
Is this a regression?
Yes, this worked in a previous version
Last Working Version
idk
Claude Code Version
2.0.50 (Claude Code)
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
VS Code integrated terminal
Additional Information
Tried changing VSCode theme and updating extension, issue persists.
Issue affects only chat/message output, not code or formatted editor responses.
Attaching screenshot for reference (see below).
9 Comments
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
Root Cause: VSCode Markdown Rendering Bug
Your chat output is being treated as Markdown list items instead of plain text.
Why This Happens
VSCode's webview renderer sees each line break and interprets it as:
Instead of:
Root cause: Claude Code VSCode extension is inserting
\nafter every word/token in streaming response.Immediate Workaround
Option 1: Use Terminal Instead
Option 2: Copy/Paste Output
Option 3: Downgrade Extension
Technical Analysis
Suspect code location (in VSCode extension):
Proper Fix (For Anthropic Team)
In webview message handler:
Or simpler - remove extra newlines:
Verification
After fix:
Why This is a Regression
v2.0.49: Worked correctly
v2.0.50+: Started splitting every word
Likely change: Streaming implementation was modified to improve responsiveness but introduced newline bug.
Related Issues
This might be the same root cause as:
Suspect: Unified text rendering pipeline was changed across all interfaces.
---
Workaround: Use terminal CLI instead of VSCode extension until fixed.
Priority: P1 - Breaks primary use case (VSCode chat)
@JuanCS-Dev it also happened to Claude Code CLI
this is happening with me in cli and the extensions both. i tried downgrading it but then it was not able to receive any response. i tried downgrading to all from latest to 2.0.35.
please fix this asap
Hi, It is not working on both claude code cli and claude code vs code extension. Both of them are basically unusable now due to the new lines after each word generation. This is a critical issue, please fix it
Happened to me in the CLI, but only on Mac. On Linux, it work fine
just tested it, it working for me in version 2.0.54
After updating to version 2.0.55, the issue no longer occurs.
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.