fix(mac): surface health errors instead of pending

This commit is contained in:
Peter Steinberger
2025-12-08 16:50:20 +01:00
parent 81db44f584
commit de70d82cea
2 changed files with 4 additions and 1 deletions

View File

@@ -136,6 +136,9 @@ final class HealthStore: ObservableObject {
} }
var state: HealthState { var state: HealthState {
if let error = self.lastError, !error.isEmpty {
return .degraded(error)
}
guard let snap = self.snapshot else { return .unknown } guard let snap = self.snapshot else { return .unknown }
if !snap.web.linked { return .linkingNeeded } if !snap.web.linked { return .linkingNeeded }
if let connect = snap.web.connect, !connect.ok { if let connect = snap.web.connect, !connect.ok {

View File

@@ -38,7 +38,7 @@ export function buildProgram() {
program program
.name("clawdis") .name("clawdis")
.description("Messaging relay CLI for WhatsApp Web and Telegram Bot API") .description("")
.version(PROGRAM_VERSION); .version(PROGRAM_VERSION);
const formatIntroLine = (version: string, rich = true) => { const formatIntroLine = (version: string, rich = true) => {