Repository navigation
Make terminal error overlays opaque - #18231
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Team Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review. 📝 WalkthroughWalkthroughUpdated the terminal error toast to use a solid Merge Risk: ⚪ Minimal · up to This localized styling change makes terminal error overlays opaque while preserving theme-aware colors, without changing application behavior, access, data handling, or deployment. No actionable merge-blocking risk remains after normal checks and review. 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
Full details: Description checkExplanation The description explains the change, includes validation results, reports the type-check blocker, and provides required before-and-after visual proof. It omits the required Linked Issue, ELI5, Why, Review, Notes, Agent skill upstream boundary, and checklist sections. It also does not state which platforms were tested. Resolution Add the required template sections. Provide a linked issue after “Fixes #”, complete the ELI5 and Why sections, document platform and SSH testing, complete or explain the Testing checklist, and address the remaining Review, Notes, Agent skill upstream boundary, and Checklist items.
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Team
Run ID: 7ace97d3-69bc-4c53-b54d-58dfa242b187
📒 Files selected for processing (1)
src/renderer/src/components/terminal-pane/TerminalErrorToast.tsx
Included review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review.
There was a problem hiding this comment.
Important
The opaque, theme-aware background breaks text contrast in light mode: the SSH and error foreground colors are still hardcoded light values chosen for a dark terminal surface.
Reviewed changes
- Opaque terminal error overlays — the SSH and generic error toast backgrounds switch from translucent
rgba()to opaquecolor-mix(in srgb, … 20%, var(--popover)), so terminal output no longer bleeds through while the tint stays theme-aware.
ℹ️ Nitpicks
- The SSH background now uses
var(--color-amber-500)(#f59e0b) while its border on line 214 still usesrgba(234, 179, 8, 0.35)(#eab308, yellow-500), so the SSH border and background hues no longer match. Consider mixing the border from the same token.
DeepSeek Pro (free via Pullfrog for OSS) | 𝕏
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes — since the prior pullfrog review, two commits:
- Theme-aware foreground colors — the SSH/error toast text, the issue link, and the dismiss control switched from hardcoded light values (
#fde68a/#fca5a5) tovar(--popover-foreground)/inherit, resolving the light-mode contrast problem. - Opaque fallback on older browsers — the tint moved off the
backgroundshorthand onto abackgroundImage: linear-gradient(${tint}, ${tint})layer over a solidvar(--popover)base, so runtimes withoutcolor-mixsupport still render an opaque overlay.
DeepSeek Pro (free via Pullfrog for OSS) | 𝕏
Grok UI QA — terminal error overlay opacity (PR worktree)Launched a CDP Orca dev instance from Visible evidenceBefore (no overlay): marker lines 20–27 are fully readable at the bottom of the terminal. After — red error overlay: After — yellow SSH overlay: Computed styles (CDP)
Notes / remaining gaps
|
|
Review status: land after fixes.
|
* Make terminal error overlays opaque * fix(terminal): keep opaque error toast text readable * fix(terminal): keep toast fallback opaque on older browsers --------- Co-authored-by: Merge Sim <sim@local>








Summary
Validation
pnpm test src/renderer/src/components/terminal-pane/TerminalErrorToast.test.ts(39 passed)pnpm exec oxlint src/renderer/src/components/terminal-pane/TerminalErrorToast.tsxpnpm tcis currently blocked by an existingstaleCleanupInFlighttype error insrc/main/worktree-create-preparation.ts:66.Visual proof
Yellow SSH reconnect overlay:
Red terminal error overlay: