opencode icon indicating copy to clipboard operation
opencode copied to clipboard

V1.0.80 Code Formating for light themes does not correcly

Open mariofranke opened this issue 5 months ago • 10 comments

Description: In light themes, the dot (.) in code blocks is white, so you can’t see it. The dot between object and function() basically disappears.

Tested On: • macOS (iTerm, WezTerm) • Windows (Windows Terminal, Wezterm)

Same issue on all of them.

I was on 0.X before and had no issues.

Image

mariofranke avatar Nov 20 '25 18:11 mariofranke

Probably needs some adjustments for the syntax highlight groups in the light themes.

kommander avatar Nov 20 '25 20:11 kommander

it works fine for typescript but for cpp its worst, u can not see the code properly; in dark theme its fine

MonuCarpenter avatar Nov 23 '25 12:11 MonuCarpenter

I have the same problem with .vim and .less files, below an example

Image

the text is all white which is not correct for light theme, this must be caused by your syntax highlighter (maybe bat or similar) that does not work with specific type of files

fabOnReact avatar Dec 04 '25 14:12 fabOnReact

@fabOnReact it got fixed with the latest version, please update it

MonuCarpenter avatar Dec 04 '25 14:12 MonuCarpenter

@MonuCarpenter I installed latest versione with homebrew and still have the issue. Thanks

Image

fabOnReact avatar Dec 04 '25 14:12 fabOnReact

@fabOnReact try ghostyy terminal

MonuCarpenter avatar Dec 04 '25 14:12 MonuCarpenter

@MonuCarpenter I tried and I have the same problems

Image

fabOnReact avatar Dec 05 '25 09:12 fabOnReact

I tried to reproduce that on macos. This looks like it happens when there is no tree-sitter parser for the given filetype. But I cannot reproduce that in any terminal. I tried with all themes in light mode and the system theme when the os is set to light mode. The font color is dark and visible for me. Can anyone give me more details on how to reproduce that? Are you using custom themes?

kommander avatar Dec 05 '25 13:12 kommander

no, just the normal theme from opencode. I know tree-sitter because I use it in neovim, but works without problems there. Seems like tree-sitter has parser for vim files, so maybe you are not installing that parser?

Image

fabOnReact avatar Dec 05 '25 14:12 fabOnReact

Can you try with bunx opencode-ai@snapshot-kmdr-debug?

kommander avatar Dec 05 '25 22:12 kommander

These have been reportedly fixed in latest versions.

kommander avatar Dec 20 '25 18:12 kommander