[BUG] Scrolling terminal in powershell and VScode extension, broken formatting
Status Fixed / completed
Maintainer reply None cached
Workaround ✓ Mentioned in thread ↓
Activity 5 comments · opened Sep 22, 2025 · closed Oct 24, 2025
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?
The powershell terminal scrolls and has broken formatting.
<img width="1884" height="1120" alt="Image" src="https://github.com/user-attachments/assets/794e9143-71ff-4fe7-bb87-a0fc15f174a0" />
<img width="1900" height="1135" alt="Image" src="https://github.com/user-attachments/assets/921c0f02-2c2a-4233-b85b-2ad2c208bbb9" />
What Should Happen?
Normal behavior and formatting, i.e. useful.
Error Messages/Logs
Steps to Reproduce
Use claude code...
Claude Model
Not sure / Multiple models
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
1.0.120
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
PowerShell
Additional Information
_No response_
5 Comments
You can somewhat "temporarily" fix this by using the alt+z command to resize the terminal to window - but it's not a sure fix, and it also routinely causes the entire window to be shifted over.
This still happens in Claude 2.0 and is really annoying.
For me this happens as soon as I resize the terminal / change to a different terminal and back again.
The only current way to "fix" it is to stop the chat, create a new window and then run /resume, but as soon as the window gets resized again it breaks. This only happens in the vscode window, and may be related to some of the vscode terminal rendering issues itself, but it'd be nice to know if there was a workaround/something that could be done from the anthropic side. The VSCode extension chat does not have these issues, but does not support the full toolset of the terminal integration.
E.g. after using ctrl+z then sending a message I end up with:
<img width="462" height="421" alt="Image" src="https://github.com/user-attachments/assets/aeb0deb1-c0de-4255-87f3-b0575dd6d567" />
If my sidebar is closed, this does not occur. It seems to get confused by the size of the window if the sidebar is open. Is this a VSCode issue?
For reference, the VS Code setting to disable the sidebar is:
"terminal.integrated.tabs.enabled": falseAlternatively, using a popped out terminal (Command "Terminal: New Terminal Window" or "Move Terminal into New Window") or even "Move Terminal into Editor Area" seem to work.
2.0.26 seems to have remedied this.
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.