[BUG] Context is not retained for edited messages

Open 💬 0 comments Opened Jun 18, 2026 by ppanchal-mobiz

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?

Context of message is not retained after the previous message is edited. Initially I added only the first 3 points and edited the message to add the 4th point

<img width="1140" height="971" alt="Image" src="https://github.com/user-attachments/assets/9c8e3fb1-2463-4881-889b-6c800a51f091" />

What Should Happen?

The context should be retained.

<img width="754" height="685" alt="Image" src="https://github.com/user-attachments/assets/dd989f33-28e0-4f9a-99b6-f6ef7123b01b" />

Error Messages/Logs

Steps to Reproduce

  1. Send a message to Claude
  2. Wait for the response
  3. Edit the previous message
  4. Wait for the response
  5. Ask any question related to the edited part of the message

Claude Model

Sonnet (default)

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

Claude 1.14271.0 (c8f4d8) 2026-06-18T05:47:57.000Z

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Other

Additional Information

_No response_

View original on GitHub ↗