I think it's more that the harnesses created by the labs are... not always the most thoughtful.
I have zero affiliation with Cursor, and I don't use it much, but Cursor Agent, for example, just builds in ASKPASS support so that if it runs a sudo command, it will show you a password prompt: