opencode icon indicating copy to clipboard operation
opencode copied to clipboard

Background logs are printed to the TUI

Open wudanzy opened this issue 3 weeks ago • 2 comments

Description

After a while, the logs from background threads are printed to the TUI. Currently I can resize the window to clear it, but still would like to fix it.

Plugins

oh-my-opencode

OpenCode version

Not a publish version, commit id is 66f9bdab32

Steps to reproduce

opencode --print-logs --log-level DEBUG .

Wait for 1 hour

Screenshot and/or share link

Image

Operating System

Windows 11

Terminal

Windows Terminal

wudanzy avatar Jan 15 '26 09:01 wudanzy

This issue might be a duplicate of existing issues. Please check:

  • #3935: Unstable TUI - Similar issue with UI elements not rendering correctly and content area disappearing
  • #5283: Graphical glitches - Text/output gets stuck and creates visual corruption, fixed by resizing terminal (same workaround as #8639)
  • #6830: tui output corrupted when using plugins - Plugin output pollutes the TUI and goes away on resize
  • #3577: Broken Scrolling - Random characters appearing when scrolling with large output, similar visual corruption
  • #2256: Bug [Visual]: TUI populated with gibberish upon copying - Similar background corruption appearing in TUI
  • #3763: [Windows] interactive call breaking tui - Windows terminal corruption issues with TUI display

All of these share the common pattern of TUI output corruption or unwanted background content appearing in the interface that can be cleared by window resize events.

Feel free to ignore if none of these address your specific case.

github-actions[bot] avatar Jan 15 '26 09:01 github-actions[bot]

If this is the first time this bug gets discovered, I am willing to fix it. (I have discussed opencode and get some idea)

wudanzy avatar Jan 15 '26 09:01 wudanzy