Skip to content

TUI rendering with random characters like â and € windows 11 when UV formatter is enabled #9338

@nhickster

Description

@nhickster

Description

See the attached screen shots. But I getting garbled characters on my windows machine when I have the uv formatter enabled. I installed opencode with npm, and for some reason the uv formatter appears to be messing with the characters of the TUI. Mostly a lot of †characters, and it's not always in the TUI chrome, the response from the models also has messed up characters. Disabling UV formatter fixes the issue.

Plugins

none

OpenCode version

1.1.25

Steps to reproduce

  1. Install open code on windows (I used npm install -g opencode-ai)
  2. install the latest python and uv.
  3. Run opencode in windows terminal, powershell, pwsh, or wezterm
  4. observe random characters instead of TUI chrome.

Screenshot and/or share link

Image Image

Operating System

Windows 11

Terminal

Window Terminal, Powershell, Pwsh, and WezTerm all have the same issue for me.

Workaround

Disable UV formatter in opencode.json:

"uv": {
  "disabled": true
}

Metadata

Metadata

Assignees

Labels

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

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions