Skip to content

[BUG] /clear does not reset session context (Windows 11) #77034

Description

@DMC82-web

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?

Running /clear appears to execute successfully (no error, empty stdout), but the entire prior conversation remains fully accessible to the model in subsequent turns, and the terminal does not switch to the fresh-session view (no Claude logo screen reset, as normally happens after a successful /clear).

What Should Happen?

/clear should fully reset the session context, and the terminal should show a fresh session screen.

Error Messages/Logs

None — the command produced no error. It appeared as <local-command-caveat>/<command-name>clear</command-name> with empty stdout, indistinguishable from a normal successful run except for the context not actually being cleared.

Steps to Reproduce

  1. Run a normal working session with substantial conversation history.
  2. Run /clear.
  3. Observe that the previous conversation is still accessible to the model in the next turn, and the screen did not reset.

Claude Model

Sonnet (default)

Is this a regression?

No, this never worked

Last Working Version

No response

Claude Code Version

2.1.207

Platform

Other

Operating System

Windows

Terminal/Shell

PowerShell

Additional Information

Observed 2026-07-06. Related to a second anomaly seen in the same session window — see linked /usage percentage issue (post both and cross-link with the resulting URLs).

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:tuibugSomething isn't workingplatform:windowsIssue specifically occurs on Windows

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions