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
{{ message }}
Repository navigation
[Performance] Significant input lag and UI slowness when running in WSL within a Windows VM #18229
I am experiencing severe performance issues and input lag when running OpenCode inside WSL (Windows Subsystem for Linux), which is itself running inside a Windows Virtual Machine.
The most noticeable symptom is input lag in the chat box: when I type, words take several seconds to appear on the screen. This behavior occurs even when the agent is idle, but it degrades significantly (becomes almost unusable) while the agent is performing tasks or running processes in the background.
Environment
Virtualization: Windows VM
Subsystem: WSL (running inside the Windows VM)
Application: OpenCode
Expected Behavior
The User Interface, especially the text input field, should remain responsive and provide real-time visual feedback, regardless of the background agent activity.
Actual Behavior
There is a significant delay in text rendering. The UI becomes sluggish, and the lag scales poorly when the system is under load from the agent's background tasks.
Plugins
N/A
OpenCode version
1.2.27
Steps to reproduce
Launch OpenCode within a WSL environment hosted inside a Windows VM.
Start typing in the chat box.
Observe the delay between keystrokes and text appearing.
Trigger any agent task/action and observe the increased latency in the User Interface.
I see this issue on debian (bare metal, not WSL) when context reaches 30K. CPU spikes when i scroll or type in opencode, and is not snappy like scrolling in vscode repos/source code view.
Activity
4k1k0 commentedon Mar 20, 2026
For me too, but I'm running windows 11 on bare metal. My configuration:
RedHeartSecretMan commentedon Mar 23, 2026
I am experiencing severe operational latency in the TUI, including significant keyboard input lag and stuttering during mouse scrolling, system info
RedHeartSecretMan commentedon Mar 23, 2026
Confirming that the solution provided by @pschiel in this comment successfully resolved my issue.
dwidge commentedon May 29, 2026
I see this issue on debian (bare metal, not WSL) when context reaches 30K. CPU spikes when i scroll or type in opencode, and is not snappy like scrolling in vscode repos/source code view.
github-actions commentedon Jul 29, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.