[Bug]: v2 sidebar section unreadable on light themes — OMO-Slim text renders near-white on white (3.0.1)
What happened, and what did you expect?
On OpenCode v2 with a light color scheme (Windows Terminal light scheme; the TUI resolves to light mode), the whole OMO-Slim sidebar section is unreadable: the header badge (OMO-Slim + v3.0.1), the preset row (Preset · <name>), every agent row (orchestrator / explorer / librarian / oracle / designer / fixer) and the model names all render in a near-white color on a white background.
Everything else in the same sidebar is fine — OpenCode's own Context / MCP block and the neighbouring Magic Context plugin section render with correct contrast. The problem is specific to the OMO-Slim section, and it does not happen on a dark theme/terminal.
Expected: the sidebar section should adapt to the active light mode, or at minimum fall back to contrast-safe colors (the way the OMO-Slim badge was fixed in #582).
Steps to reproduce
- OpenCode v2 with a light terminal color scheme / light theme (the TUI resolves to light mode).
oh-my-opencode-slim@latest(3.0.1), sidebar visible (preset section open).- Look at the session sidebar → the OMO-Slim block is white-on-white.
oh-my-opencode.json
Nothing theme-related, default config.
OpenCode version
2.0.21
oh-my-opencode-slim version
3.0.1
Operating system
WSL2 (Ubuntu 24.04) on Windows 11, Windows Terminal (light color scheme)
Logs, screenshots, or extra context
Screenshot showing the section (OpenCode's Context / MCP block and the Magic Context section are readable, the OMO-Slim block is not) — will be added in a follow-up comment.
Likely cause — read from dist/tui2.js, not verified against the host's plugin theme API:
function v2ThemeView(theme) {
return {
accent: undefined,
background: theme.background.default,
borderActive: theme.border.default,
text: theme.text.default,
textMuted: theme.text.subdued,
...
};
}wired up as theme: () => v2ThemeView(ctx.theme), and every row of the section paints with theme.text / theme.textMuted.
Two things stand out:
accentis hardcoded toundefined, so theOMO-Slimbadge (backgroundColor: theme.accent) has no background at all, andgetContrastForeground(undefined, ...)simply returnstheme.textunchanged.- The tokens the v2 view reads (
theme.text.default,theme.text.subdued) seem to come back as their dark values even though the TUI is painting the light variant — hence light-on-light for the whole section.
Questions: is the v2 path supposed to resolve theme tokens against the active color mode (or derive contrast from the terminal background), and should accent fall back to a real token so the badge keeps a background?
For reference, cli.json here is:
{
"theme": { "name": "opencode" } // no explicit mode; the TUI auto-detected light
}Source: alvinunreal/oh-my-opencode-slim