opencode icon indicating copy to clipboard operation
opencode copied to clipboard

Recommended Terminal for Windows - as all I tried have weird artifacts so far

Open CodingPassionYT opened this issue 3 months ago • 21 comments

Hello, Windows Terminals seem to not work with opencode across the Board for me. I cannot scroll - answers getting squashed so I can only read few lines of the answers. You get the Problems. Other Issues here - there will always be the question of which terminal they are using. I get that. But if devs don't have problems with their Terminal, pls provide a recommended working Terminal Application for Windows. I am happy to switch to any working Terminal.

CodingPassionYT avatar Sep 27 '25 09:09 CodingPassionYT

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

  • #631: Windows Support - comprehensive issue tracking all Windows-related problems
  • #1380: UI Bug with Win11 CMD or WT - terminal fails to scroll and requires pgup/pgdn to refresh UI
  • #1864: TUI rendering artifacting - TUI not being re-rendered properly causing display artifacts
  • #2697: TUI looks horrible after a single prompt - similar display issues with TUI appearing broken
  • #2548: Windows WSL/Jetbrains Goland scrolling bug - scrolling issues on Windows (closed but similar symptoms)

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

github-actions[bot] avatar Sep 27 '25 09:09 github-actions[bot]

interesting, I'm using Windows Terminal, have you checked the basics? You say terminal but it can run powershell or WSL, assuming you're using one of those.

WSL, see if you can render this

printf "\x1b[38;2;255;100;0mTRUECOLOR\x1b[0m\n"

for me it's a deep orange

Image

jameswilliamknight avatar Sep 27 '25 10:09 jameswilliamknight

@itsrainingmani

rekram1-node avatar Sep 27 '25 14:09 rekram1-node

I use opencode in git bash . Scroll seems ok :)

neochin-john avatar Sep 29 '25 07:09 neochin-john

@neochin-john even on git bash the scroll dosent work for the generated response. Only page up and down work for scrolling.

kingabzpro avatar Sep 29 '25 09:09 kingabzpro

@kingabzpro alacritty is ok for me (win11), too. You can try it.

neochin-john avatar Sep 29 '25 15:09 neochin-john

@kingabzpro alacritty is ok for me (win11), too. You can try it.

It works on wsl only.

kingabzpro avatar Sep 29 '25 16:09 kingabzpro

@kingabzpro There is a msi installer on alacritty home page, use it.

Image Image

neochin-john avatar Sep 29 '25 23:09 neochin-john

I ran opencode through git bash from cursor and have no problem since then.

nuson999 avatar Sep 30 '25 07:09 nuson999

I ran opencode through git bash from cursor and have no problem since then.

I tried this. This works perfectly on windows! Thanks mate <3

vrajpat3ll avatar Sep 30 '25 23:09 vrajpat3ll

Ok thought I tried git bash already. Will try it again today :)

CodingPassionYT avatar Oct 01 '25 06:10 CodingPassionYT

When i using git bash, paste is unreliable: text appears slowly (character-by-character) and any newline in the clipboard submits the prompt instead of pasting fully. In WezTerm, copy/paste works, but scrolling is inconsistent—sometimes it scrolls, other times the prompt captures input as if I pressed the up/down arrows (showing command history)

JunarisAlf avatar Oct 04 '25 03:10 JunarisAlf

Currently, I found alacritty and wezterm also seem working, like: No weird scroll(the input stuck) and I can paste image??? Wild

Image

nielpattin avatar Oct 06 '25 03:10 nielpattin

Currently, I found alacritty and wezterm also seem working, like: No weird scroll(the input stuck) and I can paste image??? Wild

Image

It dosent work for me. I think. I have to install with npm, the winget way of installing is not working.

kingabzpro avatar Oct 10 '25 10:10 kingabzpro

@kingabzpro I mean, what doesn't work? Like weird artifacts, can't paste image, can't open opencode,... ? npm will work fine as it already fixed recently, you can use choco or just download the binary file in the release.

nielpattin avatar Oct 10 '25 10:10 nielpattin

@kingabzpro I mean, what doesn't work? Like weird artifacts, can't paste image, can't open opencode,... ? npm will work fine as it already fixed recently, you can use choco or just download the binary file in the release.

  1. Install
npm i -g opencode-ai
  1. Add npm global to PATH (once)
$bin = (npm config get prefix)
if (($env:Path -split ';') -notcontains $bin) {
  $u = [Environment]::GetEnvironmentVariable('Path','User')
  [Environment]::SetEnvironmentVariable('Path', "$u;$bin", 'User')
}
  1. Use with portable Alacritty, run alacritty.exe, then:
opencode

Note: Prefer the portable Alacritty exe file; other installs (e.g., winget) can mess with scrollback.

Image

kingabzpro avatar Oct 10 '25 10:10 kingabzpro

@kingabzpro the only thing I trust is choco or binary file from github release or npm(recently) and I also use Alacritty not sure why you would use portable but maybe depend on your preference and wezterm also work. winget and bun currently out of the game rn, I suppose.

nielpattin avatar Oct 10 '25 11:10 nielpattin

Alacritty working great for me. Thanks guys.

Soren8 avatar Oct 30 '25 16:10 Soren8

I am late to the party, but what has been an issue-free experience for me was the following setup:

WezTerm for Windows that bypasses Powershell and opens directly in Bash in WSL (Ubuntu). I do this with the following part of the config:

local wezterm = require 'wezterm'

return {
  wsl_domains = wezterm.default_wsl_domains(),
  default_domain = 'WSL:Ubuntu',
}

I have downloaded opencode on the WSL instance and then run it from there. It's been a pretty stable experience so far and it looks a little bit nicer than Windows Terminal, except for the black lines at the edges, haha.

Note: You should maybe look up, how the config should like like according to wez, because mine is AI-generated and as you can see, looks weird, but works.

cocoveal avatar Nov 10 '25 13:11 cocoveal

For the record: I'm using opencode in WSL using windows terminal and it's working flawlessly. I noticed the moment the copy paste, the input that broke when you deleted repeatedly and the sudden crashes were fixed and haven't had major issues since then. Only model related stuff that's probably in the many issues created already. (ALL NON-ISSUES, like Github Copilot's anthropic models hitting a specific context limit from which it doesn't recover: neither it compacts automatically nor it actually compacts if you run the command).

Just passing by, very cool editor, i love it

expl0r3rgu1 avatar Nov 28 '25 16:11 expl0r3rgu1

No problems with scrolling with Windows Terminal and various shells (cmd, pwsh, wsl, git bash).

Pasting images works with Settings > Interaction > Remove trailing white-space when pasting OFF

pschiel avatar Dec 26 '25 15:12 pschiel