fix(web): dialogs no longer flash away while scrolling on macOS #29325
main fromrefs/pull/29325/head·opened View on GitHubNote
🤖 Written by Claude Opus 5.5 on behalf of Illia
Problem#
On macOS displays above 60 Hz, scrolling inside Settings can make the open dialog vanish for one frame. The dialog, its dim and floating cards disappear, and the main window shows through at full brightness. Addresses https://git.cafe/pingdotgg/t3code/issues/25552 and https://git.cafe/pingdotgg/t3code/issues/23788.
Change#
@utility dialog-backdrop {
background: color-mix(in srgb, var(--background) 60%, transparent);
- -webkit-backdrop-filter: blur(4px);
- backdrop-filter: blur(4px);
This removes the full-window blur behind dialogs. The dim is unchanged, and dialog popups and the composer keep their glass.
The underlying defect looks like a Chromium compositor bug, so this avoids the trigger rather than fixing it. The blur was the narrowest thing we could remove that stopped the flash while keeping the app's look. The utility covers Settings, the command palette, alert dialogs and the Clerk modal.
Scope and approval#
This is a one-line-sized fix for open bug reports https://git.cafe/pingdotgg/t3code/issues/25552 and https://git.cafe/pingdotgg/t3code/issues/23788. Neither issue has a triage label yet.
Verification#
The flash could only be reproduced by hand with a trackpad on an affected setup: T3 Code Nightly 0.1.6 (Electron 44.10.0, Chromium 152) on macOS with an external 120 Hz display. It showed about 2 flashes per 30 seconds. Scripted wheel scrolling never reproduced it, so these results come from manual runs and are not a measured rate.
| Glass removed via runtime override | Result |
|---|---|
| All glass | Flashes stopped |
Everything outside #root | Flashes stopped, but dialogs turn transparent |
Everything in #root, always | No flashes in about 30 s, too short to be conclusive |
Everything in #root, only while a dialog is open | Still flashes, with the rule confirmed applied |
| Only the dialog backdrop blur (this PR) | Flashes appeared to stop |
In a dev build, computed backdrop-filter is none on dialog-backdrop and command-dialog-backdrop, and the command palette popup still has blur(12px) saturate(1.14). vp run check:changed passed.
Not checked:
- The flash on a build of this branch. The manual runs applied the same change to the Nightly as a runtime override.
- Alert dialogs and the Clerk modal, which were not opened. They use the same utility.
- Other Chromium versions, including the Electron upgrade in https://git.cafe/pingdotgg/t3code/pulls/28123.
A workaround posted in https://git.cafe/pingdotgg/t3code/issues/25552, --disable-features=VSyncAlignedPresentationForScrolling, keeps the blur and reports 0 flashes in about 126 scrolls against 11 in 158. It wasn't tested here, and it depends on a Chromium flag that may be removed.
The captures are synthetic demo data. "Before" is the same dev build with the removed rule added back at runtime. They show the visual change, not the one-frame flash.
| Before | After |
|---|---|
![]() | ![]() |
![]() | ![]() |
Merge Danger#
Door: two-way. Reverting restores the blur.
Blast Radius: visual. Content behind every dialog is sharper and a little easier to read, on web and desktop. Mobile is React Native and isn't affected.
Written by Claude Opus 5.5 in T3 Code. Reviewed by GPT-6.1-Sol.
Fixes pingdotgg/t3code#25552 Fixes pingdotgg/t3code#30759



