Skip to content

[Bug] TUI Layout Corruption: Unicode/Chinese characters and icons display as ;w=1; and artifacts #15669

Closed

Description

@im-jinxinwang

Description

Environment:

OS: Ubuntu 22.04.5 LTS (Jammy Jellyfish)

Application: OpenCode

Model Config: Qwen3-Coder-32B

Terminal: (e.g., GNOME Terminal, Alacritty, or VS Code integrated terminal)

Locale:

locale
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=en_US.UTF-8

Description:
The Terminal User Interface (TUI) is not rendering correctly on Ubuntu 22.04. The interface is littered with raw escape sequences and width-calculation artifacts like . Additionally, Chinese characters are displayed as garbled text or replacement blocks, making the interface unreadable.;w=1;

Expected Behavior:
The TUI should display clean borders, icons, and legible Chinese characters. The layout should be properly aligned without raw width-parameter strings appearing in the UI.

Actual Behavior:

Icons/Symbols are replaced by white blocks and strings like .;w=1;

Chinese text input and output are garbled (encoding error).

UI dividers and progress bars are misaligned.

Steps to Reproduce:

Open the terminal on Ubuntu 22.04.

Launch OpenCode.

Observe the header, footer, and any Chinese text prompts.

Plugins

No response

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Activity

  1. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Mar 2, 2026
  2. github-actions commented on Mar 2, 2026

    @github-actions
    Contributor

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

    If your issue is distinct from these, please clarify what differentiates it (e.g., the specific ;w=1; escape sequence artifacts or the Ubuntu 22.04 environment).

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingopentuiThis relates to changes in v1.0, now that opencode uses opentui

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions