[BUG] image files are not saved when double ESC to edit previous messages. The text will be there but the image files will not be there.

Resolved 💬 2 comments Opened Feb 4, 2026 by eon-dev1 Closed Mar 5, 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?

Image files are not saved when double ESC to edit previous messages. The text will be there but the image files will not be there.

What Should Happen?

The image files should be saved for re-submission when you double ESC to edit a previous message.

Error Messages/Logs

Steps to Reproduce

Paste images to terminal, wait for response, double ESC to last message and observe that the images are no longer attached.

Claude Model

Opus

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.31

Platform

Anthropic API

Operating System

Ubuntu/Debian Linux

Terminal/Shell

VS Code integrated terminal

Additional Information

_No response_

View original on GitHub ↗

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