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!