Skip to content

The agent that grows with you

fix(desktop): distinguish HUD helper failures and explain tray closing

brooklyn!7ff69689d013
diff --git a/apps/desktop/electron/hud-modifier-monitor.test.ts b/apps/desktop/electron/hud-modifier-monitor.test.ts
index 64512559c47..c0f6f57af47 100644
--- a/apps/desktop/electron/hud-modifier-monitor.test.ts
+++ b/apps/desktop/electron/hud-modifier-monitor.test.ts
@@ -72,3 +72,19 @@ test('support policy excludes Wayland even when Xwayland supplies DISPLAY', () =
assert.ok(path.includes('app.asar.unpacked'))
assert.ok(path.endsWith(process.platform === 'win32' ? 'hud-modifier-monitor.exe' : 'hud-modifier-monitor'))
})
+
+test('a missing helper is distinguished from a helper that cannot start', () => {
+ for (const code of ['ENOENT', 'EACCES']) {
+ const child = new Child()
+ const statuses: NativeGestureStatus[] = []
+ const monitor = new NativeGestureMonitor({ path: '/helper', parseGesture: () => null, spawn: () => child })
+ monitor.start(() => {}, status => statuses.push(status))
+ child.emit('error', Object.assign(new Error('spawn failed'), { code }))
+ child.emit('close', -1, null)
+ assert.deepEqual(statuses.at(-1), {
+ type: 'error',
+ code: 'unavailable',
+ ...(code === 'ENOENT' ? { reason: 'missing-helper' } : {})
+ })
+ }
+})
diff --git a/apps/desktop/electron/hud-modifier-monitor.ts b/apps/desktop/electron/hud-modifier-monitor.ts
index f8aa97f250e..62248f022a2 100644
--- a/apps/desktop/electron/hud-modifier-monitor.ts
+++ b/apps/desktop/electron/hud-modifier-monitor.ts
@@ -42,7 +42,7 @@ export class HudModifierMonitor {
this.stop()
if (!hudModifierMonitorSupported()) {
- onStatus({ type: 'error', code: 'unavailable' })
+ onStatus({ type: 'error', code: 'unavailable', reason: 'unsupported-session' })
return
}
diff --git a/apps/desktop/electron/hud-modifier-types.ts b/apps/desktop/electron/hud-modifier-types.ts
index 4d278fabdff..356bc51a195 100644
--- a/apps/desktop/electron/hud-modifier-types.ts
+++ b/apps/desktop/electron/hud-modifier-types.ts
@@ -1,6 +1,7 @@
export interface HudModifierStatus {
enabled: boolean
state: 'disabled' | 'starting' | 'ready' | 'input-permission' | 'unavailable'
+ reason?: 'missing-helper' | 'unsupported-session'
}
export interface HudModifierApi {
diff --git a/apps/desktop/electron/hud-modifier.test.ts b/apps/desktop/electron/hud-modifier.test.ts
index 61acd5a1015..6ae10093d73 100644
--- a/apps/desktop/electron/hud-modifier.test.ts
+++ b/apps/desktop/electron/hud-modifier.test.ts
@@ -96,6 +96,10 @@ it('persists opt-in, fences stale native callbacks and re-arms after lock withou
install()
expect(native.start.mock.calls.at(-1)![2]).toBe(false)
const [restartTap, restartStatus] = native.start.mock.calls.at(-1)!
+ for (const reason of ['missing-helper', 'unsupported-session']) {
+ restartStatus({ type: 'error', code: 'unavailable', reason })
+ expect(await call('settings:get')).toEqual({ enabled: true, state: 'unavailable', reason })
+ }
restartStatus({ type: 'ready' })
expect(await call('settings:get')).toEqual({ enabled: true, state: 'ready' })
app.emit('will-quit')
diff --git a/apps/desktop/electron/hud-modifier.ts b/apps/desktop/electron/hud-modifier.ts
index 71c05759a59..73cd0023e30 100644
--- a/apps/desktop/electron/hud-modifier.ts
+++ b/apps/desktop/electron/hud-modifier.ts
@@ -20,6 +20,7 @@ export function installHudModifierTap({
const monitor = new HudModifierMonitor({ appPath: app.getAppPath() })
let enabled = false
let state: HudModifierStatus['state'] = 'disabled'
+ let reason: HudModifierStatus['reason']
let disposed = false
let generation = 0
@@ -29,7 +30,7 @@ export function installHudModifierTap({
// An absent or unreadable preference never grants input monitoring.
}
- const status = (): HudModifierStatus => ({ enabled, state })
+ const status = (): HudModifierStatus => ({ enabled, state, ...(reason ? { reason } : {}) })
const publish = () => {
for (const win of BrowserWindow.getAllWindows()) {
@@ -43,11 +44,13 @@ export function installHudModifierTap({
generation += 1
monitor.stop()
state = 'disabled'
+ reason = undefined
}
const start = (requestPermission = false) => {
const current = ++generation
state = 'starting'
+ reason = undefined
monitor.start(
() => {
if (!disposed && enabled && state === 'ready' && current === generation) {
@@ -59,6 +62,7 @@ export function installHudModifierTap({
return
}
+ reason = result.type === 'error' ? result.reason : undefined
state =
result.type === 'error'
? result.code === 'permission-required'
diff --git a/apps/desktop/electron/native-gesture-monitor.ts b/apps/desktop/electron/native-gesture-monitor.ts
index d9d1a68a09f..cf4d962a5c8 100644
--- a/apps/desktop/electron/native-gesture-monitor.ts
+++ b/apps/desktop/electron/native-gesture-monitor.ts
@@ -3,7 +3,18 @@ import type { EventEmitter } from 'node:events'
import type { Readable, Writable } from 'node:stream'
export type NativeGestureStatus =
- { type: 'starting' | 'ready' | 'stopped' } | { type: 'error'; code: 'permission-required' | 'unavailable' }
+ | { type: 'starting' | 'ready' | 'stopped' }
+ | { type: 'error'; code: 'permission-required' | 'unavailable'; reason?: 'missing-helper' | 'unsupported-session' }
+
+function spawnFailure(error: unknown): NativeGestureStatus {
+ return {
+ type: 'error',
+ code: 'unavailable',
+ ...(error && typeof error === 'object' && 'code' in error && error.code === 'ENOENT'
+ ? { reason: 'missing-helper' as const }
+ : {})
+ }
+}
interface MonitorChild extends EventEmitter {
stdin: Writable | null
@@ -43,8 +54,8 @@ export class NativeGestureMonitor<T> {
detached: false,
windowsHide: true
})
- } catch {
- onStatus({ type: 'error', code: 'unavailable' })
+ } catch (error) {
+ onStatus(spawnFailure(error))
return
}
@@ -81,6 +92,7 @@ export class NativeGestureMonitor<T> {
}
const fail = () => terminate({ type: 'error', code: 'unavailable' })
+ const onSpawnError = (error: Error) => terminate(spawnFailure(error))
const onData = (chunk: Buffer | string) => {
if (!active) {
@@ -154,7 +166,7 @@ export class NativeGestureMonitor<T> {
dispose()
clearTimeout(killTimer)
child.removeListener('close', onClose)
- child.removeListener('error', fail)
+ child.removeListener('error', onSpawnError)
child.stdin?.removeListener('error', fail)
child.stdout?.removeListener('error', fail)
@@ -169,7 +181,7 @@ export class NativeGestureMonitor<T> {
child.stdout?.on('error', fail)
child.stdin?.on('error', fail)
child.once('close', onClose)
- child.on('error', fail)
+ child.on('error', onSpawnError)
onStatus({ type: 'starting' })
if (!child.stdout || !child.stdin) {
diff --git a/apps/desktop/src/app/settings/hud-modifier-settings.test.tsx b/apps/desktop/src/app/settings/hud-modifier-settings.test.tsx
index 4de041a068e..ab6024429c5 100644
--- a/apps/desktop/src/app/settings/hud-modifier-settings.test.tsx
+++ b/apps/desktop/src/app/settings/hud-modifier-settings.test.tsx
@@ -76,7 +76,7 @@ it('requires explicit opt-in and native readiness, with permission recovery and
})
it('rereads after an unconfirmed write and keeps failed reads recoverable', async () => {
- const { api } = bridge()
+ const { api, emit } = bridge()
api.getSettings.mockRejectedValueOnce(new Error('IPC unavailable'))
render(<HudModifierSettings />)
expect(await screen.findByText(common.loadFailed)).toBeTruthy()
@@ -88,4 +88,14 @@ it('rereads after an unconfirmed write and keeps failed reads recoverable', asyn
await act(async () => fireEvent.click(screen.getByRole('button', { name: common.retry })))
expect(api.setEnabled).toHaveBeenCalledOnce()
expect(screen.getByText(copy.unavailable)).toBeTruthy()
+ for (const [reason, message] of [
+ ['missing-helper', copy.missingHelper],
+ ['unsupported-session', copy.unsupportedSession]
+ ] as const) {
+ await act(async () => emit({ enabled: true, state: 'unavailable', reason }))
+ expect(screen.getByText(message)).toBeTruthy()
+ expect(screen.queryByText(copy.unavailable)).toBeNull()
+ }
+ await act(async () => emit({ enabled: true, state: 'ready' }))
+ expect(screen.queryByRole('alert')).toBeNull()
})
diff --git a/apps/desktop/src/app/settings/hud-modifier-settings.tsx b/apps/desktop/src/app/settings/hud-modifier-settings.tsx
index d60c5bbca4b..da9659ecf6b 100644
--- a/apps/desktop/src/app/settings/hud-modifier-settings.tsx
+++ b/apps/desktop/src/app/settings/hud-modifier-settings.tsx
@@ -86,10 +86,13 @@ export function HudModifierSettings() {
}
}
+ const unavailableNotice = status?.reason
+ ? { 'missing-helper': copy.missingHelper, 'unsupported-session': copy.unsupportedSession }[status.reason]
+ : copy.unavailable
const notice =
error ??
(status?.enabled && status.state === 'input-permission' ? copy.permission : null) ??
- (status?.enabled && status.state === 'unavailable' ? copy.unavailable : null)
+ (status?.enabled && status.state === 'unavailable' ? unavailableNotice : null)
return (
<div id={hudModifierElementId()}>
diff --git a/apps/desktop/src/i18n/ar.ts b/apps/desktop/src/i18n/ar.ts
index 5b7b462c48e..55eace006d0 100644
--- a/apps/desktop/src/i18n/ar.ts
+++ b/apps/desktop/src/i18n/ar.ts
@@ -882,7 +882,7 @@ export const ar = defineLocale({
config: {
minimizeToTrayTitle: 'التصغير إلى علبة النظام',
minimizeToTrayDesc:
- 'إخفاء النوافذ المصغّرة في علبة النظام (شريط القوائم على macOS) مع استمرار Hermes في العمل. يظل سلوك الإغلاق وAlt+F4 وCmd+Q كما هو. معطّل افتراضيًا ويُطبّق على هذا الجهاز فقط.',
+ 'تصغير النوافذ أو إغلاق النافذة الرئيسية يخفيها في علبة النظام (شريط القوائم على macOS) مع استمرار Hermes في العمل. استخدم إنهاء Hermes من قائمة العلبة أو Cmd+Q للخروج. معطّل افتراضيًا ويُطبّق على هذا الجهاز فقط.',
minimizeToTrayUnavailable:
'علبة النظام غير متاحة. ستُصغّر النوافذ وتُغلق كالمعتاد. أوقف هذا الخيار ثم فعّله لإعادة المحاولة.',
none: 'لا شيء',
@@ -907,7 +907,11 @@ export const ar = defineLocale({
permission:
'اسمح لـ Hermes في إعدادات النظام ← الخصوصية والأمان ← مراقبة الإدخال، ثم أعد المحاولة. لا تسجّل هذه الإيماءة ضغطات المفاتيح ولا تلتقط الشاشة.',
unavailable:
- 'هذه الإيماءة غير متاحة هنا. يتطلب Linux جلسة X11؛ لا يتيح Wayland رصد ضغطات مفاتيح التعديل على مستوى النظام. يظل اختصار HUD الحالي يعمل داخل Hermes.'
+ 'تعذّر تشغيل مساعد إيماءة HUD أو توقف بشكل غير متوقع. أعد المحاولة أو أعد تشغيل Hermes. يظل اختصار HUD الحالي يعمل داخل Hermes.',
+ missingHelper:
+ 'مساعد إيماءة HUD غير موجود في تثبيت Hermes هذا. حدّث Hermes أو أعد تثبيته، ثم أعد المحاولة.',
+ unsupportedSession:
+ 'جلسة سطح المكتب هذه لا تدعم ضغطات مفاتيح التعديل على مستوى النظام. يتطلب Linux جلسة X11؛ Wayland غير مدعوم.'
},
screenshot: {
enabledTitle: 'اختصار لقطة الشاشة',
diff --git a/apps/desktop/src/i18n/en.ts b/apps/desktop/src/i18n/en.ts
index a6652173a4f..529436e54a4 100644
--- a/apps/desktop/src/i18n/en.ts
+++ b/apps/desktop/src/i18n/en.ts
@@ -999,7 +999,7 @@ export const en: Translations = {
config: {
minimizeToTrayTitle: 'Minimize to tray',
minimizeToTrayDesc:
- 'Hide minimized windows in the system tray (menu bar on macOS) while Hermes keeps running. Close, Alt+F4, and Cmd+Q keep their normal behavior. Off by default; applies only to this device.',
+ 'Minimize windows or close the main window to hide them in the system tray (menu bar on macOS) and keep Hermes running. Use Quit Hermes from the tray menu or Cmd+Q to exit. Off by default; applies only to this device.',
minimizeToTrayUnavailable:
'The system tray is unavailable. Windows will minimize and close normally. Turn this off and on to retry.',
none: 'None',
@@ -1037,7 +1037,10 @@ export const en: Translations = {
permission:
'Allow Hermes in System Settings → Privacy & Security → Input Monitoring, then retry. This gesture does not record keystrokes or capture your screen.',
unavailable:
- 'This gesture is unavailable here. Linux requires an X11 session; Wayland does not expose global modifier taps. The existing HUD shortcut still works inside Hermes.'
+ 'The HUD gesture helper could not start or stopped unexpectedly. Retry, or restart Hermes. The existing HUD shortcut still works inside Hermes.',
+ missingHelper: 'This Hermes installation is missing the HUD gesture helper. Update or reinstall Hermes, then retry.',
+ unsupportedSession:
+ 'This desktop session does not support global modifier taps. Linux requires X11; Wayland is not supported.'
},
screenshot: {
enabledTitle: 'Screenshot shortcut',
diff --git a/apps/desktop/src/i18n/ja.ts b/apps/desktop/src/i18n/ja.ts
index 7353bd4b640..8ef6f94ea34 100644
--- a/apps/desktop/src/i18n/ja.ts
+++ b/apps/desktop/src/i18n/ja.ts
@@ -963,7 +963,7 @@ export const ja = defineLocale({
config: {
minimizeToTrayTitle: 'トレイに最小化',
minimizeToTrayDesc:
- '最小化したウィンドウをシステムトレイ(macOS ではメニューバー)に隠し、Hermes を実行し続けます。閉じる、Alt+F4、Cmd+Q の動作は変わりません。初期設定はオフで、このデバイスにのみ適用されます。',
+ 'ウィンドウの最小化やメインウィンドウを閉じる操作でシステムトレイ(macOS ではメニューバー)に隠し、Hermes を実行し続けます。終了するにはトレイメニューの「Hermes を終了」または Cmd+Q を使います。初期設定はオフで、このデバイスにのみ適用されます。',
minimizeToTrayUnavailable:
'システムトレイを利用できないため、通常どおり最小化・終了します。再試行するには一度オフにしてからオンにしてください。',
none: 'なし',
@@ -991,7 +991,11 @@ export const ja = defineLocale({
permission:
'システム設定 → プライバシーとセキュリティ → 入力監視で Hermes を許可し、再試行してください。このジェスチャーはキー入力の記録や画面の撮影を行いません。',
unavailable:
- 'ここではこのジェスチャーを使用できません。Linux では X11 セッションが必要です。Wayland はグローバルな修飾キーのタップを公開しません。Hermes 内の既存の HUD ショートカットは引き続き使用できます。'
+ 'HUD ジェスチャーヘルパーを起動できなかったか、予期せず停止しました。再試行するか Hermes を再起動してください。Hermes 内の既存の HUD ショートカットは引き続き使用できます。',
+ missingHelper:
+ 'この Hermes には HUD ジェスチャーヘルパーが含まれていません。Hermes を更新または再インストールしてから再試行してください。',
+ unsupportedSession:
+ 'このデスクトップセッションはグローバルな修飾キータップに対応していません。Linux では X11 が必要です。Wayland には対応していません。'
},
screenshot: {
enabledTitle: 'スクリーンショットのショートカット',
diff --git a/apps/desktop/src/i18n/ru.ts b/apps/desktop/src/i18n/ru.ts
index 0eba92f4b9a..17da8e73841 100644
--- a/apps/desktop/src/i18n/ru.ts
+++ b/apps/desktop/src/i18n/ru.ts
@@ -1048,7 +1048,7 @@ export const ru = defineLocale({
config: {
minimizeToTrayTitle: 'Сворачивать в трей',
minimizeToTrayDesc:
- 'Скрывает свёрнутые окна в системном трее (строке меню macOS), пока Hermes продолжает работать. Закрытие, Alt+F4 и Cmd+Q работают как обычно. По умолчанию выключено; действует только на этом устройстве.',
+ 'Сворачивание окон или закрытие главного окна скрывает их в системном трее (строке меню macOS), оставляя Hermes работать. Для выхода выберите «Выйти из Hermes» в меню трея или нажмите Cmd+Q. По умолчанию выключено; действует только на этом устройстве.',
minimizeToTrayUnavailable:
'Системный трей недоступен. Окна будут сворачиваться и закрываться как обычно. Выключите и снова включите настройку, чтобы повторить попытку.',
none: 'Нет',
@@ -1087,7 +1087,11 @@ export const ru = defineLocale({
permission:
'Разрешите Hermes в Системных настройках → Конфиденциальность и безопасность → Мониторинг ввода, затем повторите попытку. Жест не записывает нажатия клавиш и не снимает экран.',
unavailable:
- 'Жест здесь недоступен. В Linux требуется сеанс X11: Wayland не предоставляет глобальные события нажатия модификаторов. Существующее сочетание HUD по-прежнему работает внутри Hermes.'
+ 'Вспомогательная программа жеста HUD не запустилась или неожиданно остановилась. Повторите попытку или перезапустите Hermes. Обычное сочетание HUD по-прежнему работает внутри Hermes.',
+ missingHelper:
+ 'В этой установке Hermes отсутствует вспомогательная программа жеста HUD. Обновите или переустановите Hermes и повторите попытку.',
+ unsupportedSession:
+ 'Этот сеанс рабочего стола не поддерживает глобальные нажатия модификаторов. В Linux требуется X11; Wayland не поддерживается.'
},
screenshot: {
enabledTitle: 'Сочетание клавиш для снимка окна',
diff --git a/apps/desktop/src/i18n/types.ts b/apps/desktop/src/i18n/types.ts
index 5e9d9249ec1..0966d8a1f6f 100644
--- a/apps/desktop/src/i18n/types.ts
+++ b/apps/desktop/src/i18n/types.ts
@@ -849,6 +849,8 @@ export interface Translations {
description: string
permission: string
unavailable: string
+ missingHelper: string
+ unsupportedSession: string
}
screenshot: {
enabledTitle: string
diff --git a/apps/desktop/src/i18n/zh-hant.ts b/apps/desktop/src/i18n/zh-hant.ts
index 63e0f1b3508..63bc7cb4a62 100644
--- a/apps/desktop/src/i18n/zh-hant.ts
+++ b/apps/desktop/src/i18n/zh-hant.ts
@@ -1001,7 +1001,7 @@ export const zhHant = defineLocale({
config: {
minimizeToTrayTitle: '最小化至系統匣',
minimizeToTrayDesc:
- '將最小化的視窗隱藏至系統匣(macOS 上為選單列),讓 Hermes 繼續執行。關閉視窗、Alt+F4 和 Cmd+Q 的行為不變。預設關閉,僅適用於此裝置。',
+ '最小化視窗或關閉主視窗時,將其隱藏至系統匣(macOS 上為選單列),讓 Hermes 繼續執行。透過系統匣選單中的「結束 Hermes」或 Cmd+Q 結束。預設關閉,僅適用於此裝置。',
minimizeToTrayUnavailable: '系統匣無法使用。視窗將正常最小化和關閉。關閉此選項後重新開啟即可重試。',
none: '無',
noneParen: '(無)',
@@ -1028,7 +1028,9 @@ export const zhHant = defineLocale({
'在 Mac 上按下並放開 ⌘ + Option,在 Windows/Linux 上按下並放開 Ctrl + Alt,即可從任何應用程式將 HUD 帶到前景。預設關閉,僅適用於此裝置。',
permission: '請在系統設定 → 隱私權與安全性 → 輸入監控中允許 Hermes,然後重試。此手勢不會記錄按鍵或擷取畫面。',
unavailable:
- '此處無法使用這個手勢。Linux 需要 X11 工作階段;Wayland 不提供全域修飾鍵輕按事件。Hermes 內原有的 HUD 快速鍵仍可使用。'
+ 'HUD 手勢輔助程式無法啟動或意外停止。請重試或重新啟動 Hermes。Hermes 內原有的 HUD 快速鍵仍可使用。',
+ missingHelper: '此 Hermes 安裝缺少 HUD 手勢輔助程式。請更新或重新安裝 Hermes,然後重試。',
+ unsupportedSession: '此桌面工作階段不支援全域修飾鍵輕按事件。Linux 需要 X11;不支援 Wayland。'
},
screenshot: {
enabledTitle: '螢幕截圖快速鍵',
diff --git a/apps/desktop/src/i18n/zh.ts b/apps/desktop/src/i18n/zh.ts
index 06c26deca15..45974d59ca7 100644
--- a/apps/desktop/src/i18n/zh.ts
+++ b/apps/desktop/src/i18n/zh.ts
@@ -1211,7 +1211,7 @@ export const zh = defineLocale({
config: {
minimizeToTrayTitle: '最小化到托盘',
minimizeToTrayDesc:
- '将最小化的窗口隐藏到系统托盘(macOS 上为菜单栏),Hermes 继续运行。关闭窗口、Alt+F4 和 Cmd+Q 的行为不变。默认关闭,仅适用于此设备。',
+ '最小化窗口或关闭主窗口时,将其隐藏到系统托盘(macOS 上为菜单栏),让 Hermes 继续运行。通过托盘菜单中的“退出 Hermes”或 Cmd+Q 退出。默认关闭,仅适用于此设备。',
minimizeToTrayUnavailable: '系统托盘不可用。窗口将正常最小化和关闭。关闭此选项后重新开启即可重试。',
none: '无',
noneParen: '(无)',
@@ -1247,7 +1247,9 @@ export const zh = defineLocale({
'在 Mac 上按下并松开 ⌘ + Option,在 Windows/Linux 上按下并松开 Ctrl + Alt,即可从任意应用将 HUD 置于前台。默认关闭,仅适用于此设备。',
permission: '请在系统设置 → 隐私与安全性 → 输入监控中允许 Hermes,然后重试。此手势不会记录按键或截取屏幕。',
unavailable:
- '此处无法使用该手势。Linux 需要 X11 会话;Wayland 不提供全局修饰键轻按事件。Hermes 内原有的 HUD 快捷键仍可使用。'
+ 'HUD 手势辅助程序无法启动或意外停止。请重试或重启 Hermes。Hermes 内原有的 HUD 快捷键仍可使用。',
+ missingHelper: '此 Hermes 安装缺少 HUD 手势辅助程序。请更新或重新安装 Hermes,然后重试。',
+ unsupportedSession: '此桌面会话不支持全局修饰键轻按事件。Linux 需要 X11;不支持 Wayland。'
},
screenshot: {
enabledTitle: '截图快捷键',
diff --git a/website/docs/user-guide/desktop.md b/website/docs/user-guide/desktop.md
index 4e746a99560..8be2627e1a8 100644
--- a/website/docs/user-guide/desktop.md
+++ b/website/docs/user-guide/desktop.md
@@ -132,7 +132,7 @@ The app is built for working on several things at once:
Enable **Settings → Appearance → Window layout → Minimize to tray** to hide minimized windows from the taskbar or Dock while their sessions keep running. The setting is off by default and applies only to this device.
-Use **Show Hermes** in the system tray (the menu bar on macOS) to restore the windows. **Quit Hermes** still uses the normal active-work confirmation. Closing a window, **Alt+F4**, and **Cmd+Q** keep their existing behavior; this setting does not turn Close into hide-to-tray.
+With the setting enabled and a tray available, closing the main window with **X** or **Alt+F4** hides it without stopping Hermes or destroying its session. Closing secondary windows still closes those windows. Use **Show Hermes** in the system tray (the menu bar on macOS) to restore hidden windows. **Quit Hermes** from the tray menu and **Cmd+Q** still quit, including the normal active-work confirmation. If the tray is unavailable, closing the main window behaves normally.
On macOS, the Dock icon hides only when no ordinary Hermes window remains visible. On Linux, a registered StatusNotifier tray host is required; desktops without one keep normal minimize behavior. If the host disappears, hidden windows are restored.
@@ -705,7 +705,7 @@ npm run pack # unpacked app under release/ (no installer)
macOS/Windows signing and notarization run automatically when the relevant credentials are present in the environment (`CSC_LINK` / `CSC_KEY_PASSWORD` / `APPLE_*` for macOS, `WIN_CSC_*` for Windows).
-The optional HUD modifier-tap helper is built with the Electron bundle and packaged outside ASAR. macOS uses the existing Xcode command-line tools prerequisite. Linux builds need a C compiler and X11/XInput development headers (`libx11-dev` and `libxi-dev` on Debian/Ubuntu); Windows builds need Clang and the Windows SDK. Build on the target OS and architecture. If those optional Windows/Linux prerequisites are absent, packaging continues without modifier-tap support and Settings reports it unavailable. Installed users do not need a compiler.
+The opt-in HUD modifier-tap helper is built with the Electron bundle and packaged outside ASAR. macOS uses the existing Xcode command-line tools prerequisite. Windows builds use the C# compiler included with the operating system's .NET Framework; no Clang or developer SDK is required. Windows packaging fails rather than silently omitting the helper. Linux builds need a C compiler and X11/XInput development headers (`libx11-dev` and `libxi-dev` on Debian/Ubuntu); without those optional Linux prerequisites, packaging continues without modifier-tap support. Build on the target OS; Linux also requires the target architecture. Installed users do not need a developer toolchain. Settings distinguishes a missing helper from startup failure and an unsupported desktop session; the X11/Wayland warning is not shown for a missing or failed Windows helper.
### macOS permissions and local rebuilds (TCC)