Skip to content

AetherScreens v2.7.0

Choose a tag to compare

@bcblr1993 bcblr1993 released this 07 Nov 23:36
· 1 commit to master since this release

AetherScreens v2.7.0 — Networking Lifecycle Hardening, Off-Main-Thread I/O & O(1) Library Tag Caching

Highlights

  • Networking Lifecycle & Pipe Safety (TailscaleClient / WakeOnLANService / BonjourDiscoveryService / HostPortReachabilityProber):
    • Redirected tailscale status --json stderr to FileHandle.nullDevice to prevent pipe buffer deadlocks and added strict path-segment percent-encoding in TailscaleClient.devicesEndpointURL().
    • Guarded WakeOnLANService.wakeDevice against port 0 (NWEndpoint.Port force-unwrap elimination) and added a thread-safe once-completion guard with a 3-second timeout and automatic NWConnection cancellation.
    • Implemented netService(_:didNotResolve:) in BonjourServiceResolver so timed-out mDNS services clean up their resolver key and retry on subsequent browse updates, and cancelled timeout DispatchWorkItems immediately in HostPortReachabilityProber.
  • O(1) Library Tag Cache & Single-Pass Batch Persistence (DeviceStore / DeviceListViewModel):
    • Added DeviceStore.batchUpdateDevices(_:) so reachability probes, SSH config imports, and bulk tag assignments/removals persist once instead of encoding JSON $N$ times.
    • Cached allTags, tagCounts, and filteredDevices in DeviceListViewModel with automatic invalidation on library/filter changes, eliminating $O(T \times D)$ allocations during SwiftUI view evaluations.
  • Off-Main-Thread Screenshot Encoding & Throttled RDP Transfer Progress (SessionViewModel):
    • Moved 4K/5K PNG screenshot encoding and disk writes off @MainActor via saveScreenshotInBackground(), reused a static DateFormatter, and throttled RDP file upload/download progress callbacks via RDPProgressGate.
  • Storage Resilience (ThumbnailStore / ConnectionHistoryStore / QuickSnippetStore / ComputerSyncService):
    • Added generation-tracked allowThumbnails(for:) so re-added/re-imported computers can store new desktop thumbnails while still blocking stale in-flight snapshots from deleted sessions, reconciled stale .active entries on ConnectionHistoryStore.load(), and bounded QuickSnippetStore title/content sizes.