Diagnostics: add Org ID, lastActiveOrg, and Time to copied text

This commit is contained in:
SuperDooper
2026-05-11 21:05:12 +02:00
parent c6d2ed8261
commit 4b42a631be
+5
View File
@@ -145,11 +145,16 @@ struct DiagnosticsView: View {
lines.append("=== ClaudeChecker Diagnostics ===") lines.append("=== ClaudeChecker Diagnostics ===")
lines.append("Version: \(Bundle.main.infoDictionary?["CFBundleShortVersionString"] as? String ?? "?") (\(Bundle.main.infoDictionary?["CFBundleVersion"] as? String ?? "?"))") lines.append("Version: \(Bundle.main.infoDictionary?["CFBundleShortVersionString"] as? String ?? "?") (\(Bundle.main.infoDictionary?["CFBundleVersion"] as? String ?? "?"))")
lines.append("Signed in: \(vm.isSignedIn ? "Yes" : "No")") lines.append("Signed in: \(vm.isSignedIn ? "Yes" : "No")")
lines.append("Org ID: \(UserDefaults.standard.string(forKey: \"claude_org_id\") ?? \"(none)\")")
lines.append("lastActiveOrg: \(vm.diagLastActiveOrg.isEmpty ? \"(not read)\" : vm.diagLastActiveOrg)")
lines.append("Error: \(vm.errorMessage ?? "(none)")") lines.append("Error: \(vm.errorMessage ?? "(none)")")
lines.append("") lines.append("")
lines.append("Last path: \(vm.diagLastPath)") lines.append("Last path: \(vm.diagLastPath)")
lines.append("Last status: \(vm.diagLastStatus)") lines.append("Last status: \(vm.diagLastStatus)")
lines.append("Last error: \(vm.diagLastError)") lines.append("Last error: \(vm.diagLastError)")
if let t = vm.diagLastFetch {
lines.append("Time: \(t.formatted(date: .omitted, time: .standard))")
}
lines.append("") lines.append("")
lines.append("") lines.append("")
lines.append("Live cookies:") lines.append("Live cookies:")