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

Open
opened 2026-02-16 17:48:30 -05:00 by yindo · 0 comments
Owner

Originally created by @kaizen403 on GitHub (Jan 12, 2026).

Originally assigned to: @thdxr on GitHub.

Feature hasn't been suggested before.

  • 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.

Originally created by @kaizen403 on GitHub (Jan 12, 2026). Originally assigned to: @thdxr on GitHub. ### 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.
yindo added the discussion label 2026-02-16 17:48:30 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#5084