Skip to content

Commit e4b07d4

Browse files
nesquena-hermesnesquenaclaude
authored
feat: v1.6.0 — multi-window + native tabs (#42, #67)
feat: v1.6.0 — multi-window + native tabs (#42, #67) Adds support for multiple independent Hermes sessions via separate windows or native macOS tabs. Cmd+N opens a new standalone window; Cmd+T opens a new tab in the front-most window's tab group; the tab-bar "+" button routes to the tab path. Each window owns its own WKWebView so server-side sessions stay independent — chat history, scroll position, in-flight streams, cookies, and localStorage are preserved per window. AppKit's tab system fills in Show Tab Bar, Show All Tabs, Move Tab to New Window, and Merge All Windows automatically. Reconnect logic (SSH tunnel restore, NWPathMonitor recovery, manual retry) fans out across every open window — every WKWebView reloads in place, no session loss. Window frame autosave applies only to the first window of a session; subsequent windows cascade visibly from the front-most. Implementation: AppDelegate.browserWindow → browserWindows array; new keyBrowserWindow computed property routes menu actions to the front-most; tabbingMode=.preferred + tabbingIdentifier on every BrowserWindowController opts into AppKit's tab system; KVO on window.tabbedWindows + windowDidResize recompute webView frame so the tab bar doesn't clip the web app's title bar. Opus pre-commit advisor caught 4 correctness bugs before the first push (retain cycle in onNavigationFailed, windowShouldClose phantom-leaking closed tabs, windowDidExitFullScreen clobbering the saved fullscreen pref for other windows, alphaValue=0 fade-in flashing on tabs joining an existing group). Then a late in-PR follow-up split Cmd+N/Cmd+T (initial implementation always tabbed) and fixed the tab-bar clipping the web UI under .fullSizeContentView. Closes #42. Co-authored-by: Nathan Esquenazi <nesquena@gmail.com> Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 3437da5 commit e4b07d4

3 files changed

Lines changed: 388 additions & 65 deletions

File tree

‎CHANGELOG.md‎

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

3+
## [v1.6.0] — 2026-05-02
4+
5+
### Added
6+
- **Multi-window and native tabs (#42)** — open multiple independent Hermes sessions from the same app. `Cmd+N` opens a new window; `Cmd+T` does the same and lands as a tab when the user's "Prefer Tabs" system preference is set to Always (or In Full Screen). Each window owns its own `WKWebView` so server-side sessions stay independent — chat history, scroll position, in-flight streams, cookies, and localStorage are preserved per window. AppKit's native tabbing system fills in `Show Tab Bar`, `Show All Tabs`, `Move Tab to New Window`, and `Merge All Windows` automatically in the Window menu, plus the tab-bar plus button (wired through `newWindowForTab`). The frontmost browser window receives all menu actions (Find, Zoom, Reload); the global hotkey (default `Cmd+Shift+H`) and Dock-icon click both surface the most-recently-active window. Reconnect logic (SSH tunnel restore, network recovery via `NWPathMonitor`, manual retry) fans out across every open window — every WKWebView reloads in place, no session loss. Window frame autosave applies only to the first window of a session; subsequent windows cascade from the front-most window's frame so they're visibly stacked. Closes #42.
7+
8+
Engineering notes: Opus pre-commit advisor caught four real correctness bugs before this shipped — (1) `onNavigationFailed` retain cycle leaking the BrowserWindowController + WKWebView for every nav failure, (2) `windowShouldClose` returning `false` unconditionally caused closed tabs to phantom in `browserWindows` because `windowWillClose` doesn't fire on `orderOut`, (3) `windowDidExitFullScreen` clobbered `windowWasFullScreen` even when other windows remained fullscreen, (4) `alphaValue=0` fade-in created a visible flash on tabs joining an existing tab group. All four fixed inline before push.
9+
310
## [v1.5.4] — 2026-05-02
411

512
### Fixed

0 commit comments

Comments
 (0)