Skip to content

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

Closed as not planned

Description

@FAL1989

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

Activity

  1. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    perfIndicates a performance issue or need for optimization
    on Jan 29, 2026
  2. github-actions commented on Jan 29, 2026

    @github-actions
    Contributor

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

    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.

  3. akinomyoga commented on Jan 30, 2026

    @akinomyoga

    This might also be related to akinomyoga/ble.sh#96.

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

  4. BHQM-123 commented on Mar 18, 2026

    @BHQM-123

    Just dropping a data point here~
    I experienced the exact same TUI freeze (input buffered) on WSL2 + AMD Ryzen 5 5500. WinDbg analysis of the crash dump revealed that Node.js v25.8's JIT generated SIGILL (illegal instruction), causing the kernel to crash and restart.
    Downgrading to Node.js v22 LTS resolved the issue completely, and the wsl-crashes folder no longer generates 6GB dump files!
    More details in #18132 – hope this helps! (ノ◕ヮ◕)ノ*:・゚✧

  5. removed
    bugSomething isn't working
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    perfIndicates a performance issue or need for optimization
    on May 3, 2026
  6. github-actions commented on Jul 3, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions