When sudo-rs is invoked from kiro-cli (an AI coding assistant that executes shell commands), the interactive password prompt hangs —keystrokes are not properly transferred and raw escape sequences appear instead of typed characters. Classic sudo works fine in the same environment.
Steps to reproduce:
- Run kiro-cli chat on Ubuntu 26.04
- Have it execute sudo -k && sudo whoami
- Password prompt hangs, input is garbled
Evidence:
- sudo -k && sudo whoami → hangs, no usable password prompt (sudo-rs 0.2.13)
- sudo.ws -k && sudo.ws whoami → works perfectly, password prompt appears and accepts input (classic sudo 1.9.17)
- Tested in multiple terminal emulators (kitty, built-in terminal) — same behavior
- On WSL2 with Ubuntu 25 (classic sudo), sudo works fine in the same tool
Expected behavior:
sudo-rs should handle the password prompt the same way classic sudo does, regardless of how the PTY is set up by the calling application.
Environment:
- sudo-rs 0.2.13-0ubuntu1
- Ubuntu 26.04 LTS
- Classic sudo 1.9.17 (works correctly)
- kiro-cli 2.2.0
Related:
When sudo-rs is invoked from kiro-cli (an AI coding assistant that executes shell commands), the interactive password prompt hangs —keystrokes are not properly transferred and raw escape sequences appear instead of typed characters. Classic sudo works fine in the same environment.
Steps to reproduce:
Evidence:
Expected behavior:
sudo-rs should handle the password prompt the same way classic sudo does, regardless of how the PTY is set up by the calling application.
Environment:
Related: