The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(desktop): scope fullscreen paint workaround to native Wayland
Kevin Rajanaa58f3957648
diff --git a/apps/desktop/electron/main.ts b/apps/desktop/electron/main.tsindex c3951f5aad8..d97cfa4f52c 100644--- a/apps/desktop/electron/main.ts+++ b/apps/desktop/electron/main.ts@@ -313,7 +313,7 @@ import { applyHudElectronOverlay, promoteHudOverlay } from './hud-overlay'import { snapHudBounds } from './hud-snap'import { createHudSnapShortcut } from './hud-snap-shortcut'import { buildHudWindowUrl } from './hud-url'-import { resolveHudWindowing } from './hud-windowing'+import { linuxOzoneBackend, resolveHudWindowing } from './hud-windowing'import { INSTALL_STAMP, installShape } from './install-stamp'import type { InstallStamp } from './install-stamp'import { applyLaunchProfileOverride } from './launch-profile'@@ -17753,7 +17753,13 @@ function hasOtherChatWindows(window: BrowserWindow): boolean {// The same merged picture drives background throttling: chat windows run// unthrottled while any turn is in flight (streaming must paint while hidden)// and fall back to Chromium's default throttling at idle. See stream-throttle.ts.-const streamThrottle = createStreamThrottle()+const streamThrottle = createStreamThrottle(undefined, undefined, {+ // #94865 is specific to native Wayland fullscreen surfaces. Reuse the same+ // Ozone resolver as the rest of Desktop so XWayland/macOS/Windows retain the+ // normal idle throttling contract.+ keepFullscreenPainting:+ process.platform === 'linux' && linuxOzoneBackend(process.env, process.argv) === 'wayland'+})function updateStreamThrottleFromActiveWork() {streamThrottle.update(mergeActiveWork(activeWorkByWebContents.values()).count > 0)