[BUG] Claude Code won't update CLAUDE.md file via /memory command

Resolved 💬 3 comments Opened Apr 4, 2026 by appovo Closed Apr 4, 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?

  • OS: Linux (Ubuntu, kernel 6.17)
  • Shell: zsh
  • Steps: /memory <instruction> → select option 1 → press Enter
  • Observed: terminal artifacts (replacing the select options character by character as I press any key like ^[[O^[[I^[[O memory ✔ Checked in at ./CLAUDE.md) + no CLAUDE.md update.

When I tried again with CLAUDE.md closed, Claude Code opened it and placed cursor at the right place but then the same error occurred. After this all one can do is ctrl+c as the terminal becomes inaccessible.
CLAUDE.md permissions are -rw-rw-r-- and the owner/group is me.

What Should Happen?

Claude should be able to update the CLAUDE.md file via /memory command.

Error Messages/Logs

^[[O^[[I^[[O memory ✔         Checked in at ./CLAUDE.md

Steps to Reproduce

/memory <instruction> → select option 1 → press Enter

Claude Model

Sonnet (default)

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.92

Platform

Anthropic API

Operating System

Ubuntu/Debian Linux

Terminal/Shell

VS Code integrated terminal

Additional Information

Also checked in Gnome Terminal with exactly the same results.

View original on GitHub ↗

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