Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
I get a complet ugly unswer (context) after doing a simple ai task:
Can you help to implement caching for videos like (video url see screenshots): i tried your approach but get an error: /home/testusr/.cursor/projects/secret_escaped_home_folder/terminals/1.txt:992-999:
This was the output from my terminal:
Error parsing `/:path(.*\.(mp4|webm|ogg|mov|avi|pdf|zip))` https://nextjs.org/docs/messages/invalid-route-source
Reason: Capturing groups are not allowed at 11
/:path(.*\.(mp4|webm|ogg|mov|avi|pdf|zip))
The agent started, but seems to hang. After a while agent responds but he seems to be in a complete other context from the another project and realize that (see screenshots).
To be clear: i worked here on a Next.js / Typescript / Payload Project, and had none of the mentioned projects on my computer or even use these frameworks or languages. But i got in ai chat answers from running projects like go, python, Flask, Python OpenSearch.
After playing a litte bit arround i found out, that it is reproducable:
The really exciting thing about this is that I have now found my prompt in the cursor’s internal json files ( somewhere in the home directory ~/.cursor/…) and can therefore make a very vague assumption:
- i used key short cut to inject my error log from terminal into chat
- I naively copied also the link of an video file as an example in the chat (i thaught it wo be a url string)
- but in the json files you will see that the prompt is full with video (binary) data (original linke video source is round about 15MB)
- The whole thing seems to completely spam the input prompt.
- And you see also a skill injection (i guess for allowing to open web - links)
- That explains why execution initially freezes completely (response took > 30s)
- and presumably loses the context completely (and gets a different one)?!
So i guess it is a combination of a copied url and a url in the bash (next.js url)
Here is the last Part of my agent json file (i ecaped sensitive data)
I tried it many times see screenshots and i will get every time another context (which the ai summarizes me with a following hacky prompt)
Screenshots / Screen Recordings of reproducable cases (sorry i had to put all screens in one file with gimp)
The GoPipeline Case (Screenshot first item) was interesting - it linked me a plan and wrote at the end:
Pending action: You confirmed (“Yes, please.”) to have this file created — that was the last step before the chat ended. The file has not yet been written.
For me it is unclear what this means:
Security issue?
These cases seems to be something like training data (because they look often like todo / example integrations)? I never find env data or something. But maybe i have to try it again and again until i found some secrets :-/
It is not reproducable, when:
- i take another video than i dosn’t work (may the file size is important or content?,but i have not tried many videos) i guess it is only the size
- i copied only the prompt in new chat - i must copy url direct in chat and link everytime the bash error again
Operating System
Linux
Version Information
Version: 2.6.12
VSCode Version: 1.105.1
Commit: 1917e900a0c4b0111dc7975777cfff60853059d0
Date: 2026-03-04T21:41:18.914Z
Build Type: Stable
Release Track: Default
Electron: 39.6.0
Chromium: 142.0.7444.265
Node.js: 22.22.0
V8: 14.2.231.22-electron.0
OS: Linux x64 6.17.0-108014-tuxedo
For AI issues: which model did you use?
Opus 4.6. thinking and i saw it also with Sonnet 4.5
Additional Information
Looks very similar to another described bugs here:
Does this stop you from using Cursor
No - Cursor works, but with this issue


