[BUG] when using /clear in Claude Code, it doesn't reset the context counter to zero. I added a context meter to the bottom of the CLI but when I use clear, the context usage displayed remains that of the previous context usage of the previous chat.

Resolved 💬 2 comments Opened Jan 16, 2026 by thoughtfission Closed Jan 16, 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?

When using /clear in Claude Code, it doesn't reset the context counter to zero. I added a context meter to the bottom of the CLI but when I use clear, the context usage displayed remains that of the previous context usage of the previous chat.

What Should Happen?

Claude should reset the context usage to zero when /clear is used in the CLI

Error Messages/Logs

None

Steps to Reproduce

Check the context count after using /clear

Claude Model

Opus

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

latest

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

PowerShell

Additional Information

<img width="3824" height="675" alt="Image" src="https://github.com/user-attachments/assets/9c1c7952-27d3-4d62-8b21-a19389f8dcd5" />

View original on GitHub ↗

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