[BUG] memory update feature deletes the CLAUDE.md

Resolved 💬 3 comments Opened Jun 27, 2025 by kyleok Closed Aug 20, 2025

Environment

  • Platform (select one):
  • [ ] Anthropic API
  • [ ] AWS Bedrock
  • [ ] Google Vertex AI
  • [x] Other: Cursor
  • Claude CLI version: 1.0.35 (Claude Code)
  • Operating System: Linux 5.15.0-140-generic #150-Ubuntu SMP Sat Apr 12 06:00:09 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux
  • Terminal: cursor

Bug Description

  1. CLAUDE.md existed with actual contents.
  2. I used # to update it, mentioned project goals.
  3. it updated the CLAUDE.md, but in wrong way. wrote a whole new md, erasing existing contents. with [Remaining content from the original file remains unchanged] in end of the line.

Steps to Reproduce

Does not happen every time when # is used, so not sure it will reproduce, but mentioned on Bug Description

Expected Behavior

update the CLAUDE.md while preserving its contents

Actual Behavior

erased all existing contents, and wrote a small new one with the stuff I asked to memorize only, with [Remaining content from the original file remains unchanged] in end of the line.

Additional Context

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

<img width="482" alt="Image" src="https://github.com/user-attachments/assets/11fffeed-24e4-4395-862f-51eb75cc4ac0" />

View original on GitHub ↗

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