fix: raise voice wake forward timeout to 30s
This commit is contained in:
@@ -26,4 +26,5 @@ let voiceWakeSupported: Bool = ProcessInfo.processInfo.operatingSystemVersion.ma
|
||||
let cliHelperSearchPaths = ["/usr/local/bin", "/opt/homebrew/bin"]
|
||||
let defaultVoiceWakeForwardCommand = "clawdis-mac agent --message \"${text}\" --thinking low"
|
||||
let defaultVoiceWakeForwardPort = 22
|
||||
let defaultVoiceWakeForwardTimeout: TimeInterval = 6
|
||||
// Allow enough time for remote agent responses (LLM replies often take >10s).
|
||||
let defaultVoiceWakeForwardTimeout: TimeInterval = 30
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user