Skip to content

fix(terminal): make xterm scrollbar gutter transparent - #7876

Merged
Jinwoo-H merged 2 commits into
stablyai:mainfrom
bbingz:fix/macos-terminal-scrollbar-gutter
Jul 10, 2026
Merged

Jinwoo-H merged 2 commits into
stablyai:mainfrom
bbingz:fix/macos-terminal-scrollbar-gutter

Conversation

@bbingz

@bbingz bbingz commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Style the xterm viewport scrollbar track as transparent so a reserved gutter does not render as a white strip in dark terminal themes.
  • Match Orca's editor-style neutral scrollbar thumb for xterm's native viewport scrollbar.
  • Add a CSS regression test that locks the xterm viewport track/thumb styling.

Closes #7366

Test Plan

  • pnpm exec vitest run --config config/vitest.config.ts src/renderer/src/assets/terminal-scrollbar-style.test.ts
  • pnpm run lint

@coderabbitai

coderabbitai Bot commented Jul 9, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: abe5c9f1-4b37-45e3-8e6e-475220eb2b36

📥 Commits

Reviewing files that changed from the base of the PR and between ee53c12 and c5873e3.

📒 Files selected for processing (3)
  • src/renderer/src/assets/main.css
  • src/renderer/src/assets/terminal-scrollbar-style.test.ts
  • src/renderer/src/assets/terminal.css
✅ Files skipped from review due to trivial changes (2)
  • src/renderer/src/assets/terminal.css
  • src/renderer/src/assets/main.css
🚧 Files skipped from review as they are similar to previous changes (1)
  • src/renderer/src/assets/terminal-scrollbar-style.test.ts

📝 Walkthrough

Walkthrough

The shared editor scrollbar rules now also target the XTerm viewport, covering sizing, track and thumb colors, and hover styling. The terminal CSS comment now identifies main.css as the source of scrollbar styling. A Vitest test verifies transparent Firefox and WebKit scrollbar gutters and confirms that terminal.css does not define the --xterm-scrollbar-thumb variable.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description has summary and testing, but it omits required Screenshots, AI Review Report, Security Audit, and Notes sections from the template. Add the missing sections and include the requested screenshots, AI review, security audit, and platform-specific notes.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly matches the main change: making the xterm scrollbar gutter transparent.
Linked Issues check ✅ Passed The changes directly address #7366 by making the xterm viewport scrollbar track transparent, matching the dark UI, and adding a regression test.
Out of Scope Changes check ✅ Passed All changes are scoped to the scrollbar styling fix and its regression test; no unrelated code paths were introduced.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@Jinwoo-H Jinwoo-H left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Verified against latest main in Electron with macOS always-visible scrollbars. The base build reproduces the contrasting terminal gutter; this PR makes the track transparent without changing the terminal grid, and light mode remains clean. Focused tests, lint, typecheck, and terminal reliability checks pass.

@Jinwoo-H
Jinwoo-H merged commit 946eb52 into stablyai:main Jul 10, 2026
2 checks passed
@bbingz
bbingz deleted the fix/macos-terminal-scrollbar-gutter branch August 1, 2026 00:47
@AmethystLiang

Copy link
Copy Markdown
Contributor

thanks for reporting. looking into it

enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
* fix(terminal): style xterm scrollbar gutter

* fix(terminal): reuse the canonical scrollbar style
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Dark terminal scrollbar gutter renders as a white vertical bar

3 participants