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
fix: deep link cold launch missing toolbar and duplicate windows (#467)
## Summary
- **Connect before opening window** for deep link handlers so the session is already in `activeSessions` when `ContentView.init` runs — avoids SwiftUI toolbar drop bug on NavigationSplitView detail transition
- **3-layer duplicate prevention** for deep link URLs: by session ID, by connection params (`findSessionByParams`), and by normalized param key (`connectingURLParamKeys`) — catches transient UUIDs, auto-reconnect races, and rapid duplicate opens
- **File path dedup** (`connectingFilePaths`) for SQLite/DuckDB/generic file handlers
- **Balanced `endFileOpenSuppression`** at batch level in both warm-launch and cold-launch paths — fixes permanently stuck `isHandlingFileOpen` flag
- **Orphan window handling**: hide SwiftUI state-restored windows via `orderOut(nil)` instead of `close()` to break infinite close→restore loop
- **`pendingConnectionId` set at all call sites** (welcome window, connection form, dock menu, auto-reconnect, connection switcher) — ensures only true SwiftUI restorations have `pendingId == nil`
- **Window title update** on first session connect for cold-launch deep links
- **`isRestorable = false`** on main windows to reduce restoration attempts
0 commit comments