You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 format values like uint32/uint64 (e.g. Rust/schemars)
Start opencode (TUI)
Ajv warnings appear as raw lines overwriting the TUI display
If your issue is distinct from these (e.g. the general-class tracking angle you describe vs. a specific instance), please add a note clarifying how it differs so maintainers can keep them appropriately linked.
This issue is distinct from all three. It intentionally tracks the general class of "any console.* output from library dependencies corrupts the TUI's alternate screen", not a specific instance:
This issue is already linked to its fix: #48517 installs a ConsoleGuard in every TUI entrypoint (tui, attach, run) and the server worker, redirecting console.debug/info/log/warn/error into the opencode log file while respecting OPENCODE_LOG_LEVEL. Non-TUI entrypoints keep normal console behavior.
Still happening for me on macOS with OpenCode 1.18.32 and cua-driver 0.30.2.
I'm using cua-driver as a normal local stdio MCP with:
cua-driver mcp
When OpenCode starts, it prints a ton of these:
unknown format "uint32" ignored in schema ...
unknown format "uint64" ignored in schema ...
They end up getting printed directly over the TUI and make the interface pretty hard to use.
The MCP itself still seems to work fine, so it looks like it's just the warning output messing up the TUI.
Also checked and cua-driver 0.30.2 is currently the latest version.
Believe it or not, the image attached below is OpenCode in Ghostty 😭.
Activity
github-actions commentedon Sep 11, 2026
This issue might be a duplicate of existing issues. Please check:
If your issue is distinct from these (e.g. the general-class tracking angle you describe vs. a specific instance), please add a note clarifying how it differs so maintainers can keep them appropriately linked.
thomas-bw commentedon Sep 11, 2026
This issue is distinct from all three. It intentionally tracks the general class of "any
console.*output from library dependencies corrupts the TUI's alternate screen", not a specific instance:console.log, Ajv'sunknown format "uint64"warning). MCP schema warnings: non-standard "format" values (uint32/uint64) from schemars pollute TUI #31002 was already fixed at the source in fix(mcp): silence Ajv unknown format warnings from MCP tool schemas #48331 (Ajv logger disabled via the MCP SDK'sClientOptions); TUI: library console output corrupts alternate screen display #48520 exists so the TUI is resilient against the next library that emits console output, whichever it is.process.stdout/stderr.writefrom in-process plugins/workers and--print-logsoutput, and explicitly notes thatconsole.*is captured there. This issue covers only theconsole.*path. TUI is overwritten by raw plugin or worker output #43064 should stay open to track the raw-stdio half of the problem.This issue is already linked to its fix: #48517 installs a
ConsoleGuardin every TUI entrypoint (tui,attach,run) and the server worker, redirectingconsole.debug/info/log/warn/errorinto the opencode log file while respectingOPENCODE_LOG_LEVEL. Non-TUI entrypoints keep normal console behavior.Rome-NotBeepBoop commentedon Sep 28, 2026
Still happening for me on macOS with OpenCode 1.18.32 and cua-driver 0.30.2.
I'm using cua-driver as a normal local stdio MCP with:
When OpenCode starts, it prints a ton of these:
They end up getting printed directly over the TUI and make the interface pretty hard to use.
The MCP itself still seems to work fine, so it looks like it's just the warning output messing up the TUI.
Also checked and cua-driver 0.30.2 is currently the latest version.
Believe it or not, the image attached below is OpenCode in Ghostty 😭.
thdxr commentedon Oct 11, 2026
Thanks for the report! OpenCode 2.0 is now out and development is focused on V2, so we're closing issues filed against OpenCode 1. Please upgrade (
opencode upgrade --major, details: https://anoma.ly/notes/opencode-2-0), and if this is still relevant on 2.0, reopen this issue or open a new one with your 2.0 version.— from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊