opencode icon indicating copy to clipboard operation
opencode copied to clipboard

Screen lag/freezing when typing text (WSL2, TMUX, Alacritty)

Open matevszm opened this issue 2 weeks ago • 3 comments

Description

Image

I have recently started using opencode and I think it's a great tool, but unfortunately, when writing prompts, I experience unpleasant freeze/lags for few seconds. I use opencode inside WSL 2 on Windows 11, using the alacritty terminal inside tmux, although I checked and tmux has nothing to do with it here, I use bash.

I did not observe anything like that during the work of agent itself.

The GIF shows an unpleasant lag that disturbs with writing longer prompts and is simply annoying. Has anyone experienced something similar or knows how to fix it?

Ubuntu 24.04.2 LTS Opencode 1.1.20 alacritty 0.16.1 (42f49ee) WSL version: 2.6.3.0 Linux kernel: 6.6.87.2-1

Steps to reproduce

Run alacritty terminal on windows with WSL2 (ubuntu) inside, run opencode and start type

matevszm avatar Jan 14 '26 15:01 matevszm

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

  • #7893: Severe scroll lag in VSCode/Cursor integrated terminal on WSL2 after large output (unusable for minutes) - While this mentions scroll specifically, it documents WSL2 terminal performance issues similar to your typing lag experience, likely related to the same underlying TUI rendering problem on WSL2.

Feel free to ignore if your issue is specific to input/typing lag rather than general scrolling/rendering lag.

github-actions[bot] avatar Jan 14 '26 15:01 github-actions[bot]

Same for me, WSL2, Wezterm/Windows Terminal. It also started happening sometime after 1.0 release. My freezes are actually 10 seconds or more, completely unusable. Works on a different machine with the same setup 🤷‍♂️

xxzefgh avatar Jan 15 '26 09:01 xxzefgh

This is happening to me as of yesterday as well. It's immensely frustrating. It also applies to scrolling through the opencode window, not just typing. I am also using Ubuntu via WSL.

pattonjh avatar Jan 16 '26 01:01 pattonjh