fix(workspace): restore unified workspace persistence

This commit is contained in:
Kaede Akino committed 2026-10-17 15:19:17 +08:00
1 parent a04db5f867
commit 8c3db48815
16 files changed
+521 -311

No files matched your search

@@ -22,15 +22,7 @@ nonisolated struct WorkspaceActivityAttributes: ActivityAttributes {
var recovery: Recovery? = nil
var destinationURL: URL {
guard let recovery else { return WorkspaceActivityAttributes.destinationURL(for: id) }
var components = URLComponents(
url: WorkspaceActivityAttributes.destinationURL(for: id), resolvingAgainstBaseURL: false)!
components.queryItems = [
URLQueryItem(name: "v", value: "1"),
URLQueryItem(name: "host", value: recovery.hostID.uuidString),
URLQueryItem(name: "kind", value: recovery.kind),
]
return components.url!
WorkspaceActivityAttributes.destinationURL(for: id)
}
}