Skip to content

fix(desktop): avoid linux hidden titlebar freeze#48606

Open
tt-a1i wants to merge 1 commit into
NousResearch:mainfrom
tt-a1i:codex/linux-desktop-titlebar-freeze
Open

fix(desktop): avoid linux hidden titlebar freeze#48606
tt-a1i wants to merge 1 commit into
NousResearch:mainfrom
tt-a1i:codex/linux-desktop-titlebar-freeze

Conversation

@tt-a1i

@tt-a1i tt-a1i commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Use native system titlebars on Linux desktop windows instead of Electron titleBarStyle: hidden / titleBarOverlay.
  • Gate renderer -webkit-app-region:drag strips when Linux uses native titlebars, covering the main shell, secondary chat windows, and route overlays.
  • Add pure Electron-free coverage for the desktop window chrome policy across Linux, macOS, and Windows.

Fixes #48515.

Validation

  • cd apps/desktop && node --test electron/window-chrome.test.cjs
  • npm run typecheck --workspace apps/desktop
  • cd apps/desktop && npx eslint electron/main.cjs electron/window-chrome.cjs electron/window-chrome.test.cjs src/app/shell/app-shell.tsx src/app/shell/titlebar.ts src/store/updates.test.ts src/components/assistant-ui/thread-list.tsx src/app/overlays/overlay-view.tsx
  • cd apps/desktop && npx prettier --check electron/window-chrome.cjs electron/window-chrome.test.cjs src/app/shell/app-shell.tsx src/app/shell/titlebar.ts src/app/overlays/overlay-view.tsx src/components/assistant-ui/thread-list.tsx src/global.d.ts src/store/updates.test.ts package.json
  • npm run test:ui --workspace apps/desktop -- src/app/shell/titlebar.test.ts src/store/updates.test.ts
  • git diff --check

Notes

  • npm run test:desktop:platforms --workspace apps/desktop still fails on an existing unrelated static-scan expectation in electron/windows-child-process.test.cjs: it looks for the literal substring execFileSync(pyExe, while current main.cjs has that call split over multiple lines on origin/main.
  • I could not run a live Ubuntu 22.04 GNOME/X11 smoke test in this environment.

@tt-a1i tt-a1i requested a review from a team June 18, 2026 19:22
@alt-glitch alt-glitch added type/bug Something isn't working comp/tui Terminal UI (ui-tui/ + tui_gateway/) P3 Low — cosmetic, nice to have labels Jun 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/tui Terminal UI (ui-tui/ + tui_gateway/) P3 Low — cosmetic, nice to have type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Hermes Desktop freezes Linux desktop after selecting an item from the title bar context menu

2 participants