Skip to content
Source
Sign inSign up
pingdotgg/t3code

[Bug]: Setting Glass opacity to 100% leaves backdrop-filter: blur(0px) saturate(...) active, still triggering macOS high-refresh flicker #40809

OpenKevinXC5(GitHub profile, opens in a new tab) opened this issue 1 comment

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Related to #25552 / #23788 / #20269. In #25552, a recent report noted that raising Glass opacity from 80% to 100% still did not stop high-refresh-rate flicker on macOS. Inspecting the bundled client CSS/JS reveals a concrete bug in how the 100% solid mode is implemented.

Area

apps/web

Steps to reproduce

  1. On macOS with a high-refresh display (>60 Hz, e.g. built-in ProMotion 120 Hz or external 4K 120 Hz), open T3 Code Desktop (0.1.12-nightly.20261122.5085).
  2. Go to Settings → Appearance and set Glass opacity to 100% (fully solid).
  3. Inspect the computed backdrop-filter on .surface-glass, .dialog-glass, .dropdown-glass, .alert-glass, the composer ([data-slot="composer-shell"]::before / [data-slot="composer-host"]::before), [data-thread-details-card], and .dialog-backdrop.
  4. Scroll a conversation thread (or scroll inside Settings).

Expected behavior

At Glass opacity = 100% (fully opaque), glass surfaces should have backdrop-filter: none so Chromium/Skia does not allocate offscreen backdrop-filter compositor passes. This should both eliminate the macOS high-refresh backdrop-filter flicker trigger and reduce GPU / WindowServer compositing cost.

Actual behavior

  1. When glassOpacity === 100, the client only sets --glass-opacity: 100% and --glass-blur: 0px:

    e.style.setProperty("--glass-opacity", `${r.glassOpacity}%`);
    r.glassOpacity === 100
      ? e.style.setProperty("--glass-blur", "0px")
      : e.style.removeProperty("--glass-blur");
  2. Because all glass utilities and composer/card classes combine both blur and saturate:

    • .dialog-glass, .alert-glass, .dropdown-glass, .surface-glass: backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation))
    • Composer / floating surfaces: backdrop-blur-(--glass-blur) backdrop-saturate-(--glass-saturation)

    the computed backdrop-filter at 100% remains blur(0px) saturate(var(--glass-saturation)) (not none). In Chromium/Skia, any non-none backdrop-filter still forces a full offscreen backdrop readback / compositor render pass on every frame, so macOS 120 Hz / ProMotion flicker and elevated GPU/WindowServer load persist even at 100% opacity.

  3. In addition, .dialog-backdrop hardcodes backdrop-filter: blur(4px) and does not respect glassOpacity === 100 at all (tracked separately in #25552 / #29325).

Impact

Minor bug or occasional failure

Version or commit

0.1.12-nightly.20261122.5085 (Electron 44.10.1)

Environment

  • Machine 1: MacBook Pro 14 (Apple M2 Pro, 16-core GPU), built-in Liquid Retina XDR display (3024×1964, ProMotion up to 120 Hz), macOS 27.3 (26C5047e)
  • Machine 2: Mac mini (Apple M2, 10-core GPU), external 4K 120 Hz display (HiDPI 4608×2592 / looks like 2304×1296 @ 120 Hz), macOS 27.3 (26C5047e)
  • App: T3 Code (Nightly) 0.1.12-nightly.20261122.5085, Electron 44.10.1

Suggested fix

When glassOpacity === 100, toggle a root attribute/class (e.g. data-glass="off" or --glass-disabled) that explicitly sets -webkit-backdrop-filter: none; backdrop-filter: none; on all glass utilities (.surface-glass, .dialog-glass, .dropdown-glass, .alert-glass, composer/floating glass surfaces, and optionally .dialog-backdrop), instead of only setting --glass-blur: 0px.

Workaround

Overriding backdrop-filter: none !important via a custom theme when --glass-blur: 0px is present on :root (plus disabling .dialog-backdrop blur) immediately eliminates both the compositor overhead and the macOS 120 Hz flicker on both machines:

:is(:root[style*="--glass-blur: 0px"], :root[style*="--glass-blur:0px"]) :is(
  [data-slot="composer-shell"]::before,
  [data-slot="composer-host"]::before,
  [data-chat-composer-main-surface="true"],
  [data-slot="composer-context-strip"],
  [data-scroll-to-end="true"],
  [data-thread-details-card],
  .dropdown-glass,
  .surface-glass,
  .dialog-glass,
  .alert-glass
) {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
  1. tanstack-source added labelsbug

  2. Reproduzco esto en macOS con un monitor externo de alta frecuencia. Traigo mi entorno y lo que he comprobado.

    Entorno

    • T3 Code Desktop 0.1.12-nightly.20261124.5178
    • macOS 27.2 (arm64)
    • Monitor externo a 144 Hz, ratón
    • La app de escritorio usa su servidor local, sin servidor remoto

    Qué pasa Al hacer scroll con el modal de búsqueda (Cmd+K) abierto, parpadea toda la app, no solo la lista.

    Glass opacity Lo tenía en 80% y probé también 100%. Con 100% el parpadeo sigue igual.

    Sobre el código En mi build, a Glass opacity 100%, apps/web/src/appInit.tsx:101-102 solo pone --glass-blur: 0px. Las reglas de apps/web/src/index.css (líneas 393, 409, 454 y 487) siguen aplicando backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation)). Por eso el filtro sigue activo con blur 0 en vez de ser none. Esto coincide con lo descrito en este issue y no lo he probado en la máquina, solo lo he leído en el código.

    Relacionados: #25552, #23788, #30759

    Redactado por Claude Sonnet 5.5, a través de la sesión de triage de T3 Code.

Sign in to join this conversation.