[BUG] /clear initially clears context in Claude Code, but context returns above /clear on subsequent prompts

Resolved 💬 3 comments Opened Jul 29, 2025 by Dave-Pataky Closed Aug 15, 2025

Environment

  • Platform (select one):
  • [ ] Anthropic API
  • [ ] AWS Bedrock
  • [ ] Google Vertex AI
  • [ ] Other: cursor
  • Claude CLI version: Claude Code 1.0.62
  • Operating System: macOS 15.5
  • Terminal: Claude Code integration with cursor

Bug Description

after a coding session, using /clear will initially remove the accumulated context. on subsequent prompts, a portion of the old context will reappear in the context window above the /clear command

Steps to Reproduce

  1. build up some context
  2. /clear it
  3. continue prompting

Expected Behavior

/clear will do as it is designed to, and remove context permanently

Actual Behavior

some context returned

Additional Context

<!-- Add any other context about the problem here, such as screenshots, logs, etc. -->

View original on GitHub ↗

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