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
{{ message }}
Repository navigation
tui: collapsed reasoning title ignores thinkingOpacity (hardcoded 0.6 alpha) #51134
The collapsed reasoning title (+ Thought …) in the v2 TUI is hard to read on transparent terminal backgrounds, and it cannot be fixed via theme config.
Root cause: SessionReasoningGroupView in packages/tui/src/routes/session/index.tsx hardcodes alpha 0.6 for the title whenever it is neither hovered nor expanded:
The theme's thinkingOpacity value is parsed (defaults to 0.6) but nothing on this code path reads it, so setting thinkingOpacity in a custom theme has no effect on the collapsed title. Suggested fix: use theme.thinkingOpacity (falling back to 0.6) instead of the literal.
Plugins
@plannotator/opencode
OpenCode version
v2.0.14
Steps to reproduce
Use a theme with a transparent background.
Let a reasoning block stay collapsed (don't hover or expand it).
The + Thought … header always renders at 0.6 alpha, regardless of thinkingOpacity in the theme.
Screenshot and/or share link
(transparent-background TUI: collapsed header visibly dimmer than the hovered/expanded state on the same wallpaper)
Thanks for the detailed report. I can confirm this, both on v2.0.14 and on the latest dev (fa1260d6).
To check, I used a custom theme based on opencode with background: "none", thinkingOpacity: 1.0 and a bright green warning colour. When a reasoning block finishes and collapses, the + Thought … header is drawn at 0.6 alpha (#00ff00 shows as rgb(0,153,0)). It only reaches full colour while hovered, and it dims again once the mouse leaves. With thinkingOpacity: 1.0 it should stay at full colour. The recording and screenshots below show this, and the script below reproduces it.
As you found, the alpha is hardcoded to 0.6 in the collapsed reasoning row (now in packages/tui/src/routes/session/group-view.tsx), and the same literal is in ReasoningHeader in message-parts.tsx. The theme's thinkingOpacity is parsed but never used there.
Run it with opencode-drive: opencode-drive run ./drive.ts. It drives opencode from your PATH; set OC_DEV to the path of an OpenCode checkout to run that from source instead.
Activity
opencodejr commentedon Oct 28, 2026
Thanks for the detailed report. I can confirm this, both on v2.0.14 and on the latest
dev(fa1260d6).To check, I used a custom theme based on
opencodewithbackground: "none",thinkingOpacity: 1.0and a bright greenwarningcolour. When a reasoning block finishes and collapses, the+ Thought …header is drawn at 0.6 alpha (#00ff00shows asrgb(0,153,0)). It only reaches full colour while hovered, and it dims again once the mouse leaves. WiththinkingOpacity: 1.0it should stay at full colour. The recording and screenshots below show this, and the script below reproduces it.As you found, the alpha is hardcoded to
0.6in the collapsed reasoning row (now inpackages/tui/src/routes/session/group-view.tsx), and the same literal is inReasoningHeaderinmessage-parts.tsx. The theme'sthinkingOpacityis parsed but never used there.recording.mp4
Reproduction script (drive.ts)
Run it with opencode-drive:
opencode-drive run ./drive.ts. It drivesopencodefrom yourPATH; setOC_DEVto the path of an OpenCode checkout to run that from source instead.