fix: raise voice wake forward timeout to 30s

This commit is contained in:
Peter Steinberger
2025-12-07 05:46:05 +01:00
parent b20507ef0a
commit 17aeec59a3
2 changed files with 20 additions and 2 deletions

View File

@@ -200,7 +200,7 @@ struct GeneralSettings: View {
.disabled(self.healthStore.isRefreshing)
Button {
NSWorkspace.shared.selectFile("/tmp/clawdis/clawdis.log", inFileViewerRootedAtPath: "/tmp/clawdis/")
self.revealLogs()
} label: {
Label("Reveal Logs", systemImage: "doc.text.magnifyingglass")
}
@@ -212,6 +212,23 @@ struct GeneralSettings: View {
}
}
private extension GeneralSettings {
func revealLogs() {
let path = URL(fileURLWithPath: "/tmp/clawdis/clawdis.log")
if FileManager.default.fileExists(atPath: path.path) {
NSWorkspace.shared.selectFile(path.path, inFileViewerRootedAtPath: path.deletingLastPathComponent().path)
return
}
let alert = NSAlert()
alert.messageText = "Log file not found"
alert.informativeText = "Expected log at \(path.path). Run a health check or generate activity first."
alert.alertStyle = .informational
alert.addButton(withTitle: "OK")
alert.runModal()
}
}
private func healthAgeString(_ ms: Double?) -> String {
guard let ms else { return "unknown" }
return msToAge(ms)