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

Open
opened 2026-02-16 18:05:09 -05:00 by yindo · 3 comments
Owner

Originally created by @nhickster on GitHub (Jan 18, 2026).

Originally assigned to: @kommander on GitHub.

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
}
Originally created by @nhickster on GitHub (Jan 18, 2026). Originally assigned to: @kommander on GitHub. ### 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 <img width="1059" height="559" alt="Image" src="https://github.com/user-attachments/assets/2fb65954-a848-43e3-b6fa-5ce37de002eb" /> <img width="1491" height="387" alt="Image" src="https://github.com/user-attachments/assets/c9e46ace-64d5-4bdf-8085-24693bcbae2a" /> ### 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 } ```
yindo added the windowsopentuibug labels 2026-02-16 18:05:09 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 18, 2026):

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

  • #8715: Opencode Windows Character Spamming - Similar character corruption after exiting on Windows with Wezterm
  • #8410: TUI icons show as garbage characters on Windows 10 - TUI rendering showing garbage characters in PowerShell and cmd
  • #8883: Terminal starts typing random characters automatically during opencode OAuth setup - Random character sequences appearing during OAuth on Windows

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

@github-actions[bot] commented on GitHub (Jan 18, 2026): This issue might be a duplicate of existing issues. Please check: - #8715: Opencode Windows Character Spamming - Similar character corruption after exiting on Windows with Wezterm - #8410: TUI icons show as garbage characters on Windows 10 - TUI rendering showing garbage characters in PowerShell and cmd - #8883: Terminal starts typing random characters automatically during opencode OAuth setup - Random character sequences appearing during OAuth on Windows Feel free to ignore if none of these address your specific case.
Author
Owner

@nhickster commented on GitHub (Jan 24, 2026):

I fixed it by disabling the uv formatter! For anyone else seeing this issue, you need to edit the opencode.json to disable formatters. Adding this fixed it:

"uv": {
  "disabled": true
}

Not sure if you want to keep this bug open, but I'll update it to match the actual issue.

@nhickster commented on GitHub (Jan 24, 2026): I fixed it by disabling the `uv` formatter! For anyone else seeing this issue, you need to edit the [opencode.json](https://opencode.ai/docs/formatters/#configure) to disable formatters. Adding this fixed it: ```json "uv": { "disabled": true } ``` Not sure if you want to keep this bug open, but I'll update it to match the actual issue.
Author
Owner

@vincentleeuwen commented on GitHub (Feb 6, 2026):

What a wild and silly bug. Horrible experience when i tried to use opencode first time. @nhickster solution worked for me. Complete JSON:

{
  "formatter": {
    "uv": {
      "disabled": true
    }
  }
}
@vincentleeuwen commented on GitHub (Feb 6, 2026): What a wild and silly bug. Horrible experience when i tried to use opencode first time. @nhickster solution worked for me. Complete JSON: ``` { "formatter": { "uv": { "disabled": true } } } ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#6752