Claude is Unable to See Code Pasted in AI Chat (0.44.11)

When I copy/paste code from my Jupyter notebook into the chat window, Claude will reply:

“Could you please share the ___ code so I can help diagnose and fix the issue? Without seeing the current implementation, it’s difficult to identify exactly what might be causing the __ error.”

or:

“I don’t see the ___ code you’re trying to share. Could you paste it again?”

I can also click the “+” symbol and add the entire file and it’s still not accessible to the AI. Any help would be appreciated here as cursor is essentially unusable at this point.

Hey, does this also happen in new sessions?

Yes, I tried creating a new session and still experience this same issue.

hey, happy to dig into this! could you please share a request id? note that privacy mode has to be disabled in settings > general before generating

  1. press Cmd+Shift+P (Mac) / Ctrl+Shift+P (Windows)
  2. type “Report AI Action”
  3. select the failed one
  4. select “Copy Request ID”

Thanks for reaching out! The next time this happens I’ll follow these steps. If anyone else is experiencing this same issue please feel free to paste your request ID here on this thread.

(Note: This is an intermittent issue. Cursor will work fine for a few hours and then it suddenly loses the ability to see the code I’m sharing)

1 Like

Here’s the ID for a request that failed to find the shared code:
dbd0efba-a660-48ac-95b7-cdf88b036c5d

And another for comparison:
4c1e400d-45f6-4ed1-b0cd-163c1f12e5eb

Thanks for looking into this!

great, thank you so much! will look into this and get back to you

Do you have privacy mode on? I can’t read these req-ids. If you are able to turn off privacy mode, make a new request in that thread that fails, and then send me it it would be really helpful

I just disabled privacy mode and will circle back the next time it happens.

Here’s a new request ID:

9a993bef-a328-4f80-acb0-14f97e393189

This keeps happening to me too and I’d really appreciate support; I’ve disabled privacy mode and here’s a request ID from my current chat which has done this several times:
7426d5a9-396d-4240-859e-4d7b913daa8b

and another:
5dafe4dc-4063-4760-ad74-b9c26824f649

CC/@msfeldstein :bowing_man:

@msfeldstein and @ericzakariasson any updates here? I continue to receive this error and it’s grinding progress down to a halt at the moment. Thanks!

Here’s another report ID with the same error:
2d079062-4dfe-453e-baca-a9f5011585f4

@Sonified we did identify and fix an issue with context disappearing and not being able to be re-added, i think you might be having a different issue, will DM to debug

Another example from tonight:
Request ID: 7090590a-e1c9-4e4f-9a58-ec2d454ea125

and another:
ID: 141396f2-6650-4066-9fb7-1278ef4a5125

This should be fixed in the latest version - let me know if you’re still seeing any issues with Claude not being able to see your code