claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

Lost context to pasted text

Open parikshit223933 opened this issue 8 months ago • 2 comments

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

parikshit223933 avatar Jun 04 '25 21:06 parikshit223933

Had claude code been open sourced I would have loved to work on these issues :(

parikshit223933 avatar Jun 04 '25 21:06 parikshit223933

Thanks for your report! I can investigate a solution so you can get back to building cool stuff.

dicksontsai avatar Jun 04 '25 22:06 dicksontsai

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.

github-actions[bot] avatar Aug 09 '25 14:08 github-actions[bot]