Skip to content

TUI: library console output corrupts alternate screen display #48520

Description

@thomas-bw

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions