opencode
opencode copied to clipboard
[FEATURE]: Allow interactive terminal input for commands requiring user input (sudo, passwords, others)
Feature hasn't been suggested before.
- [x] I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
Description
When running commands that require user input (like sudo password prompts), OpenCode should allow the user to temporarily take control of the terminal to enter the input manually.
Use Case
- Installing packages with yay/pacman that require sudo
- Any command needing interactive password input
- SSH connections that need passphrase entry
Current Behavior
Commands that need interactive input fail with: "sudo: a terminal is required to read the password"
Expected Behavior
OpenCode pauses and hands terminal control to the user for input, similar to how Claude Code handles this.