Sessions Integration Feature

Nucleic-Session: FC94353F-9F0D-4BCC-AD7C-0FB14E38C2E5
Co-authored-by: Nucleic <[email protected]>
This commit is contained in:
2026-07-05 01:55:56 -07:00
co-authored by Nucleic
parent e60da7ccb1
commit 9a59f0cdff
@@ -1195,8 +1195,7 @@ extension DashboardSnapshot {
/// usage taken from the first Mac that reports it (a user's Macs share one account, so their
/// windows match — summing would double-count), and provider status feeds unioned by provider
/// (provider status is global, not per-Mac).
static func merged(_ snapshots: some Collection<DashboardSnapshot>) -> DashboardSnapshot {
let snaps = Array(snapshots)
static func merged(_ snaps: [DashboardSnapshot]) -> DashboardSnapshot {
guard snaps.count != 1 else { return snaps[0] }
guard !snaps.isEmpty else { return .empty }