Skip to content

[Bug] TUI fails to render with raw ANSI output and critical memory leak (72.5G VIRT) on startup #6119

@roymecat

Description

@roymecat

Description

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.

Screenshot and/or share link

Image Image

Operating System

Debian 13.1

Terminal

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingopentuiThis relates to changes in v1.0, now that opencode uses opentuiperfIndicates a performance issue or need for optimization

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions