From 9e7700e8a3da8d06ca687e803e3ec9e50e7188f7 Mon Sep 17 00:00:00 2001 From: Brooklyn Nicholson Date: Mon, 10 Aug 2026 16:19:50 -0500 Subject: [PATCH] fix(desktop): title HUD windows Hermes HUD The floating HUD inherited the default Hermes title from index.html. Set it explicitly in main and the renderer so the OS window label matches the mode. --- apps/desktop/electron/main.ts | 2 ++ apps/desktop/src/main.tsx | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/apps/desktop/electron/main.ts b/apps/desktop/electron/main.ts index a1d6073f0c..643766c737 100644 --- a/apps/desktop/electron/main.ts +++ b/apps/desktop/electron/main.ts @@ -676,6 +676,7 @@ const BOOT_FAKE_STEP_MS = (() => { })() const APP_NAME = process.env.HERMES_DESKTOP_APP_NAME || 'Hermes' +const HUD_WINDOW_TITLE = `${APP_NAME} HUD` const TITLEBAR_HEIGHT = 34 const MACOS_TRAFFIC_LIGHTS_HEIGHT = 14 @@ -9377,6 +9378,7 @@ function spawnHudWindow(sessionId, profile) { ...hudBounds(), minWidth: 380, minHeight: 160, + title: HUD_WINDOW_TITLE, frame: false, transparent: true, // NOT resizable. A transparent frameless window on Windows keeps a diff --git a/apps/desktop/src/main.tsx b/apps/desktop/src/main.tsx index 7356ca59d4..b2ef156a43 100644 --- a/apps/desktop/src/main.tsx +++ b/apps/desktop/src/main.tsx @@ -39,6 +39,10 @@ if (import.meta.env.MODE !== 'production' || import.meta.env.VITE_PERF_PROBE === const winParam = new URLSearchParams(window.location.search).get('win') +if (winParam === 'hud') { + document.title = 'Hermes HUD' +} + if (winParam === 'overlay') { void import('./app/pet-overlay/overlay-root').then(({ mountPetOverlay }) => mountPetOverlay()) } else if (winParam === 'quick') {