Regression: Agent terminals no longer support sudo or interactive input

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

When the agent attempts to run sudo commands, it fails with the following error message:

sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper
sudo: a password is required

Steps to Reproduce

Ask the agent to run any command requiring sudo or any command requiring user input, click allow if needed.

Expected Behavior

The expected behavior is for the terminal to pause and await user input, I would manually enter my password for sudo, “y” for confirmation prompts, or any other required information. This was last working in 1.5

Screenshots / Screen Recordings

Operating System

Linux

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.7.39
VSCode Version: 1.99.3
Commit: a9c77ceae65b77ff772d6adfe05f24d8ebcb2790
Date: 2025-10-08T00:33:20.352Z
Electron: 34.5.8
Chromium: 132.0.6834.210
Node.js: 20.19.1
V8: 13.2.152.41-electron.0
OS: Linux x64 5.15.0-157-generic

Additional Information

I expect that this is closely related to this issue:

An ideal fix would be to add a toggle to revert the terminal to pre-1.6 behavior.

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey, thanks for the report. Does enabling this option fix the issue?

1 Like

but why?

I can confirm this does cause the terminal session to promtp for the sudo password, rather than skipping over it.

I didn’t see this option before, but this totally fixes it. Thanks!

1 Like

this does not solves anything

This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.