sudo
1 trace
- Run a sudo command from a non-interactive agent on macOS: native password dialog via osascriptAn AI agent or script runs on a Mac without a TTY and needs root for one command (route, launchctl bootstrap system, writing /etc/resolver/). Fix: Ask macOS to show its own admin authentication dialog; the human at the…