anomalyco / anomalyco/opencode

TUI: library console output corrupts alternate screen display

Open
#48,520 2 comments 1 reaction 1 assignee View on GitHub

@kommander is already working on this.

Since Sep 11, 2026.

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

Description

Description

Any console.* output written by library dependencies (Ajv compiling third-party MCP schemas, plugin dependencies, etc.) goes straight to the terminal and lands inside the TUI's alternate screen, corrupting the display with raw warning lines.

#31002 tracks one specific instance (Ajv's unknown format "uint64" ignored), fixed at the source in #48331. This issue tracks the general class of bug: the TUI should be resilient against stray console output from any dependency, not just Ajv.

Plugins

No response

OpenCode version

1.18.30

Steps to reproduce
  1. Configure an MCP server whose tool schemas contain non-standard format values like uint32/uint64 (e.g. Rust/schemars)
  2. Start opencode (TUI)
  3. Ajv warnings appear as raw lines overwriting the TUI display
Screenshot and/or share link
grafik
Operating System

Ubuntu 24

Terminal

Bash

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.