Skip to content

UI breaking with no pattern #52939

Closed as duplicate
Closed as duplicate

Description

@EduLGFon

Description

Image

It just started happening with no pattern during the execution. Nothing was modified, just an update to opencode v2.0.22. I start the execution, a few seconds or minutes later the entire UI breaks several times before the model stops working. The hot fix I did is change the theme, it redraws the interface and makes it functional again for a few minutes more.

Machine: Ubuntu server 24.04 Arm

Plugins

No plugins

OpenCode version

2.0.22

Steps to reproduce

  1. Make any prompt
  2. Wait some seconds or minutes
  3. entire UI breaks

Screenshot and/or share link

No response

Operating System

Ubuntu server 24.04 Arm

Terminal

Cosmic-terminal

Activity

  1. github-actions commented on Oct 3, 2026

    @github-actions
    Contributor

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

    • #51945: Similar v2 TUI rendering failure where parts of the UI become invisible; it occurs after terminal resize or screen saver activation.
    • #5283: Reports random graphical glitches that cause the TUI to break down.
    • #3935: Reports disappearing TUI content that temporarily returns after changing the theme to force a redraw.
  2. EduLGFon commented on Oct 3, 2026

    @EduLGFon
    Author

    It do not seems to be any of those issues.
    My current opencode settings:
    appearance
    Theme: opencode
    color mode: system
    animations: on

    session
    sidebar: hide
    scrollbar: on
    thinking: show
    markdown: rendered
    tool grouping: auto
    verbosity: high
    transcript images: on
    TPS: on
    new session location: launch directory
    permissions: auto accept

    tabs
    mode: on
    scope: current directory
    layout: horizontal
    indicators: status icons

    diffs
    layout: auto
    wrapping: word
    file tree: on
    single patch: off

    input
    scroll speed: 3.00
    acceleration: off
    mouse: on
    editor context: on
    large pastes: full
    image previews: off
    leader timeout: 2000 ms

    alerts
    notifications: on
    sounds: off
    volume: 100%

    terminal
    window title: on
    copy behavior: select

    debug
    developer tools: off

  3. opencodejr commented on Oct 27, 2026

    @opencodejr
    Contributor

    Thanks for the report and the screenshot, @EduLGFon. They show what's going on. The lines drawn over the UI (ALSA lib confmisc.c:855:(parse_card) cannot find card '0', Unknown PCM dmix, …) are errors from the Linux audio library. On a machine with no sound card, the TUI's audio backend makes ALSA print these errors straight to the terminal when a notification sound plays, for example when a turn finishes. The TUI then only partly repaints, which is why changing the theme (a full redraw) fixes it for a while.

    I think this is a duplicate of #41763. Possible duplicates and related issues, ordered from most to least likely:

    Until that's fixed, a workaround that may help is turning off attention sounds in your tui.json:

    {
      "$schema": "https://opencode.ai/tui.json",
      "attention": { "sound": false }
    }

    Please subscribe to or 👍 #41763 to follow progress. The bot will close this issue as a duplicate in 1 day unless you reply explaining how your problem is different.

  4. opencodejr commented on Oct 28, 2026

    @opencodejr
    Contributor

    Closing this as a duplicate of #41763, since there's been no reply in the past day. The lines drawn over the UI in your screenshot (ALSA lib ... cannot find card '0') come from the TUI's audio backend. On Linux machines with no sound card, ALSA writes its errors straight to the terminal when a notification sound plays, and the TUI only partly repaints afterwards. That is the problem tracked in #41763, and open PR #59128 addresses it.

    Until it's fixed, setting "attention": { "sound": false } in your tui.json may help. Please subscribe to or 👍 #41763 to follow progress. If your problem turns out to be different, reply here and we'll take another look.

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions