Reading high-resolution image file crashes terminal and system

Resolved 💬 2 comments Opened Feb 22, 2026 by leosebben Closed Feb 22, 2026

Bug Description

When Claude Code attempts to read a high-resolution image file (via the Read tool), it crashes the entire terminal emulator (Ghostty) and destabilizes the system (macOS).

Steps to Reproduce

  1. Have a high-resolution image file accessible locally
  2. Claude Code attempts to read the image using the Read tool (not dragged-and-dropped by the user, but read from a file path)
  3. The terminal crashes, along with all Ghostty sessions

Expected Behavior

Claude Code should handle large/high-resolution images gracefully — either by downscaling, refusing to read files above a certain size, or streaming the content in a way that doesn't overwhelm the terminal.

Actual Behavior

Reading the image crashed all Ghostty terminal sessions and caused system-wide instability on macOS.

Notes

  • Dragging and dropping images directly into the Claude Code CLI works fine
  • The crash only happens when Claude Code reads an image file from disk via the Read tool
  • It's likely related to the image resolution/file size being too large for terminal output

Environment

  • OS: macOS (Darwin 25.2.0)
  • Terminal: Ghostty
  • Claude Code version: latest

View original on GitHub ↗

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