anomalyco / anomalyco/opencode

TUI is overwritten by raw plugin or worker output

Open
#43,064 0 comments 0 reactions 1 assignee View on GitHub

@simonklee is already working on this.

Since Aug 17, 2026.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

Description

Raw stdout/stderr writes from in-process plugins or the TUI server paint over opentui's alternate screen, making the session unreadable.

Corrupted TUI

Plugins

WarpGrep/Morph

OpenCode version

1.18.4

Steps to reproduce

  1. Run opencode --print-logs --log-level DEBUG.
  2. Wait for worker or plugin output.
  3. Raw log text overwrites the TUI frame.

The same result occurs when a plugin calls process.stderr.write(...) directly. console.error(...) is unaffected because opentui captures console.*.

Expected behavior

External writes must not paint over the active TUI frame.

Operating System

macOS 26.6.1

Terminal

iTerm2

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.