[Windows] interactive call breaking tui #2492

Open
opened 2026-02-16 17:35:55 -05:00 by yindo · 4 comments
Owner

Originally created by @zenyr on GitHub (Nov 2, 2025).

Description

I just randomly decided to use Windows to try out OpenCode 1.0!

During the initial setup process, aside from a few minor hiccups (which are expected on Windows),
ssh -T git@github.com failed right through the UI.

OpenCode version

1.0.11

Steps to reproduce

  • Use Windows like a madman
  • Make a bash call that expects a user input
  • Observe

Screenshot and/or share link

https://opencode.ai/s/qZkyvCfh

Image

Operating System

Windows 11

Terminal

Windows Terminal

Originally created by @zenyr on GitHub (Nov 2, 2025). ### Description I just randomly decided to use Windows to try out OpenCode 1.0! During the initial setup process, aside from a few minor hiccups (which are expected on Windows), `ssh -T git@github.com` failed right through the UI. - I was actually trying to fix another [Windows + Bash tool bug](https://opencode.ai/s/aCw2tDGl), but I digress. ### OpenCode version 1.0.11 ### Steps to reproduce - Use Windows ~like a madman~ - Make a bash call that expects a user input - Observe ### Screenshot and/or share link https://opencode.ai/s/qZkyvCfh <img width="1172" height="670" alt="Image" src="https://github.com/user-attachments/assets/dda8c3f2-a7b6-4a47-b107-e7422c2e4fe7" /> ### Operating System Windows 11 ### Terminal Windows Terminal
yindo added the opentuibug labels 2026-02-16 17:35:55 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Nov 2, 2025):

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

  • #3027: Terminal corruption when prompted for SSH key - very similar issue with SSH prompts breaking terminal input
  • #3199: Input becomes garbled when shell commands require password/interactive input - describes same symptoms
  • #652: UI freezes when commands require user input (sudo password prompts) - related interactive input issue
  • #3212: Similar to #652, UI freezing on interactive command prompts

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Nov 2, 2025): This issue might be a duplicate of existing issues. Please check: - #3027: Terminal corruption when prompted for SSH key - very similar issue with SSH prompts breaking terminal input - #3199: Input becomes garbled when shell commands require password/interactive input - describes same symptoms - #652: UI freezes when commands require user input (sudo password prompts) - related interactive input issue - #3212: Similar to #652, UI freezing on interactive command prompts Feel free to ignore if none of these address your specific case.
Author
Owner

@veracioux commented on GitHub (Nov 2, 2025):

I don't think it has anything to do with "expecting user input".

I think that that ssh command sends output directly to the controlling pty.

E.g. ssh bitbucket.org >/dev/null 2>/dev/null still produces output, even when you use -T or -t. (I tried on native linux)

@zenyr If you do !echo test and !echo test >&2, do you also observe this issue?

@veracioux commented on GitHub (Nov 2, 2025): I don't think it has anything to do with "expecting user input". I think that that ssh command sends output directly to the controlling pty. E.g. `ssh bitbucket.org >/dev/null 2>/dev/null` still produces output, even when you use `-T` or `-t`. (I tried on native linux) @zenyr If you do `!echo test` and `!echo test >&2`, do you also observe this issue?
Author
Owner

@zenyr commented on GitHub (Nov 2, 2025):

If you do !echo test and !echo test >&2, do you also observe this issue?

Yes, I could reproduce this as you suggested! (only via using openssh.exe)

https://opencode.ai/s/SyPIJFzE

Image
@zenyr commented on GitHub (Nov 2, 2025): > If you do `!echo test` and `!echo test >&2`, do you also observe this issue? Yes, I could reproduce this as you suggested! (only via using openssh.exe) https://opencode.ai/s/SyPIJFzE <img width="1430" height="684" alt="Image" src="https://github.com/user-attachments/assets/32d10c5d-9d3b-4d03-aaba-38d0503413ef" />
Author
Owner

@veracioux commented on GitHub (Nov 2, 2025):

@zenyr Hint: If you type the character ! in an empty prompt, it will trigger shell mode, where you can directly run the command without waiting for the LLM. Does your issue happen when you run the command directly like that?

https://github.com/user-attachments/assets/463abcae-da41-49e7-8ea0-f7fae4faad19

@veracioux commented on GitHub (Nov 2, 2025): @zenyr Hint: If you type the character `!` in an empty prompt, it will trigger shell mode, where you can directly run the command without waiting for the LLM. Does your issue happen when you run the command directly like that? https://github.com/user-attachments/assets/463abcae-da41-49e7-8ea0-f7fae4faad19
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2492