This is a recurring bug that keeps gettting fixed, then seemingly broken again. As of the latest cursor version it is broken again. I.e. the agent cannot use sudo as the terminal is no longer interactive (and “legacy terminal” does not work).
Steps to Reproduce
Install cursor version 2.3.40
Operating System
Linux
Current Cursor Version (Menu → About Cursor → Copy)
Hey, thanks for the report. This is a known issue with sudo on Linux and it’s already in our backlog.
Since Legacy Terminal doesn’t help, try this other workaround: when the agent asks for input (like a sudo password), a small arrow should appear at the top of the command block. Click it to open a full interactive terminal where you can enter the password.
Hey I have the same issue with 2.4.21. It worked in the previous version though.
Your workaround doesn’t help, the command fails/cursor skips it too quickly, there’s no chance of opening the terminal and typing my password.