Report receiver: say whether a report came from MiniServer or CoreDesktop
shellcheck / shellcheck (push) Failing after 22s

Every issue said it came from CoreDesktop. MiniServer's reports send a
version starting with "MiniServer ", so sender() reads the product from
that, and the issue's version row and footer now name it, with the prefix
taken off the version.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-19 13:42:13 -07:00
co-authored by Claude Opus 5.5
parent af3eff6c92
commit 2915917f15
2 changed files with 29 additions and 2 deletions
+13 -2
View File
@@ -199,7 +199,18 @@ def issue_title(details):
return title[:200]
def sender(details):
"""Which product sent the report, and its version without the product's
name: MiniServer's versions start with "MiniServer ", CoreDesktop's
don't."""
version = details["version"]
if version.startswith("MiniServer "):
return "MiniServer", version[len("MiniServer "):]
return "CoreDesktop", version
def issue_body(report_id, details, log, received):
product, version = sender(details)
lines = log.rstrip("\n").split("\n")
excerpt = "\n".join(lines[-EXCERPT_LINES:])
marks = fence(excerpt)
@@ -210,7 +221,7 @@ def issue_body(report_id, details, log, received):
"| | |",
"|---|---|",
f"| Kind | {cell(details['kind'])} |",
f"| CoreDesktop | {cell(details['version'])} |",
f"| {product} | {cell(version)} |",
f"| Failed | {cell(details['failed'])} |",
f"| Kernel | {cell(details['kernel'])} |",
f"| Siblings | {cell(details['siblings'])} |",
@@ -221,7 +232,7 @@ def issue_body(report_id, details, log, received):
excerpt,
marks,
"",
"Sent with `report` from a CoreDesktop machine. Its user name, host name, home folder, "
f"Sent with `report` from a {product} machine. Its user name, host name, home folder, "
"email, IP and MAC addresses, Tailscale names, Core domains, the user's name, and "
"passwords, tokens and keys it recognized were replaced before sending.",
])