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
High CPU usage (100% single core) during TUI rendering #11119
Runtime: Bun Problem:
Single CPU core hits 100% when OpenCode is running, even during idle/loading states. Diagnosis:
strace shows 99.94% time spent in futex() calls
Worker thread (TID 971375) consuming 67% CPU
Thread is reading from timerfd and constantly waking HeapHelper threads
Appears to be a busy-loop in TUI refresh cycle strace output:
futex(0x78d0050ac160, FUTEX_WAKE_PRIVATE, 1) = 1
(repeats thousands of times per second) Expected:
CPU should be near 0% when idle/waiting for input.
Activity
github-actions commentedon Jan 29, 2026
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case.
alibert99 commentedon Jan 29, 2026
I confirm high CPU usage (100% one core) related to TUI. strace shows a busy loop on timerfd reads by the Worker thread.
Junyi-99 commentedon Jan 29, 2026
same here, the
iTerm2is using45%CPUs when opencode is runningWhen opencode is not running, the CPU usage backs to 4.2%
However, when I switch to
Ghostty, the cpu usage drops down to9.8%unphased commentedon Jan 30, 2026
Something is definitely going on here.Nevermind, I think these are from stale dead tmux split instances from oh-my-opencode v3.1.2
github-actions commentedon Apr 1, 2026
To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.