From b05e8f189f2ba4e50702e399b51c4c5036e1225d Mon Sep 17 00:00:00 2001 From: Sam Catlow Date: Wed, 2 Sep 2026 00:35:13 +1000 Subject: [PATCH] fix(update): drop dev-facing wording from the unconfirmed-update message "Treat this as UNCONFIRMED, not complete" is developer-speak in a message an operator with no codebase context has to act on. Reword to plain instruction: say what's known, then what to do about it. --- internal/channels/telegram/update.go | 2 +- internal/channels/telegram/update_test.go | 6 +++--- internal/webui/update_report.go | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/internal/channels/telegram/update.go b/internal/channels/telegram/update.go index b4933cef3..6cb9656f1 100644 --- a/internal/channels/telegram/update.go +++ b/internal/channels/telegram/update.go @@ -327,7 +327,7 @@ func formatHealthyReport(report releaseupdate.Report, verification releaseupdate if changes != "" { text += " (" + changes + ")" } - return text + ", health check passed, but I could not confirm which version is actually running. Treat this as UNCONFIRMED, not complete." + return text + ", health check passed, but I still can't confirm which version is actually running — please check manually before assuming the update worked." } text := "Update complete" if changes != "" { diff --git a/internal/channels/telegram/update_test.go b/internal/channels/telegram/update_test.go index b643b2ec6..76daefccc 100644 --- a/internal/channels/telegram/update_test.go +++ b/internal/channels/telegram/update_test.go @@ -275,7 +275,7 @@ func TestFormatPendingReportVerifiesAgainstRunningVersions(t *testing.T) { previous: map[string]string{daemon: previousVer}, installed: map[string]string{daemon: installedVer}, running: nil, - wantText: []string{"could not confirm which version"}, + wantText: []string{"can't confirm which version"}, denyText: []string{"did not take effect", "healthy on the new version"}, }, { @@ -283,7 +283,7 @@ func TestFormatPendingReportVerifiesAgainstRunningVersions(t *testing.T) { previous: map[string]string{daemon: previousVer}, installed: map[string]string{daemon: releaseupdate.VersionUnknown}, running: map[string]string{daemon: installedVer}, - wantText: []string{"could not confirm which version"}, + wantText: []string{"can't confirm which version"}, denyText: []string{"did not take effect", "healthy on the new version", releaseupdate.VersionUnknown}, }, { @@ -291,7 +291,7 @@ func TestFormatPendingReportVerifiesAgainstRunningVersions(t *testing.T) { previous: map[string]string{daemon: previousVer}, installed: map[string]string{daemon: installedVer}, running: map[string]string{daemon: releaseupdate.VersionDev}, - wantText: []string{"could not confirm which version"}, + wantText: []string{"can't confirm which version"}, denyText: []string{"did not take effect", "healthy on the new version"}, }, } diff --git a/internal/webui/update_report.go b/internal/webui/update_report.go index 030fe5807..0a13744d4 100644 --- a/internal/webui/update_report.go +++ b/internal/webui/update_report.go @@ -109,7 +109,7 @@ func summarizeUpdateReport(report releaseupdate.Report, verification releaseupda return "Update did NOT take effect: " + strings.Join(ids, "; ") + "." } if len(verification.Confirmed) == 0 { - return "Update installed and health check passed, but no running version could be verified -- treat this as UNCONFIRMED, not complete." + return "Update installed and health check passed, but the running version could not be verified -- please check manually before assuming the update worked." } text := "Update complete. Health check passed -- confirmed running on the new version (" + strings.Join(verification.Confirmed, ", ") + ")." if len(verification.Unverified) > 0 {