[BUG] Pasted text shows internal hash ID instead of "[Pasted text #N +X lines]" in some CLI sessions

Resolved 💬 1 comment Opened Apr 3, 2026 by dotoricode Closed Apr 15, 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?

When copying text or rendered output from one Claude Code CLI session and pasting into another, the content is sometimes displayed as a raw internal hash (e.g. b33cfec6) instead of the expected [Pasted text #N +X lines] placeholder. This affects multiple content types: plain text, stop hook error logs, and terminal-rendered output. The same clipboard content may paste correctly in one session but show a hash in another.

What Should Happen?

Pasted content should always display as [Pasted text #N +X lines] (collapsed block) or the actual text, regardless of which CLI session it is pasted into.

Error Messages/Logs

Steps to Reproduce

  1. Open two Claude Code CLI sessions (Session A and Session B)
  2. In Session A, trigger any output — e.g. a response, a hook error message, or any multi-line text
  3. Select and copy that output from Session A
  4. Switch to Session B and paste
  5. Observe: in some sessions, the pasted content appears as a short hash string (e.g. b33cfec6) instead of the full content

or the expected [Pasted text #N +X lines] placeholder

Note: The bug is intermittent and not session-specific.
The same session can exhibit both correct and incorrect paste behavior at different times, making consistent reproduction difficult.

Claude Model

Sonnet (default)

Is this a regression?

No, this never worked

Last Working Version

_No response_

Claude Code Version

2.1.91 (Claude Code)

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Warp

Additional Information

_No response_

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗