You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the ! command to run interactive TUI programs (e.g., vim, yazi, htop, nano), the session hangs indefinitely without any output or error message. The user must manually terminate the process.
This happens because ! executes commands in a non-interactive bash subprocess without a TTY, which TUI programs require to render their interface.
Steps to Reproduce
Type !vim or !yazi in opencode
The session freezes with no output
User must manually abort (Ctrl+C / close terminal)
Expected Behavior
opencode should detect TUI/interactive programs and either:
Show a warning message (e.g., "Interactive programs are not supported in ! mode. Please run this directly in your terminal.")
Or forward the TTY to the subprocess so interactive programs can work.
Suggestion
Maintain a list of known TUI programs (vim, nvim, yazi, nano, htop, less, more, top, btop, etc.) and show a helpful message instead of silently hanging.
Closing as duplicate of #23449. The root cause is that the agent spawns new shell processes without PTY support, preventing interactive TUI programs from working. Please follow #23449 for updates.
Activity
github-actions commentedon May 30, 2026
This issue might be a duplicate of existing issues. Please check:
vim,htop) and the same symptom of interactive commands hanging. It also mentionshtopandvimspecifically.Tofu-Xx commentedon May 30, 2026
Closing as duplicate of #23449. The root cause is that the agent spawns new shell processes without PTY support, preventing interactive TUI programs from working. Please follow #23449 for updates.