Missing md formating after upgrade to v1.0.x #2487

Closed
opened 2026-02-16 17:35:52 -05:00 by yindo · 26 comments
Owner

Originally created by @somera on GitHub (Nov 2, 2025).

Originally assigned to: @kommander on GitHub.

Description

Since upgrade to 1.0.x the output is not readable.

in 0.15.x

Image

in 1.0.x

Image

OpenCode version

1.0.11

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

Windows 11

Terminal

GitBash

Originally created by @somera on GitHub (Nov 2, 2025). Originally assigned to: @kommander on GitHub. ### Description Since upgrade to 1.0.x the output is not readable. in 0.15.x <img width="954" height="662" alt="Image" src="https://github.com/user-attachments/assets/00c467b5-9267-4503-880f-f1a2a0483ac0" /> in 1.0.x <img width="1151" height="958" alt="Image" src="https://github.com/user-attachments/assets/67bd9981-a39e-4902-b00a-2f3cb1ddf87f" /> ### OpenCode version 1.0.11 ### Steps to reproduce _No response_ ### Screenshot and/or share link _No response_ ### Operating System Windows 11 ### Terminal GitBash
yindo added the opentuibug labels 2026-02-16 17:35:52 -05:00
yindo closed this issue 2026-02-16 17:35:52 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Nov 2, 2025):

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

  • #3312: Reports markdown being rendered as plain text instead of formatted in OpenTUI
  • #3711: Reports broken syntax highlighting in v1.0.9 TUI
  • #3687: Reports missing highlighting in diffs in v1.0.7

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

@github-actions[bot] commented on GitHub (Nov 2, 2025): This issue might be a duplicate of existing issues. Please check: - #3312: Reports markdown being rendered as plain text instead of formatted in OpenTUI - #3711: Reports broken syntax highlighting in v1.0.9 TUI - #3687: Reports missing highlighting in diffs in v1.0.7 Feel free to ignore if none of these address your specific case.
Author
Owner

@Regboy744 commented on GitHub (Nov 2, 2025):

same problem happening with me

@Regboy744 commented on GitHub (Nov 2, 2025): same problem happening with me
Author
Owner

@kommander commented on GitHub (Nov 2, 2025):

Can you open the console with alt+d and see if there are any TSWorker errors?

@kommander commented on GitHub (Nov 2, 2025): Can you open the console with alt+d and see if there are any TSWorker errors?
Author
Owner

@somera commented on GitHub (Nov 2, 2025):

@kommander I don't see any errors (GitBash or PowerShell).

Image
@somera commented on GitHub (Nov 2, 2025): @kommander I don't see any errors (GitBash or PowerShell). <img width="1094" height="884" alt="Image" src="https://github.com/user-attachments/assets/a1acf959-a34c-421c-8f94-98a1324185b9" />
Author
Owner

@kommander commented on GitHub (Nov 2, 2025):

When you press alt+d to open the console and then directly press ctrl+s, it should store the logs to a file in the cwd. Can you share that? There should be something about TSWorker loading parsers and queries.

@kommander commented on GitHub (Nov 2, 2025): When you press alt+d to open the console and then directly press ctrl+s, it should store the logs to a file in the cwd. Can you share that? There should be something about TSWorker loading parsers and queries.
Author
Owner

@somera commented on GitHub (Nov 2, 2025):

I see this

Image

at the beginning.

@somera commented on GitHub (Nov 2, 2025): I see this <img width="1362" height="90" alt="Image" src="https://github.com/user-attachments/assets/316bf508-b929-4e77-a845-040aa32b5e4c" /> at the beginning.
Author
Owner

@somera commented on GitHub (Nov 2, 2025):

Here is the log:

_console_1762105353194.log

@somera commented on GitHub (Nov 2, 2025): Here is the log: [_console_1762105353194.log](https://github.com/user-attachments/files/23291909/_console_1762105353194.log)
Author
Owner

@kommander commented on GitHub (Nov 2, 2025):

Cool, I see the issue. Need to figure out how to solve it and why it doesn't work on windows. Probably because of the hardcore path with slashes. Will be fixed.

@kommander commented on GitHub (Nov 2, 2025): Cool, I see the issue. Need to figure out how to solve it and why it doesn't work on windows. Probably because of the hardcore path with slashes. Will be fixed.
Author
Owner

@somera commented on GitHub (Nov 6, 2025):

@kommander any updates here?

@somera commented on GitHub (Nov 6, 2025): @kommander any updates here?
Author
Owner

@thdxr commented on GitHub (Nov 6, 2025):

we're fixing some general perf issues this week will be looking closer at windows next week

@thdxr commented on GitHub (Nov 6, 2025): we're fixing some general perf issues this week will be looking closer at windows next week
Author
Owner

@somera commented on GitHub (Nov 16, 2025):

Any update here?

@somera commented on GitHub (Nov 16, 2025): Any update here?
Author
Owner

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

@somera yea we have a fix for this in dev shipping today

@rekram1-node commented on GitHub (Nov 17, 2025): @somera yea we have a fix for this in dev shipping today
Author
Owner

@somera commented on GitHub (Nov 18, 2025):

I updated to 1.0.72 and I see no changes in git bash and PowerShell

Image
@somera commented on GitHub (Nov 18, 2025): I updated to 1.0.72 and I see no changes in git bash and PowerShell <img width="1066" height="266" alt="Image" src="https://github.com/user-attachments/assets/cd2fd4c8-acfb-42c2-855e-20a0dfc1d0f1" />
Author
Owner

@somera commented on GitHub (Nov 18, 2025):

And when I exit opencode (in git bash) I see strange output:

Image
@somera commented on GitHub (Nov 18, 2025): And when I exit opencode (in git bash) I see strange output: <img width="977" height="407" alt="Image" src="https://github.com/user-attachments/assets/b815d88f-779c-4180-acb1-3509a652dc43" />
Author
Owner

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

For whatever reason it worked pre build but not post will fix

@rekram1-node commented on GitHub (Nov 18, 2025): For whatever reason it worked pre build but not post will fix
Author
Owner

@somera commented on GitHub (Nov 18, 2025):

And when I exit opencode (in git bash) I see strange output:

Image

@rekram1-node any idea why I see this in git bash after ending opencode? And I don't see this in v0.15.31.

@somera commented on GitHub (Nov 18, 2025): > And when I exit opencode (in git bash) I see strange output: > > <img alt="Image" width="977" height="407" src="https://private-user-images.githubusercontent.com/8334250/515576892-b815d88f-779c-4180-acb1-3509a652dc43.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NjM1MDYwODUsIm5iZiI6MTc2MzUwNTc4NSwicGF0aCI6Ii84MzM0MjUwLzUxNTU3Njg5Mi1iODE1ZDg4Zi03NzljLTQxODAtYWNiMS0zNTA5YTY1MmRjNDMucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MTExOCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTExMThUMjI0MzA1WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YTllMjM4MTU3OWNkYmRkNWU2NWY0MjMwMjAwZTI1MjIxMTEyMjMwMWZmNzUzN2IwMjEzYzgwYWRhOWZiYzQ0YyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.lY8RDZ_0ApNxQcmNt9ZwlVC5yEZxolUcYG2dxbR5vbs"> @rekram1-node any idea why I see this in git bash after ending opencode? And I don't see this in v0.15.31.
Author
Owner

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

im not entirely sure the root cause but the escape ansi codes are leaking through

@rekram1-node commented on GitHub (Nov 19, 2025): im not entirely sure the root cause but the escape ansi codes are leaking through
Author
Owner

@somera commented on GitHub (Nov 19, 2025):

im not entirely sure the root cause but the escape ansi codes are leaking through

ChatGPT say this ...

What you see in the screenshot is not some secret code from your script, but the raw mouse event data from your terminal.

Those chunks actually look like this (the beginning is just hidden / not printed nicely):

ESC [ < 35 ; 74 ; 18 M
ESC [ < 35 ; 75 ; 17 M
ESC [ < 17 ; 35 ; 76 M
...

(You usually don’t see the ESC[<, but it’s there.)

Meaning of the parts:

  • ESC[< – “start of a mouse event” in xterm / SGR mouse mode
  • 35 – button / event code (which mouse button, which modifiers, etc.)
  • 74X position (column number) of the mouse
  • 18Y position (row number) of the mouse
  • M – mouse button pressed / moved (m would mean “released”)

These sequences appear when some program has enabled xterm mouse tracking (for example vim, tmux, less with mouse support, etc.) and, instead of handling them internally, the raw bytes end up printed into the terminal or captured by your script.

So in short:
👉 It’s just the terminal reporting mouse clicks/movements as text codes. It’s not an error in itself, just noisy output. If it bothers you, stop the program (Ctrl+C) or start a fresh terminal.

@somera commented on GitHub (Nov 19, 2025): > im not entirely sure the root cause but the escape ansi codes are leaking through ChatGPT say this ... What you see in the screenshot is **not** some secret code from your script, but the **raw mouse event data from your terminal**. Those chunks actually look like this (the beginning is just hidden / not printed nicely): ```text ESC [ < 35 ; 74 ; 18 M ESC [ < 35 ; 75 ; 17 M ESC [ < 17 ; 35 ; 76 M ... ``` (You usually don’t see the `ESC[<`, but it’s there.) Meaning of the parts: * `ESC[<` – “start of a mouse event” in xterm / SGR mouse mode * `35` – button / event code (which mouse button, which modifiers, etc.) * `74` – **X position** (column number) of the mouse * `18` – **Y position** (row number) of the mouse * `M` – mouse button **pressed / moved** (`m` would mean “released”) These sequences appear when some program has enabled **xterm mouse tracking** (for example `vim`, `tmux`, `less` with mouse support, etc.) and, instead of handling them internally, the raw bytes end up printed into the terminal or captured by your script. So in short: 👉 It’s just the terminal reporting **mouse clicks/movements** as text codes. It’s not an error in itself, just noisy output. If it bothers you, stop the program (`Ctrl+C`) or start a fresh terminal.
Author
Owner

@somera commented on GitHub (Nov 30, 2025):

For whatever reason it worked pre build but not post will fix

When can we expect a solution?

@somera commented on GitHub (Nov 30, 2025): > For whatever reason it worked pre build but not post will fix When can we expect a solution?
Author
Owner

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

ill look into it im hoping its a trivial bug

@rekram1-node commented on GitHub (Nov 30, 2025): ill look into it im hoping its a trivial bug
Author
Owner

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

Should be fixed on 1.0.130

@rekram1-node commented on GitHub (Dec 3, 2025): Should be fixed on 1.0.130
Author
Owner

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

@rekram1-node formating works now.

But there is the problem, when I /exit opencode in the git bash on windows I see this (as I wrote above, this are a mouse events)

Image

This was not in v0.15.x. I need to close and open my git bash.

@somera commented on GitHub (Dec 4, 2025): @rekram1-node formating works now. But there is the problem, when I `/exit` opencode in the git bash on windows I see this (as I wrote above, this are a mouse events) <img width="825" height="227" alt="Image" src="https://github.com/user-attachments/assets/41a6fcc9-8ea9-4935-b1af-15bc2323d26b" /> This was not in `v0.15.x`. I need to close and open my git bash.
Author
Owner

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

Yeah we will fix that too

@rekram1-node commented on GitHub (Dec 4, 2025): Yeah we will fix that too
Author
Owner

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

Do you need a new issue for this?

@somera commented on GitHub (Dec 4, 2025): Do you need a new issue for this?
Author
Owner

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

I think there is one already let me see

@rekram1-node commented on GitHub (Dec 4, 2025): I think there is one already let me see
Author
Owner

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

maybe not

@rekram1-node commented on GitHub (Dec 4, 2025): maybe not
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2487