Skip to content

Severe Input Lag / Freezing in WSL2 #11537

Closed

Description

@gabrielsoda

Description

OpenCode becomes completely unresponsive when running in WSL2. The freezing starts immediately on launch and follows a consistent pattern: 5-10 seconds frozen, then 5-10 seconds responsive, repeating indefinitely. This affects all operations including typing (characters freeze then appear all at once), LLM streaming output, scrolling, and even idle state.
Both Claude Code and Gemini CLI work flawlessly in the exact same WSL2 environment,
Switching terminals from Windows Terminal to WezTerm made no difference.
The issue persists regardless of shell choice or project complexity.

Plugins

opencode-anthropic-auth

OpenCode version

1.1.48

Steps to reproduce

No response

Screenshot and/or share link

Image

Operating System

Ubuntu 24.04.3 LTS (WSL2)

Terminal

Windows Terminal / WezTerm

Activity

  1. github-actions commented on Jan 31, 2026

    @github-actions
    Contributor

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

    All three issues describe periodic freezing/lag on WSL2 with similar symptoms (buffered input appearing after freeze, consistent 5-10 second intervals). These are known WSL2-specific issues.

    Feel free to ignore if your specific case differs from these.

  2. Nsomnia commented on Feb 1, 2026

    @Nsomnia

    There's apparently some memory not being released issue I've read about and while it might be the potato I'm running on right now running, whether via a Ralph harness or in TUI it will often hang especially with tool calls like doing a bash run cmake compile script.

  3. gabrielsoda commented on Feb 1, 2026

    @gabrielsoda
    Author

    Resolved! Found the solution in #8484 thanks to @pschiel's comment:
    #8484 (comment)
    Cause: systemd-timesyncd in WSL2 causes time sync conflicts with Windows/Hyper-V, resulting in corrupted timestamps that freeze JavaScript timeouts.
    Solution:

    sudo systemctl disable systemd-timesyncd && sudo systemctl stop systemd-timesyncd

    This completely fixed the input lag and freezing for me. Closing as resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingperfIndicates a performance issue or need for optimizationwindows

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions