You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Code examples are invisible when using a terminal in light mode and selecting text puts all in black.
Plugins
None
OpenCode version
1.2.27
Steps to reproduce
Open a terminal, change colors to use light theme.
Ask to the agen for some code examples.
Screenshot and/or share link
Operating System
Pop!_OS 22.04 LTS
Terminal
gnome terminal
Reacted by Abin Simon, Kaspar Schleiser, Ramon | slow recovery, Łukasz Czajka, Fernando Carletti, Alexander Kim, zewelor, Dario Bugmann, Andrew Clunis, Victor Molostov and 2 more
If your issue is not covered by any of the above, please clarify how it differs. Otherwise, consider adding a reaction or comment on the existing issue instead.
It seems like this might be an intermittent problem with how opencode (or opentui?) renders markdown code blocks. The fix suggested by the PR doesn't seem to work -- it seems like the foreground color is sometimes white too.
Activity
github-actions commentedon Mar 17, 2026
This issue might be a duplicate of existing issues. Please check:
If your issue is not covered by any of the above, please clarify how it differs. Otherwise, consider adding a reaction or comment on the existing issue instead.
van-sprundel commentedon Mar 19, 2026
bump
For some reason the formatted sections do not render well in light mode. on-select is dark and the text itself is not visible.
on select:
van-sprundel commentedon Mar 19, 2026
Seems that this would be a one-liner fix
this worked for me locally
nb5p commentedon May 30, 2026
I'm hitting the same issue with Ghostty using the Tango Light theme.
amelvil2-ford commentedon Jun 25, 2026
It seems like this might be an intermittent problem with how opencode (or opentui?) renders markdown code blocks. The fix suggested by the PR doesn't seem to work -- it seems like the foreground color is sometimes white too.
van-sprundel commentedon Jun 25, 2026
Yes, but making the background the correct color would make the white text visible
amelvil2-ford commentedon Jun 25, 2026
From what I saw, it seemed like both the foreground and background colors were white in some cases on MacOS, even with this fix.
github-actions commentedon Aug 25, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.