[BUG] /clear command does not work well on VS Code

Resolved 💬 3 comments Opened Jan 3, 2026 by Josemboa Closed Jan 3, 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?

The cleared content keep appearing, all content since the beginning of the session. After set /clear, the content briefly disappears but suddenly it appears again. The only solution I found was to close the terminal session, open another terminal session and start Claude again.

What Should Happen?

Clear all the screen and keep only the new prompts. Should be a reset and a screen cleansing.

Error Messages/Logs

Steps to Reproduce

  1. /clear
  2. Increase/decrease the height or width of the terminal.

https://github.com/user-attachments/assets/c287cc29-9b56-440c-8a3c-c4dc98ede237

Claude Model

Opus

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.0.76

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

VS Code integrated terminal

Additional Information

_No response_

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗