Lost context to pasted text

Resolved 💬 3 comments Opened Jun 4, 2025 by parikshit223933 Closed Jun 8, 2025

Environment

  • Platform (select one):
  • [ ] Anthropic API
  • [ ] AWS Bedrock
  • [ ] Google Vertex AI
  • [x] Other: anthropic api
  • Claude CLI version: 1.0.11
  • Operating System: Macos 15.5
  • Terminal: iTerm2

Bug Description

  1. I gave an input prompt to claude code
  2. It started working on it.
  3. I pasted some large content in the input box where it says: [Pasted text # 1 +1198 lines]
  4. Since the existing prompt was being processed and it wanted to use a tool, it asked me for permission
  5. I gave the permission and when it stopped processing the current prompt, i sent my prewritten message with large text
  6. My message was not expanded. it was sent as the string "[Pasted text # 1 +1198 lines]"
  7. Apparantly it lost the context to what i actually pasted.

Steps to Reproduce

Mentioned above

Expected Behavior

It should have the context of the large text that was pasted

Actual Behavior

it lost the actual text that was pasted and remembered the string "[Pasted text #1 +1198 lines]" instead

Additional Context

https://github.com/user-attachments/assets/adf6f734-c111-47a9-8e28-e8547d4021e3

View original on GitHub ↗

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