claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

[BUG] After /clear command some context seems to be kept in memory?

Open joakimriedel opened this issue 7 months ago • 0 comments

Environment

  • Platform (select one):
    • [x] Anthropic API
    • [ ] AWS Bedrock
    • [ ] Google Vertex AI
    • [ ] Other:
  • Claude CLI version: 1.0.33
  • Operating System: macOS 15.5
  • Terminal: Terminal

Bug Description

I expected the /clear command to do the same as exiting claude and starting again. But it seems some context are still left in memory after clearing.

Steps to Reproduce

  1. In one session, tell Claude Code to use a markdown document (in my case TestPlan.md) as a prd scratchpad.
  2. Delete the TestPlan.md document, then /clear command to clear context
  3. Work with some other session in planning mode, without referring to TestPlan.md.
  4. Claude will try to read and update the TestPlan.md document!

Expected Behavior

Claude should not know about TestPlan.md

Actual Behavior

⏺ Now let me create the test plan document:

⏺ Read(prds/TestPlan.md)
  ⎿  Error: File does not exist.

joakimriedel avatar Jun 24 '25 16:06 joakimriedel