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
I am using Windows Powershell SSHing into Ubuntu Server 22.04.5. These texts are filled in the input box when running with opencode.
Sometimes it says other text, but I'm not able to reproduce that consistently.
OpenCode version
1.0.2
Steps to reproduce
No response
Screenshot and/or share link
No response
Operating System
Windows 11 SSH into Ubuntu Server 22.04.5
Terminal
Windows PowerShell
Reacted by Christen Lofland, Matthias Yinusa, F.P.J. Nijweide, niceSprite, Hicsy and Brady Russell
Reacted by Christen Lofland, Graham Bennett and Emiliano Bazaes
Had the same issue - Windows Terminal SSH into Ubuntu.
This worked for me: a small Python script that wraps opencode and filters out the garbage from stdin before it reaches the TUI.
Thanks for posting this. I've given this workaround a try and it seems to work for me. I'd be very keen to see this integrated into the TUI code itself.
Activity
github-actions commentedon Dec 25, 2025
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case.
bbartels commentedon Feb 5, 2026
Having the same issue, is there any workarounds?
KyungmoKu commentedon Feb 9, 2026
Had the same issue - Windows Terminal SSH into Ubuntu.
This worked for me: a small Python script that wraps opencode and filters out the garbage from stdin before it reaches the TUI.
osc-filter(no .py) somewhere in your PATH,chmod +x osc-filter, then runosc-filter opencodeinstead ofopencode.alias oc='osc-filter opencode'The proper fix probably belongs in opentui's input parser - it doesn't handle OSC sequences at all right now.
osc-filter
gbpdt commentedon Feb 13, 2026
Thanks for posting this. I've given this workaround a try and it seems to work for me. I'd be very keen to see this integrated into the TUI code itself.
llc1123 commentedon Feb 14, 2026
It is fixed upstream. Waiting for a new release. PowerShell/openssh-portable#806
haifengqiu commentedon Mar 20, 2026
Additional Info
Environment: WindTerm 2.0+ (latest), TERM=xterm-256color, UTF-8
Confirmed issue: opencode TUI has compatibility problem with WindTerm.
ESC]66and other ANSI escape sequences displayed as raw textWorkaround: Using tmux in WindTerm works around this issue:
ocelot2123 commentedon Apr 17, 2026
going to close this as I think its fixed somewhere upstream, maybe in anomalyco/opentui#770? maybe @kommander you can confirm
kodewulf commentedon Oct 31, 2026
This same issue is now present in v2.2.5
neriousy commentedon Nov 12, 2026
Closing this old v1 report. If it still happens on v2, please open a new issue with your version.