claude-code
claude-code copied to clipboard
[BUG] After /clear command some context seems to be kept in memory?
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
- In one session, tell Claude Code to use a markdown document (in my case TestPlan.md) as a prd scratchpad.
- Delete the TestPlan.md document, then /clear command to clear context
- Work with some other session in planning mode, without referring to TestPlan.md.
- 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.