I am not sure which version this issue appeared, but it has been present since at least 1.5. Cursor is no longer able to use sudo due to the session not having a TTY. Since 1 or 2 months I’ve had to cut and paste every single sudo command into a terminal and run it and cut and paste the result back into the agent. Very time consuming and no longer automatic as it was before when sudo worked!
Steps to Reproduce
Install cursor on Ubuntu 24.04 LTS, try to do anything that required root access!
Expected Behavior
Previously it ran an interactive shell (and I could enter the password, which it would cache for a while).
Operating System
Linux
Current Cursor Version (Menu → About Cursor → Copy)
I started experiencing this today with background agents. This morning I could spin up background agents, but this afternoon they all fail on sudo apt-get install commands with the error you mentioned.
Same here. Kubuntu 24.04 (Linux x64), latest Cursor version 1.7.46. It wanted to run a ‘sudo apt get’ but it got auto-rejected as it said it lacked permissions. Have yet to try the suggested workaround of enabling the legacy terminal. Not a great first experience coming from Copilot where this “just works”.
Also had a chat stall on me without any progress. Never had that on Copilot.
Wow, I’m not the only one. I just canceled my subscription. This is really a ■■■■■■■ mess. Sometimes it works after I talked the AI into finally using the terminal correctly. After a restart of cursor it forgets and I’m again working 30 min to get it into using the terminal. Right now I have a “Agent terminals are read only” message inside the terminal.
Bye Cursor Subscription. Is was nice, but I’ll try something else now. Obviously this is a known issue for months now and the Devs aren’t interested i fixing it.
Btw I activated legacy terminal in settings, since then it only “sometimes” uses the terminal correctly.