Repository navigation
Commit e4b07d4
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
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
3 | 10 | | |
4 | 11 | | |
5 | 12 | | |
| |||
0 commit comments