Fix Windows thread edge background
Summary
Fixes a dark strip that could briefly appear along the right edge of the window when switching threads on Windows.
Electron can expose the window background for a moment while the page repaints. This change maps that surface to the app's existing --background color, so it stays aligned in both light and dark mode.
Screenshots
| Before | After |
|---|---|
![]() |
![]() |
Verification
- formatting, lint, and web typecheck
- tested thread switching in the Windows Electron app
[!NOTE] Low Risk Small theme/chrome styling changes with no auth, data, or API impact; limited to initial paint and theme-color sync behavior.
Overview Fixes a brief dark strip on the right edge when switching threads in the Windows Electron app by keeping the exposed window background aligned with the app surface during repaints.
Dark mode base moves from
#161616to#0a0a0ainindex.html(theme-color meta tags, boot script, andhtml.dark body) so early paint matches the design token used elsewhere.Browser chrome sync in
syncBrowserChromeThemeno longer samplesmain[data-slot='sidebar-inset']/ sidebar inner /bodybackgrounds. It setshtmlandbodytovar(--app-chrome-background)and derives the dynamictheme-colormeta from that resolved color, matching the existing--app-chrome-background→--backgroundwiring in CSS.Reviewed by Cursor Bugbot for commit 1baad2b130ff4352332d612321be396d89dc21ca. Bugbot is set up for automated code reviews on this repo. Configure here.
[!NOTE]
Fix dark mode background color for Windows thread edge
- Updates the dark mode background color from
#161616to#0a0a0ain index.html, affecting the CSS, boot script constant, andtheme-colormeta tags.- Reworks
syncBrowserChromeThemein useTheme.ts to derive the browser chrome color from a new--app-chrome-backgroundCSS variable on the root element, replacing the previous logic that read color from a sidebar or main surface element.Macroscope summarized 1baad2b.
[!IMPORTANT]
Review skipped
Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
.coderabbit.yamlfile in this repository. To trigger a single review, invoke the@coderabbitai reviewcommand.⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID:
f46f9a7c-c579-4982-89c7-802d92b5cec3You can disable this status message by setting the
reviews.review_statustofalsein the CodeRabbit configuration file.Use the checkbox below for a quick retry:
- [ ] 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
- [ ] Create PR with unit tests
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 @coderabbitai help to get the list of available commands.
Approvability
Verdict: Approved
Simple UI fix that changes a dark background color value (#161616 → #0a0a0a) and simplifies theme color syncing logic by using a CSS variable instead of querying specific DOM elements. Changes are purely visual with no runtime behavior impact beyond styling.
You can customize Macroscope's approvability policy. Learn more.

