Sudo not working (again!) in terminal (Cursor version 2.3.40)

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

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)

Version: 2.3.40
VSCode Version: 1.105.1
Commit: 230922a103262db3487b753c8d1e0a7111c2d780
Date: 2026-01-16T04:42:17.525Z
Electron: 37.7.0
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Linux x64 6.14.0-37-generic

Does this stop you from using Cursor

No - Cursor works, but with this issue

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.

Does this work for you in 2.3.40?

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.