opentui: markdown is just rendered as text #2196

Closed
opened 2026-02-16 17:34:36 -05:00 by yindo · 20 comments
Owner

Originally created by @Isos9 on GitHub (Oct 20, 2025).

Originally assigned to: @rekram1-node on GitHub.

Description

Hi, the markdown returned by a model doesn't get rendered and highlighted, it's simply text.

OpenCode version

opentui

Steps to reproduce

No response

Screenshot and/or share link

Image

Operating System

Arch

Terminal

Alacritty

Originally created by @Isos9 on GitHub (Oct 20, 2025). Originally assigned to: @rekram1-node on GitHub. ### Description Hi, the markdown returned by a model doesn't get rendered and highlighted, it's simply text. ### OpenCode version opentui ### Steps to reproduce _No response_ ### Screenshot and/or share link <img width="650" height="322" alt="Image" src="https://github.com/user-attachments/assets/5fa1f2c3-7699-41d7-89dc-618fe028dbc4" /> ### Operating System Arch ### Terminal Alacritty
yindo added the windowsopentuibug labels 2026-02-16 17:34:36 -05:00
yindo closed this issue 2026-02-16 17:34:36 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Oct 20, 2025):

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

  • #1857: Similar syntax highlighting problems, specifically mentions highlighting breaks and inconsistencies
  • #488: Custom theme issues with markdown properties causing rendering problems

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

@github-actions[bot] commented on GitHub (Oct 20, 2025): This issue might be a duplicate of existing issues. Please check: - #1857: Similar syntax highlighting problems, specifically mentions highlighting breaks and inconsistencies - #488: Custom theme issues with markdown properties causing rendering problems Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Oct 20, 2025):

Yeah we are gonna fix this soon and fix it before it's shipped

@rekram1-node commented on GitHub (Oct 20, 2025): Yeah we are gonna fix this soon and fix it before it's shipped
Author
Owner

@Isos9 commented on GitHub (Oct 20, 2025):

do you guys have a list ? might be better to know what you planned to avoid creating more issues. because I do see other things missing

@Isos9 commented on GitHub (Oct 20, 2025): do you guys have a list ? might be better to know what you planned to avoid creating more issues. because I do see other things missing
Author
Owner

@rekram1-node commented on GitHub (Oct 21, 2025):

im tracking open issues with opentui label, we also have some in our internal channels but im I think a decent # of them are issues on github too

Anything you see that you think needs to be addressed, issues are more than welcome! Worst case there is a duplicate but that's no biggie

@rekram1-node commented on GitHub (Oct 21, 2025): im tracking open issues with `opentui` label, we also have some in our internal channels but im I think a decent # of them are issues on github too Anything you see that you think needs to be addressed, issues are more than welcome! Worst case there is a duplicate but that's no biggie
Author
Owner

@shaunpatel commented on GitHub (Oct 30, 2025):

For me it's also not highlighting code diffs.

@shaunpatel commented on GitHub (Oct 30, 2025): For me it's also not highlighting code diffs.
Author
Owner

@tylimbach commented on GitHub (Nov 24, 2025):

I can reproduce this on Windows 11 using WezTerm with v1.0.107.

When I run from source with: bun install && bun dev, markdown text renders correctly. The rendering bug only appears when using the deployed binaries, whether downloaded directly or via a package manager.

@tylimbach commented on GitHub (Nov 24, 2025): I can reproduce this on Windows 11 using WezTerm with v1.0.107. When I run from source with: `bun install && bun dev`, markdown text renders correctly. The rendering bug only appears when using the deployed binaries, whether downloaded directly or via a package manager.
Author
Owner

@rekram1-node commented on GitHub (Nov 24, 2025):

Yeah we have been looking into it, something with bun single file executables makes the issue start happening, only affects windows

@rekram1-node commented on GitHub (Nov 24, 2025): Yeah we have been looking into it, something with bun single file executables makes the issue start happening, only affects windows
Author
Owner

@apekros commented on GitHub (Nov 25, 2025):

Yeah we have been looking into it, something with bun single file executables makes the issue start happening, only affects windows

This issue is also occurring on v1.0.105 for me in ghostty/on NixOS

@apekros commented on GitHub (Nov 25, 2025): > Yeah we have been looking into it, something with bun single file executables makes the issue start happening, only affects windows This issue is also occurring on v1.0.105 for me in ghostty/on NixOS
Author
Owner

@bartman commented on GitHub (Nov 25, 2025):

I'm seeing no code highlighting or diff highlighting after upgrading to 1.0.105 (don't recall seeing this issue with .20 or .78).

Markdown just looks like text.

I'm on NixOS/Linux, using kitty.

@bartman commented on GitHub (Nov 25, 2025): I'm seeing no code highlighting or diff highlighting after upgrading to 1.0.105 (don't recall seeing this issue with .20 or .78). Markdown just looks like text. I'm on NixOS/Linux, using kitty.
Author
Owner

@rekram1-node commented on GitHub (Nov 25, 2025):

@bartman @apekros both of you say 1.0.105 broke it, what about 1.0.104?

bunx opencode-ai@1.0.105

@rekram1-node commented on GitHub (Nov 25, 2025): @bartman @apekros both of you say 1.0.105 broke it, what about 1.0.104? `bunx opencode-ai@1.0.105`
Author
Owner

@NightRare commented on GitHub (Nov 26, 2025):

both of you say 1.0.105 broke it, what about 1.0.104?

bunx opencode-ai@1.0.105

1.0.104 also doesn't work for me. I never saw markdown syntax highlight on 1.0.x

@NightRare commented on GitHub (Nov 26, 2025): > both of you say 1.0.105 broke it, what about 1.0.104? > > `bunx opencode-ai@1.0.105` 1.0.104 also doesn't work for me. I never saw markdown syntax highlight on 1.0.x
Author
Owner

@rekram1-node commented on GitHub (Nov 26, 2025):

well i think ur on windows, right?, we are working on a fix for that

@rekram1-node commented on GitHub (Nov 26, 2025): well i think ur on windows, right?, we are working on a fix for that
Author
Owner

@ApprenticeofEnder commented on GitHub (Nov 26, 2025):

Confirmed it's on the Home Manager binaries for 1.0.105 on MacOS, too. Granted that's technically Nix binaries, but that means it's evidently an issue with the binary itself.

@ApprenticeofEnder commented on GitHub (Nov 26, 2025): Confirmed it's on the Home Manager binaries for 1.0.105 on MacOS, too. Granted that's technically Nix binaries, but that means it's evidently an issue with the binary itself.
Author
Owner

@apekros commented on GitHub (Nov 26, 2025):

both of you say 1.0.105 broke it, what about 1.0.104?
bunx opencode-ai@1.0.105

1.0.104 also doesn't work for me. I never saw markdown syntax highlight on 1.0.x

With bunx, both opencode-ai@1.0.105 and opencode-ai@1.0.104 the markdown syntax highlighting works.

I am unsure what has changed, on 1.0.45 on NixOS it works, but any later binary does not

@apekros commented on GitHub (Nov 26, 2025): > > both of you say 1.0.105 broke it, what about 1.0.104? > > `bunx opencode-ai@1.0.105` > > 1.0.104 also doesn't work for me. I never saw markdown syntax highlight on 1.0.x With bunx, both opencode-ai@1.0.105 and opencode-ai@1.0.104 the markdown syntax highlighting works. I am unsure what has changed, on 1.0.45 on NixOS it works, but any later binary does not
Author
Owner

@ApprenticeofEnder commented on GitHub (Nov 27, 2025):

both of you say 1.0.105 broke it, what about 1.0.104?
bunx opencode-ai@1.0.105

1.0.104 also doesn't work for me. I never saw markdown syntax highlight on 1.0.x

With bunx, both opencode-ai@1.0.105 and opencode-ai@1.0.104 the markdown syntax highlighting works.

I am unsure what has changed, but now on the nix binary I am not having issues since using bunx

Weird, the bunx executable is fine, but the Nix binaries are still messed up. (bunx on the left, Nix on the right)

Image
@ApprenticeofEnder commented on GitHub (Nov 27, 2025): > > > both of you say 1.0.105 broke it, what about 1.0.104? > > > `bunx opencode-ai@1.0.105` > > > > > > 1.0.104 also doesn't work for me. I never saw markdown syntax highlight on 1.0.x > > With bunx, both opencode-ai@1.0.105 and opencode-ai@1.0.104 the markdown syntax highlighting works. > > I am unsure what has changed, but now on the nix binary I am not having issues since using bunx Weird, the `bunx` executable is fine, but the Nix binaries are still messed up. (`bunx` on the left, Nix on the right) <img width="2546" height="1255" alt="Image" src="https://github.com/user-attachments/assets/5d299833-48f9-4b16-b67b-f5e386c60e94" />
Author
Owner

@rekram1-node commented on GitHub (Dec 4, 2025):

I believe this is fixed on latest

@rekram1-node commented on GitHub (Dec 4, 2025): I believe this is fixed on latest
Author
Owner

@NightRare commented on GitHub (Dec 4, 2025):

@rekram1-node Thank you for the fix! I just upgraded to 1.0.132 and can confirm it's fixed on my Windows machine.

@NightRare commented on GitHub (Dec 4, 2025): @rekram1-node Thank you for the fix! I just upgraded to 1.0.132 and can confirm it's fixed on my Windows machine.
Author
Owner

@somera commented on GitHub (Dec 4, 2025):

I can't test it because of the proxy issue. ;)

@somera commented on GitHub (Dec 4, 2025): I can't test it because of the proxy issue. ;)
Author
Owner

@ApprenticeofEnder commented on GitHub (Dec 18, 2025):

Still seems to be broken on the nixpkgs 1.0.133? Might be some weird dependency missing.

@ApprenticeofEnder commented on GitHub (Dec 18, 2025): Still seems to be broken on the nixpkgs 1.0.133? Might be some weird dependency missing.
Author
Owner

@ritiek commented on GitHub (Dec 25, 2025):

@ApprenticeofEnder Had the same issue. Looks to be working for me now with nixpkgs 1.0.180 (https://github.com/NixOS/nixpkgs/issues/472229).

@ritiek commented on GitHub (Dec 25, 2025): @ApprenticeofEnder Had the same issue. Looks to be working for me now with nixpkgs 1.0.180 (https://github.com/NixOS/nixpkgs/issues/472229).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2196