Skip to content

TUI freezes for ~10 seconds periodically on WSL2 (regression in v1.0.129) #5361

@alhnesn

Description

@alhnesn

Description

OpenCode TUI freezes for 2-10 seconds periodically while typing or scrolling on WSL2. Input is buffered during the freeze and appears after it resolves. The issue does not occur on native Windows.

Environment

Component Details
OS WSL2 Ubuntu 24.04 (kernel 6.6.87.2-microsoft-standard-WSL2)
OpenCode versions tested 1.0.128 (works), 1.0.129+ (freezes)
Terminals tested Windows Terminal, WezTerm (both freeze)
Filesystem Tested on both /mnt/c/ and native Linux filesystem (~/) - both freeze

Regression

Binary search identified the regression:

  • 1.0.128: No freezing
  • 1.0.129: Freezing starts

Relevant change in 1.0.129 changelog:

Bumped opentui to v0.1.55

What this is NOT

  • Not SIGPWR spam (issue Mouse Input Spam / SIGPWR Signal Storm in WSL2 #5168) - no SIGPWR signals in strace
  • Not 9P filesystem - freezes on native Linux filesystem too
  • Not terminal-specific - happens on multiple terminals
  • Not Bun-specific - also tested with npm installation, same issue

Steps to Reproduce

  1. Install OpenCode v1.0.129+ on WSL2 Ubuntu
  2. Run opencode in any directory
  3. Type or scroll in the TUI
  4. Observe periodic 2-10 second freezes

Workaround

Use version 1.0.128

OpenCode version

1.0.144 - 1.0.128

Steps to reproduce

  1. Install OpenCode v1.0.129+ on WSL2 Ubuntu
  2. Run opencode in any directory
  3. Type or scroll in the TUI
  4. Observe periodic 2-10 second freezes

Screenshot and/or share link

No response

Operating System

WSL Ubuntu 24.04

Terminal

Windows Terminal, Wezterm

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingopentuiThis relates to changes in v1.0, now that opencode uses opentui

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions