Skip to content

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

@matevszm

Description

@matevszm

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingopentuiThis relates to changes in v1.0, now that opencode uses opentuiperfIndicates a performance issue or need for optimizationwindows

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions