## Bug: TUI freezes for 8-9 seconds in WSL2 with ble.sh #7951

Open
opened 2026-02-16 18:08:45 -05:00 by yindo · 2 comments
Owner

Originally created by @FAL1989 on GitHub (Jan 29, 2026).

Originally assigned to: @kommander on GitHub.

Description

Environment

  • OpenCode version: 1.1.42
  • OS: Ubuntu 24.04 on WSL2 (kernel 6.6.87.2-microsoft-standard-WSL2)
  • Terminal: Windows Terminal
  • Shell: Bash 5.x with ble.sh (Bash Line Editor)
  • Hardware: Ryzen 7 9700X, 64GB DDR5, RTX 5080, NVMe SSD

Problem

OpenCode TUI freezes for 8-9 seconds at random intervals. The terminal window remains responsive but text content stops updating. This happens during normal usage while the agent is working.

What works fine in the same environment

  • Claude Code — no freezes
  • Codex — no freezes

Both use the same terminal, same shell, same ble.sh configuration.

What I've tried (none resolved the issue)

  • Updated to latest OpenCode (1.1.42)
  • Re-authenticated both providers (headless login)
  • Disabled MCP servers ("enabled": false)
  • Disabled experimental threaded mode ("threaded": false)
  • Tuned WSL2 dirty page settings (sysctl)
  • Changed clock source to hyperv_clocksource_tsc_page
  • Optimized ble.sh settings (reduced highlighting, completion delays)
  • Disabled appendWindowsPath in wsl.conf

ble.sh config (~/.blerc)

bleopt highlight_filename=
bleopt highlight_variable=
bleopt complete_auto_delay=300
bleopt complete_polling_cycle=100
bleopt complete_auto_history=
bleopt syntax_eval_polling_interval=100
bleopt highlight_timeout_sync=300
bleopt highlight_timeout_async=3000
bleopt highlight_eval_word_limit=100

Suspicion

OpenCode's TUI rendering may have an incompatibility with ble.sh's input handling. Since Claude Code and Codex work fine, this appears to be specific to OpenCode's terminal/TUI implementation.

Related issues

- #731 (Critical Stability Issues: App Freezing & Hanging Analysis)
- #96 on ble.sh repo (WSL2 input delay — confirmed NOT caused by ble.sh itself)

### Plugins

No

### OpenCode version

1.1.42

### Steps to reproduce

_No response_

### Screenshot and/or share link

_No response_

### Operating System

Ubuntu 24.04 on WSL2 (kernel 6.6.87.2-microsoft-standard-WSL2)

### Terminal

Windows Terminal
Originally created by @FAL1989 on GitHub (Jan 29, 2026). Originally assigned to: @kommander on GitHub. ### Description ### Environment - **OpenCode version**: 1.1.42 - **OS**: Ubuntu 24.04 on WSL2 (kernel 6.6.87.2-microsoft-standard-WSL2) - **Terminal**: Windows Terminal - **Shell**: Bash 5.x with ble.sh (Bash Line Editor) - **Hardware**: Ryzen 7 9700X, 64GB DDR5, RTX 5080, NVMe SSD ### Problem OpenCode TUI freezes for 8-9 seconds at random intervals. The terminal window remains responsive but text content stops updating. This happens during normal usage while the agent is working. ### What works fine in the same environment - **Claude Code** — no freezes - **Codex** — no freezes Both use the same terminal, same shell, same ble.sh configuration. ### What I've tried (none resolved the issue) - Updated to latest OpenCode (1.1.42) - Re-authenticated both providers (headless login) - Disabled MCP servers (`"enabled": false`) - Disabled experimental threaded mode (`"threaded": false`) - Tuned WSL2 dirty page settings (sysctl) - Changed clock source to `hyperv_clocksource_tsc_page` - Optimized ble.sh settings (reduced highlighting, completion delays) - Disabled `appendWindowsPath` in wsl.conf ### ble.sh config (~/.blerc) ```bash bleopt highlight_filename= bleopt highlight_variable= bleopt complete_auto_delay=300 bleopt complete_polling_cycle=100 bleopt complete_auto_history= bleopt syntax_eval_polling_interval=100 bleopt highlight_timeout_sync=300 bleopt highlight_timeout_async=3000 bleopt highlight_eval_word_limit=100 Suspicion OpenCode's TUI rendering may have an incompatibility with ble.sh's input handling. Since Claude Code and Codex work fine, this appears to be specific to OpenCode's terminal/TUI implementation. Related issues - #731 (Critical Stability Issues: App Freezing & Hanging Analysis) - #96 on ble.sh repo (WSL2 input delay — confirmed NOT caused by ble.sh itself) ### Plugins No ### OpenCode version 1.1.42 ### Steps to reproduce _No response_ ### Screenshot and/or share link _No response_ ### Operating System Ubuntu 24.04 on WSL2 (kernel 6.6.87.2-microsoft-standard-WSL2) ### Terminal Windows Terminal
yindo added the windowsopentuibugperf labels 2026-02-16 18:08:45 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 29, 2026):

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

  • #5361: TUI freezes for ~10 seconds periodically on WSL2 (regression in v1.0.129) - This is a known WSL2-specific regression identified back in v1.0.129 with the opentui update. It reports the exact same symptom of periodic 2-10 second freezes on WSL2.
  • #8484: Screen lag/freezing when typing text (WSL2, TMUX, Alacritty) - Similar WSL2 freezing issue when typing prompts, though this one occurs with tmux/Alacritty setup.

Feel free to ignore if your case involves specific differences, but #5361 appears to be the primary tracking issue for the WSL2 TUI freezing regression.

@github-actions[bot] commented on GitHub (Jan 29, 2026): This issue might be a duplicate of existing issues. Please check: - #5361: TUI freezes for ~10 seconds periodically on WSL2 (regression in v1.0.129) - This is a known WSL2-specific regression identified back in v1.0.129 with the opentui update. It reports the exact same symptom of periodic 2-10 second freezes on WSL2. - #8484: Screen lag/freezing when typing text (WSL2, TMUX, Alacritty) - Similar WSL2 freezing issue when typing prompts, though this one occurs with tmux/Alacritty setup. Feel free to ignore if your case involves specific differences, but #5361 appears to be the primary tracking issue for the WSL2 TUI freezing regression.
Author
Owner

@akinomyoga commented on GitHub (Jan 30, 2026):

This might also be related to https://github.com/akinomyoga/ble.sh/issues/96.

@FAL1989 Could you try workarounds in the "Summary" section of the top comment in https://github.com/akinomyoga/ble.sh/issues/96? Also, to narrow down the cause, could you tell us whether setting bleopt complete_auto_complete= changes anything in the situation?

@akinomyoga commented on GitHub (Jan 30, 2026): This might also be related to https://github.com/akinomyoga/ble.sh/issues/96. @FAL1989 Could you try workarounds in the "Summary" section of the top comment in https://github.com/akinomyoga/ble.sh/issues/96? Also, to narrow down the cause, could you tell us whether setting `bleopt complete_auto_complete=` changes anything in the situation?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#7951