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.
This commit is contained in:
Brooklyn Nicholson
2026-08-10 16:19:50 -05:00
parent 920beecfa8
commit 9e7700e8a3
2 changed files with 6 additions and 0 deletions

View File

@@ -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

View File

@@ -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') {