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 cb89afa
Browse filesBrowse the repository at this point in the historyBrowse files
* Tabs & sessions release (v0.4.0): restore windows/tabs, profile dot, drag-reorder, mac drag fix
Restore the user's workspace across restart and in-app updates, plus three
tab-management improvements. All cross-platform (macOS native tabs +
Windows/Linux strip).
#18 — Session restore. Persist each window's tabs (order, active, URL, and
active profile) and replay them on the first successful connect of a launch
instead of opening one bare tab.
* New session.rs: Session/SessionWindow/SessionTab model in prefs.json under
"session"; capture (deduped + empty-guarded, off-main with a main-thread
read), and maybe_restore (first-connect-only, mode+target gated).
* Win/Linux: strip::session_windows / restore_window; add_tab refactored into
add_tab + add_tab_with so restore reuses the seed→navigate path.
* macOS: native tab groups are the source of truth — macos::session_windows
queries NSWindowTabGroup (objc2); windows::restore_macos_window rebuilds
each group via the freeze-safe add_tabbed_window (invariant #12). Restored
tabs are incognito + re-seeded with their saved profile selector.
* URL reads are panic-guarded (session::capture_url) — wry's url() unwraps a
nil WKWebView.URL on a not-yet-navigated webview; capture can race one.
* Autosave: persist on structural changes + a 4s tick (frames / SPA routes).
#8 — Per-tab profile dot (strip). TabEntry gains `profile` (the hermes_profile
cookie value), captured after each load; shell.html renders a color-keyed dot
(default profile = no dot) with the profile name in the tooltip.
#19 — Drag-to-reorder strip tabs. strip::reorder_tab + tab_reorder command;
shell.html drag handlers; active tab follows its label across the move.
#22 — macOS single-tab window drag. Use WebKit-native -webkit-app-region:drag
on .app-titlebar (interactive children no-drag) instead of Tauri's JS drag
region, which no-ops in remote-origin webviews — so dragging works with one tab
and no native tab bar.
#5 (app-icon corner fringe) deferred — the artwork has a light border baked in;
a clean fix needs the source logo, not pixel surgery. Noted in CHANGELOG.
Verified on macOS: native-tab + strip restore both replay correctly, Cmd+T
heartbeats 8/8 with no freeze, no panic. cargo test (12) + clippy + Windows
cargo-xwin check all green.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* Review fixes: prevent macOS url()-on-nil SIGABRT in session capture; restore zero-window guard; cargo fmt
Addresses the deep-review on PR #24.
Blocking fix — macOS SIGABRT when the 4s autosave races a just-opened tab:
wry's macOS url() unwraps a nil WKWebView.URL on a not-yet-navigated webview
and panics; that panic poisons a tauri-runtime-wry mutex held mid-dispatch, so
the deferred navigate() then aborts the process. session::capture_url's
catch_unwind caught the unwind but can't undo the lock poisoning — guarding at
the wrong layer. Real fix: only read a webview's live URL once it has committed
a real navigation. New AppState.navigated set, marked in each on_page_load
(after the about: guard) and gated in both session_windows paths; capture_url
stays as a backstop. Cleaned up on tab/window close.
Secondary: maybe_restore now returns false if restore built zero windows, so
conn falls through to opening one bare window (a total restore failure can't
leave the app window-less — which on Win/Linux could trip quit-on-last-close).
Also: cargo fmt (the failing CI `test` check was fmt --check on the seed match
arm).
Re-verified on macOS with a slow fake server to widen the pre-navigation window:
Cmd+T + repeated 4s autosave ticks → 8/8 heartbeats, no panic, no SIGABRT, no
new crash report; native 2-tab group captures + restores as 1 window / 2 tabs
(not a 2×1 split). fmt/clippy(-D warnings)/test(12) 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>
0 commit comments