feat(p1.10): desktop diagnostics export#89
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements P1.10 from the roadmap: a new Settings → Diagnostics tab that produces a redaction-safe plaintext snapshot of desktop runtime state — for users to paste into bug reports.
SettingsDiagnostics.vueshows a live preview, with[ Copy ],[ Export ], and[ Refresh ]buttons.App:system_version_*.gohelpers callingsw_vers//etc/os-release/cmd ver), WebView identifier parsed fromnavigator.userAgent, redacted relay URL (scheme+host only), relay status, redacted relay token, allow-insecure flag, remote permission, uplink-paused flag, recent relay errors, and a config summary (default shell, locale, theme, notifications, shell integration, WebGL, logging path, auto-update, command notify threshold)..txt.writeFileis injected so tests can stub disk.desktop/uplink.go's retry path andhandleCloseError(auth-related codes 4001–4003).redactToken(first 12 chars + …),redactURL(drops path/query/fragment),redactErrorLine(atk_ tokens + Authorization + Cookie headers).DiagnosticsPayloadfield names so renames break loudly.Spec: `docs/superpowers/specs/2026-06-01-desktop-diagnostics-export-design.md`
Plan: `docs/superpowers/plans/2026-06-01-desktop-diagnostics-export.md`
Test Plan
atterm-diagnostics-<ts>.txt. Force a 401 token → Refresh → error appears in "Recent relay errors".Redaction guarantees (in spec §4, covered by tests)
…only?token=…)[redacted][redacted]