feat(gui): add a Copy Diagnostics button to the About window#206
Draft
davidbudnick wants to merge 1 commit into
Draft
feat(gui): add a Copy Diagnostics button to the About window#206davidbudnick wants to merge 1 commit into
davidbudnick wants to merge 1 commit into
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
Adds a Copy Diagnostics button to the About window that copies a privacy-filtered, Markdown diagnostics report to the clipboard for pasting into a bug report. It gives enough detail to reproduce environment-specific issues — device connection, capabilities, missing render images, agent/GUI version skew, asset-cache state — without exposing anything that uniquely identifies the user's hardware.
What it collects
Privacy
Model-level only. Serial numbers, unit IDs, and the Bolt receiver UID are excluded by construction — the report structs have no field to hold them, so a future edit can't leak one by forgetting to redact. The home directory is redacted to
~in the cache path.Design
openlogi-core(diagnostics.rs) — platform-free and unit-tested.openlogi-gui/src/diagnostics.rs) maps liveAppState(device list, agent status, asset resolver) onto it, refining connection type from the device's announced transports.AgentStatusand the raw inventory snapshot (previously discarded after each poll) so the report can include agent version, hook state, and transports.cx.write_to_clipboard(ClipboardItem::new_string(...)); the button confirms with a "Copied!" label for ~2s.Testing
openlogi-corecover section rendering, version/protocol mismatch flags, empty/offline devices, the no-serial-or-unit-id guarantee, and direct-connection slot rendering.Screenshots