You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 4322271
Browse filesBrowse the repository at this point in the historyBrowse files
Bug-squash (v0.6.0): Windows ⋯-menu hang #33, deep-session restore #30, profile dot #31, native notifications #32 (#34)
* Bug-squash (v0.6.0): Windows ⋯-menu hang #33, deep-session restore #30, profile dot #31, native notifications #32#33 (blocker) — Windows ⋯ overflow menu hangs the app (AppHangB1): strip_menu
popped the menu synchronously in the IPC command, so on Windows the modal
TrackPopupMenu loop wedged the WebView2 pump (stuck menu, stuck always-on-top,
Preferences/Quit dead). Now marshaled onto the main event loop via
run_on_main_thread — the one remaining main-thread-blocking IPC command.
#30 — shallow restore: reopened tabs came back blank (session/title/dot lost,
only count survived) because webview.url() doesn't reflect SPA pushState routing
(notably WebView2), so restore replayed the root. New route reporter
(bridge.rs) has the page EMIT its live location.href; AppState.tab_urls stores
it; capture prefers it over url(). Verified end-to-end on macOS: capture saved
/c/sess-abc?notif=true and restore re-requested it (server log), not root.
#31 — profile dot missing on create / wrong color after session switch
(follow-on to #26): re-read the tab's profile on every route report
(recapture_tab_profile), so the dot repaints immediately on a profile/session
switch instead of waiting for the 4s sweep or another tab — plus the existing
select_tab + periodic capture paths.
#32 — native notifications: the webview has no Web Notifications API, so the
WebUI's notifications silently no-op. Replaced the permission-denied stub with a
window.Notification shim that routes through the bridge to
tauri-plugin-notification (response complete / approval / clarify fire
natively); removed the old DOM-heuristic watcher (the shim is precise). Honors
the notifications pref.
Verified on macOS: builds, fmt, clippy -D warnings, cargo test (14), Windows
cargo-xwin check clean. #30 + #32 verified live; #33 is a clean Windows-specific
fix (field-verify on Windows); #31's recapture trigger fires on the proven route
signal.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* Review follow-up: also shim ServiceWorkerRegistration.showNotification (#32)
The deep-review (approve) flagged that the WebUI prefers
ServiceWorkerRegistration.showNotification when a SW is active and only falls
back to `new Notification` (the shim) if the SW path REJECTS — so an embedded
SW that resolves-but-displays-nothing would swallow notifications before they
reach the shim. Shim showNotification too, routing it through the same
EMIT('notify') → tauri-plugin-notification path (and resolving), so both the
direct-Notification and SW-first paths fire natively. This also closes the
NOTIFY_WATCHER-removal regression on any SW-swallow platform.
Plus a comment on strip_menu noting run_on_main_thread is safe for the popup
because the strip is Win/Linux-only (macOS native tabs; HERMES_FORCE_STRIP is
dev) — use dispatch_main_async if the strip ever ships on macOS.
fmt / clippy -D warnings / cargo test (14) green.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: README.md
+19-59Lines changed: 19 additions & 59 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,18 +1,13 @@
1
1
# Hermes WebUI Desktop
2
2
3
-
The cross-platform desktop app for [hermes-webui](https://github.com/nesquena/hermes-webui)
4
-
— run your Hermes agent's web UI as a real desktop app on **Windows, Linux, and macOS**,
5
-
with one-time SSH tunnel setup for remote servers, native tabs, theme-matched window
6
-
chrome, clipboard image paste, and background-response notifications.
3
+
The cross-platform desktop app for [hermes-webui](https://github.com/nesquena/hermes-webui) — run your Hermes agent's web UI as a real desktop app on **Windows, Linux, and macOS**, with one-time SSH tunnel setup for remote servers, native tabs, theme-matched window chrome, clipboard image paste, and background-response notifications.
Built with [Tauri 2](https://tauri.app) (system webview + Rust — ~11 MB, no bundled
11
-
browser). It is the cross-platform sibling of
12
-
[hermes-swift-mac](https://github.com/hermes-webui/hermes-swift-mac), rebuilt 1:1 from
13
-
its architecture (see [issue #555](https://github.com/nesquena/hermes-webui/issues/555)).
14
-
On macOS, hermes-swift-mac remains the flagship app; this build exists for Windows and
15
-
Linux users and for anyone who wants identical behavior across all three platforms.
7
+
Built with [Tauri 2](https://tauri.app) (system webview + Rust — ~11 MB, no bundled browser). It is the cross-platform sibling of
8
+
[hermes-swift-mac](https://github.com/hermes-webui/hermes-swift-mac), rebuilt 1:1 from its architecture (see [issue #555](https://github.com/nesquena/hermes-webui/issues/555)).
9
+
10
+
On macOS, hermes-swift-mac remains the flagship app; this build exists for Windows and Linux users and for anyone who wants identical behavior across all three platforms.
16
11
17
12
## Install
18
13
@@ -33,48 +28,27 @@ The app is a shell — it needs a running
33
28
**1. Local server (same machine, including WSL2 on Windows)**
34
29
Start hermes-webui (`./start.sh`), launch the app — it opens
35
30
`http://localhost:8787` by default. Nothing to configure. WSL2's localhost
36
-
forwarding works out of the box in most setups; if it doesn't, set the Target URL
37
-
(Preferences, `Cmd/Ctrl+,`) to the WSL IP (`hostname -I` inside WSL), or enable
forwarding works out of the box in most setups; if it doesn't, set the Target URL (Preferences, `Cmd/Ctrl+,`) to the WSL IP (`hostname -I` inside WSL), or enable [mirrored networking](https://learn.microsoft.com/en-us/windows/wsl/networking#mirrored-mode-networking).
39
32
40
33
**2. Remote server over SSH (the headline feature)**
41
34
Preferences → Mode: **SSH Tunnel** → enter username, host, and ports → Save &
42
-
Reconnect. The app maintains `ssh -N -L 8787:127.0.0.1:8787 user@host` for you, shows
43
-
live tunnel status in a footer, reconnects on demand, and verifies the forward with a
44
-
real HTTP round-trip. **Key-based SSH auth is required** (there's no terminal for
45
-
password prompts) — make sure `ssh user@host` works without typing a password first
46
-
(`ssh-add` your key; on Windows enable the `ssh-agent` service).
35
+
Reconnect. The app maintains `ssh -N -L 8787:127.0.0.1:8787 user@host` for you, shows live tunnel status in a footer, reconnects on demand, and verifies the forward with a real HTTP round-trip. **Key-based SSH auth is required** (there's no terminal for password prompts) — make sure `ssh user@host` works without typing a password first (`ssh-add` your key; on Windows enable the `ssh-agent` service).
47
36
48
37
**3. Anything else that serves hermes-webui over http(s)**
49
38
Tailscale IP, reverse proxy, custom port — set it as the Target URL in Direct mode.
50
39
51
40
## Features
52
41
53
-
-**Two connection modes** — Direct (with `/health` monitoring and a ●/○ health
54
-
indicator) and SSH Tunnel (status footer, reconnect button, actionable error
55
-
hints parsed from ssh itself).
56
-
-**Tabs & windows** — native macOS tab groups (`Cmd+T`, drag to reorder/detach);
57
-
a browser-style tab bar on Windows/Linux (`Ctrl+T`, `Ctrl+Tab` cycling,
58
-
middle-click close, + and ⋯ controls); multi-window everywhere (`Cmd/Ctrl+N`).
59
-
Tab titles follow your conversation names; every tab is a live session view, so
60
-
switching tabs never interrupts a streaming response.
61
-
-**Theme-matched chrome** — the window borders/titlebar/tab bar follow the web UI's
62
-
theme (all 11+ hermes-webui skins), with a cached color so every launch and new
63
-
tab paints correctly from the first frame. No white flashes.
42
+
-**Two connection modes** — Direct (with `/health` monitoring and a ●/○ health indicator) and SSH Tunnel (status footer, reconnect button, actionable error hints parsed from ssh itself).
43
+
-**Tabs & windows** — native macOS tab groups (`Cmd+T`, drag to reorder/detach); a browser-style tab bar on Windows/Linux (`Ctrl+T`, `Ctrl+Tab` cycling, middle-click close, + and ⋯ controls); multi-window everywhere (`Cmd/Ctrl+N`). Tab titles follow your conversation names; every tab is a live session view, so switching tabs never interrupts a streaming response.
44
+
-**Theme-matched chrome** — the window borders/titlebar/tab bar follow the web UI's theme (all 11+ hermes-webui skins), with a cached color so every launch and new tab paints correctly from the first frame. No white flashes.
64
45
-**Paste images** — `Cmd/Ctrl+V` a screenshot straight into the chat composer.
65
-
-**Background notifications** — get pinged when a long response finishes while
66
-
you're in another app.
46
+
-**Background notifications** — get pinged when a long response finishes while you're in another app.
67
47
-**Find in page** — `Cmd/Ctrl+F`, `Enter`/`Shift+Enter`, `Esc`.
68
48
-**Summon hotkey** — `Cmd/Ctrl+Shift+H` brings Hermes to front from anywhere.
69
-
-**Safe navigation** — only your Hermes origin loads inside the app; external links
70
-
open in your browser; `file://` is blocked.
71
-
-**Auto-update** — the app checks GitHub Releases shortly after launch and on
72
-
"Check for Updates…" (app menu on macOS, ⋯ menu on Windows/Linux), verifies the
73
-
download against a pinned signing key, installs, and relaunches. Covers the
74
-
Windows installer builds, the Linux AppImage, and macOS; `.deb` installs are
-**Safe navigation** — only your Hermes origin loads inside the app; external links open in your browser; `file://` is blocked.
50
+
-**Auto-update** — the app checks GitHub Releases shortly after launch and on "Check for Updates…" (app menu on macOS, ⋯ menu on Windows/Linux), verifies the download against a pinned signing key, installs, and relaunches. Covers the Windows installer builds, the Linux AppImage, and macOS; `.deb` installs are notified to grab the new package manually.
@@ -99,17 +73,11 @@ Logs (attach to bug reports): `~/Library/Logs/ai.get-hermes.HermesWebUIDesktop/`
99
73
## Troubleshooting
100
74
101
75
-**"Can't reach Hermes" on launch** — is hermes-webui running? `curl
102
-
http://localhost:8787/health` should answer. The app retries automatically every
103
-
5 s while the error screen is up.
104
-
-**SSH tunnel won't connect** — the error window shows the actual ssh failure
105
-
(auth, host key, DNS…). Test the exact same thing in a terminal first:
106
-
`ssh -N -L 8787:127.0.0.1:8787 user@host`, then `curl http://127.0.0.1:8787/health`.
76
+
http://localhost:8787/health` should answer. The app retries automatically every 5 s while the error screen is up.
77
+
-**SSH tunnel won't connect** — the error window shows the actual ssh failure (auth, host key, DNS…). Test the exact same thing in a terminal first: `ssh -N -L 8787:127.0.0.1:8787 user@host`, then `curl http://127.0.0.1:8787/health`.
107
78
-**WSL2: localhost doesn't reach the server** — see setup note 1 above.
108
-
-**Linux: blank/black window** — usually WebKitGTK + NVIDIA proprietary drivers;
109
-
launch with `WEBKIT_DISABLE_DMABUF_RENDERER=1 ./Hermes*.AppImage`.
110
-
-**Linux: global hotkey does nothing on Wayland** — Wayland doesn't allow global
111
-
key grabs; bind a compositor shortcut to launching the app instead (the
112
-
single-instance guard focuses the running window).
79
+
-**Linux: blank/black window** — usually WebKitGTK + NVIDIA proprietary drivers; launch with `WEBKIT_DISABLE_DMABUF_RENDERER=1 ./Hermes*.AppImage`.
80
+
-**Linux: global hotkey does nothing on Wayland** — Wayland doesn't allow global key grabs; bind a compositor shortcut to launching the app instead (the single-instance guard focuses the running window).
113
81
114
82
## Build from source
115
83
@@ -127,15 +95,7 @@ cd src-tauri && cargo test
127
95
128
96
## Architecture (one paragraph)
129
97
130
-
A small Rust core owns a connection state machine (splash → preflight/tunnel →
131
-
window | error), an ssh child process with HTTP-probe readiness checking and a 10 s
132
-
liveness monitor, and a JSON prefs store. The web UI loads in the system webview
133
-
with a set of injected scripts that bridge the two worlds: a theme reporter (drives
134
-
native chrome appearance), a response-settled detector (drives notifications), a
135
-
synthetic paste/drop injector (clipboard images), a find bar, and a navigation/title
136
-
pipeline. Remote page content is capability-restricted to event emission only — it
137
-
can never call into app commands. Releases are built by GitHub Actions on tags
138
-
(`scripts/release.sh`).
98
+
A small Rust core owns a connection state machine (splash → preflight/tunnel → window | error), an ssh child process with HTTP-probe readiness checking and a 10s liveness monitor, and a JSON prefs store. The web UI loads in the system webview with a set of injected scripts that bridge the two worlds: a theme reporter (drives native chrome appearance), a response-settled detector (drives notifications), a synthetic paste/drop injector (clipboard images), a find bar, and a navigation/title pipeline. Remote page content is capability-restricted to event emission only — it can never call into app commands. Releases are built by GitHub Actions on tags (`scripts/release.sh`).
0 commit comments