[BUG] /clear command doesnt work and it opens a new chat with the name of "/clear"
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?
Typing /clear in the chat input does not clear the current conversation. Instead, it opens a new session with "/clear" as the session name. The original conversation remains unchanged and the session list accumulates multiple entries titled "/clear".
What Should Happen?
The /clear command should clear the current conversation context within the active session, not create a new one.
Error Messages/Logs
Steps to Reproduce
- Open an active Claude Code session in the VSCode extension
- Type /clear in the chat input and press Enter
- Instead of clearing the conversation, a new session is created named "/clear"
- Repeating this creates multiple sessions all named "/clear" in the session history
Claude Model
Sonnet (default)
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.113
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
VS Code integrated terminal
Additional Information
<img width="1277" height="497" alt="Image" src="https://github.com/user-attachments/assets/6a1a34f7-410f-4dd7-9037-83fb421d61b8" />
<img width="538" height="421" alt="Image" src="https://github.com/user-attachments/assets/03cf22db-a5c5-4378-badb-e2ae0b66a72b" />
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗