opencode icon indicating copy to clipboard operation
opencode copied to clipboard

[FEATURE]: Allow interactive terminal input for commands requiring user input (sudo, passwords, others)

Open kaizen403 opened this issue 2 days ago • 2 comments

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.

kaizen403 avatar Jan 13 '26 00:01 kaizen403