When piping into --prompt cant interact with opencode #3896

Closed
opened 2026-02-16 17:41:52 -05:00 by yindo · 1 comment
Owner

Originally created by @krymancer on GitHub (Dec 26, 2025).

Originally assigned to: @kommander on GitHub.

Description

After piping and calling opencode with --prompt flag I can't interact at all with opencode, esc doesn't do anything, typing is ignored, and scroll doesn't work either, everthing become escaping sequences.

OpenCode version

1.0.203

Steps to reproduce

  1. pipe to opencod something i.e echo "how are you" | opencode --prompt

Screenshot and/or share link

Image

Operating System

Omarchy | Arch Linux | 6.17.8-arch1-1

Terminal

Ghostty, Alacritty

Originally created by @krymancer on GitHub (Dec 26, 2025). Originally assigned to: @kommander on GitHub. ### Description After piping and calling opencode with --prompt flag I can't interact at all with opencode, esc doesn't do anything, typing is ignored, and scroll doesn't work either, everthing become escaping sequences. ### OpenCode version 1.0.203 ### Steps to reproduce 1. pipe to opencod something i.e `echo "how are you" | opencode --prompt` ### Screenshot and/or share link <img width="1705" height="1382" alt="Image" src="https://github.com/user-attachments/assets/c2a77f48-b8c1-4fc6-ac36-8adf92c0d7f4" /> ### Operating System Omarchy | Arch Linux | 6.17.8-arch1-1 ### Terminal Ghostty, Alacritty
yindo added the opentuibug labels 2026-02-16 17:41:52 -05:00
yindo closed this issue 2026-02-16 17:41:52 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Dec 26, 2025):

This issue might be a duplicate of existing issues. Please check:

Feel free to ignore if this doesn't address your specific case.

@github-actions[bot] commented on GitHub (Dec 26, 2025): This issue might be a duplicate of existing issues. Please check: - #3871: [Bug: Stdin piping breaks UI](https://github.com/sst/opencode/issues/3871) - Reports that piping to opencode with stdin breaks the UI and causes interaction issues Feel free to ignore if this doesn't address your specific case.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3896