anomalyco / anomalyco/opencode
TUI: library console output corrupts alternate screen display
Open
@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
- Configure an MCP server whose tool schemas contain non-standard
formatvalues likeuint32/uint64(e.g. Rust/schemars) - Start
opencode(TUI) - Ajv warnings appear as raw lines overwriting the TUI display
Screenshot and/or share link
Operating System
Ubuntu 24
Terminal
Bash
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.