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
[Bug] TUI fails to render with raw ANSI output and critical memory leak (72.5G VIRT) on startup #6119
I am trying to run opencode on my Debian 13.1. The tool fails to launch the TUI properly. Instead of showing the interface, it floods the terminal with raw ANSI escape sequences (specifically mouse reporting codes like ^[[<35;84;4M).
Crucially, I observed via htop that the process immediately consumed an abnormal amount of memory: 71.9G of VIRT. This suggests a massive memory leak or an infinite allocation loop during the initialization phase.
OpenCode version
latest version
Steps to reproduce
Environment: Debian 13.1(Headless, connected via SSH).
Run the command opencode in a project directory.
The terminal output becomes corrupted with raw escape codes.
Check process status in htop.
These issues report similar symptoms of TUI rendering failures, ANSI escape sequence corruption, and memory/hanging issues on Linux systems. Feel free to ignore if your specific case differs from these.
Activity
github-actions commentedon Dec 24, 2025
This issue might be a duplicate of existing issues. Please check:
These issues report similar symptoms of TUI rendering failures, ANSI escape sequence corruption, and memory/hanging issues on Linux systems. Feel free to ignore if your specific case differs from these.
MorganMarshall commentedon Feb 2, 2026
Bump
thdxr commentedon Apr 2, 2026
Closing in favor of #20695 where we're collecting all memory-related problems. Please follow that issue for updates.