Skip to content

[BUG] /clear command doesnt work and it opens a new chat with the name of "/clear" #53316

Description

@faiqbasharatai-del

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • 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

  1. Open an active Claude Code session in the VSCode extension
  2. Type /clear in the chat input and press Enter
  3. Instead of clearing the conversation, a new session is created named "/clear"
  4. 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

Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:idebugSomething isn't workingplatform:vscodeIssue specifically occurs in VS Codeplatform:windowsIssue specifically occurs on WindowsstaleIssue is inactive

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions