Skip to content

Commit 4322271

Browse files
nesquenaclaude
andauthored
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>
1 parent c309249 commit 4322271

13 files changed

Lines changed: 276 additions & 130 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,40 @@
11
# Changelog
22

3+
## [v0.6.0] — 2026-06-18
4+
5+
A bug-squash release: a Windows hang blocker, plus restore/notification/profile-dot fixes.
6+
7+
### Fixed
8+
9+
- **Windows: clicking the "⋯" overflow menu no longer hangs the app** (issue #33).
10+
The menu was popped synchronously inside the IPC command; on Windows that
11+
modal `TrackPopupMenu` loop wedged the WebView2 message pump (AppHangB1) — the
12+
menu stuck, the window got stuck always-on-top, and Preferences/Quit stopped
13+
working, forcing a kill from Task Manager. The popup now runs on the main
14+
event loop so its modal loop pumps normally and the command returns at once.
15+
- **Reopened tabs come back on the session they were on, not a blank page**
16+
(issue #30). Restore replayed the root URL, so each tab returned fresh
17+
(session, title, and profile dot all gone). The page now reports its live URL
18+
— including in-app (SPA) navigation that `WebView2`/`WKWebView` don't expose
19+
through the wrapper — so restore reopens the exact deep-linked session.
20+
- **The per-tab profile dot updates right after you switch profile** (issue #31,
21+
follow-on to #26). The dot is now re-read the moment the page navigates (a
22+
profile/session switch), so it paints correctly on a freshly created tab
23+
without needing to open another tab, and no longer adopts a sibling tab's
24+
color after a session switch.
25+
26+
### Changed
27+
28+
- **Browser notifications now fire as native OS notifications** (issue #32).
29+
The embedded webview doesn't implement the Web Notifications API, so the
30+
WebUI's notifications (response complete, approval required, clarification
31+
needed) silently did nothing. The app now bridges `window.Notification` to
32+
native notifications, so they appear in Notification Center / the Windows
33+
action center / the Linux notification tray. Honors the app's notifications
34+
preference. (Replaces the old DOM-heuristic "response is ready" guess with the
35+
WebUI's real, specific notifications.)
36+
37+
338
## [v0.5.0] — 2026-06-17
439

540
A bug-squash release focused on things that worked worse than the web, plus tab

‎README.md‎

Lines changed: 19 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,13 @@
11
# Hermes WebUI Desktop
22

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.
74

85
<img width="1466" height="920" alt="image" src="https://github.com/user-attachments/assets/a7b81abc-f053-4e11-b2a4-ca3d4d8d72ea" />
96

10-
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.
1611

1712
## Install
1813

@@ -33,48 +28,27 @@ The app is a shell — it needs a running
3328
**1. Local server (same machine, including WSL2 on Windows)**
3429
Start hermes-webui (`./start.sh`), launch the app — it opens
3530
`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
38-
[mirrored networking](https://learn.microsoft.com/en-us/windows/wsl/networking#mirrored-mode-networking).
31+
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).
3932

4033
**2. Remote server over SSH (the headline feature)**
4134
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).
4736

4837
**3. Anything else that serves hermes-webui over http(s)**
4938
Tailscale IP, reverse proxy, custom port — set it as the Target URL in Direct mode.
5039

5140
## Features
5241

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.
6445
- **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.
6747
- **Find in page** — `Cmd/Ctrl+F`, `Enter`/`Shift+Enter`, `Esc`.
6848
- **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
75-
notified to grab the new package manually.
76-
- **Zoom** (`Cmd/Ctrl` `+`/`−`/`0`, persisted), window frame/fullscreen restore,
77-
single-instance.
49+
- **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.
51+
- **Zoom** (`Cmd/Ctrl` `+`/`−`/`0`, persisted), window frame/fullscreen restore, single-instance.
7852

7953
## Configuration
8054

@@ -99,17 +73,11 @@ Logs (attach to bug reports): `~/Library/Logs/ai.get-hermes.HermesWebUIDesktop/`
9973
## Troubleshooting
10074

10175
- **"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`.
10778
- **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).
11381

11482
## Build from source
11583

@@ -127,15 +95,7 @@ cd src-tauri && cargo test
12795

12896
## Architecture (one paragraph)
12997

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`).
13999

140100
## License
141101

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "hermes-webui-desktop",
3-
"version": "0.5.0",
3+
"version": "0.6.0",
44
"private": true,
55
"scripts": {
66
"tauri": "tauri"

‎src-tauri/Cargo.lock‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src-tauri/Cargo.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "hermes-webui-desktop"
3-
version = "0.5.0"
3+
version = "0.6.0"
44
description = "Hermes WebUI Desktop — cross-platform shell for hermes-webui"
55
edition = "2021"
66
license = "MIT"

0 commit comments

Comments
 (0)