Repository navigation
Fix transparent terminal backgrounds - #5425
TomBonness wants to merge 1 commit into
Conversation
📝 WalkthroughWalkthrough
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
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: Pro
Run ID: 7a49dd49-8ec8-4261-8c64-36d02115edce
📥 Commits
Reviewing files that changed from the base of the PR and between f3f41e3 and d3e04d8635247b233c7ccb517de4a5eafddbef02.
📒 Files selected for processing (6)
src/main/window/createMainWindow.test.tssrc/main/window/createMainWindow.tssrc/renderer/src/assets/main.csssrc/renderer/src/assets/terminal.csssrc/renderer/src/lib/pane-manager/pane-lifecycle.test.tssrc/renderer/src/lib/pane-manager/pane-webgl-renderer.ts
| @apply text-foreground; | ||
| background-color: transparent; |
There was a problem hiding this comment.
Fix Stylelint empty-line rule in body declarations.
Line 317 currently violates declaration-empty-line-before per the static-analysis output. Add the required blank line before background-color: transparent; to keep lint green.
Suggested fix
body {
`@apply` text-foreground;
+
background-color: transparent;
margin: 0;📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| @apply text-foreground; | |
| background-color: transparent; | |
| `@apply` text-foreground; | |
| background-color: transparent; |
🧰 Tools
🪛 Stylelint (17.13.0)
[error] 317-317: Expected empty line before declaration (declaration-empty-line-before)
(declaration-empty-line-before)
Source: Linters/SAST tools
d3e04d8 to
cabdc6e
Compare
|
Ready to review this PR? Stage has broken it down into 4 individual chapters for you:
Chapters generated by Stage for commit cabdc6e on Jun 15, 2026 11:41pm UTC. |
|
Closing as superseded by #36580, which adds Opaque, Translucent and Blurred window materials on macOS, Windows and Linux (plus Reduce Visual Effects) and fixes the transparent-terminal flicker. Thank you for this PR, it shaped the design. |
Summary
Screenshots
Manual local verification in the packaged app showed the terminal remaining transparent while unfocused, no white scrollbar line after restart, and the cursor visible again after transparent terminals used the DOM renderer. No screenshot committed to the PR.
Testing
pnpm lintpnpm typecheckpnpm testpnpm buildFocused checks run:
pnpm exec oxfmt --write src/main/window/createMainWindow.ts src/main/window/createMainWindow.test.ts src/renderer/src/assets/main.css src/renderer/src/assets/terminal.css src/renderer/src/lib/pane-manager/pane-webgl-renderer.ts src/renderer/src/lib/pane-manager/pane-lifecycle.test.tspnpm exec vitest run --config config/vitest.config.ts src/main/window/createMainWindow.test.ts src/renderer/src/lib/pane-manager/pane-lifecycle.test.ts src/renderer/src/lib/pane-manager/pane-terminal-gpu-acceleration.test.tspnpm exec tsgo --noEmit -p config/tsconfig.node.jsonpnpm exec tsgo --noEmit -p config/tsconfig.tc.web.jsonpnpm exec node config/scripts/check-styled-scrollbars.mjspnpm exec oxlint src/main/window/createMainWindow.ts src/main/window/createMainWindow.test.ts src/renderer/src/lib/pane-manager/pane-webgl-renderer.ts src/renderer/src/lib/pane-manager/pane-lifecycle.test.tspnpm exec vitest run --config config/vitest.config.ts src/renderer/src/lib/pane-manager/pane-lifecycle.test.tspnpm exec oxlint src/renderer/src/lib/pane-manager/pane-webgl-renderer.ts src/renderer/src/lib/pane-manager/pane-lifecycle.test.tsAI Review Report
AI review checked the Electron window flags, renderer transparency path, xterm renderer selection, scrollbar styling, and platform-specific behavior. Main risks checked:
No blocker found in the reviewed diff.
Security Audit
No new IPC, file access, auth, shell command, path handling, network, or secrets behavior. Changes are limited to Electron window construction options, renderer CSS, and local xterm renderer selection. No follow-up security work needed.
Notes
This intentionally trades WebGL acceleration for visual correctness only when terminal transparency is enabled and GPU acceleration is set to
auto. Users who explicitly set GPU acceleration toonstill get WebGL.ELI5
Transparent/blurred terminals looked wrong: inactive windows lost transparency, cursors and selections could vanish, and repaints flashed. Fixes keep blur and transparency working smoothly on macOS.