Skip to content

Diagnostics — one-click GitHub upload #858

Closed as not planned
Closed as not planned

Description

@samanthamsong

Epic: «Ship & update the node with confidence» (#838)
Backlog Doc ID: #34 · Priority: P2 · Area: release

Description
One-click upload of diagnostics to GitHub.

Definition of done
A user can attach scrubbed diagnostics to a GitHub issue in one click.

Part of the «Ship & update the node with confidence» tracking issue (#838).

Activity

  1. clawsweeper commented on Jun 26, 2026

    @clawsweeper

    Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed August 2, 2026, 1:58 PM ET / 17:58 UTC.

    Summary
    Keep open. Current main gives users a reviewable, sanitized diagnostics bundle that can be copied or saved locally, but it has no GitHub attachment or upload handoff. Because this collaborator-authored request would move diagnostic data off-device, maintainers need to choose the consent, authentication, destination, and scrubbed-data contract before implementation.

    Reproducibility: not applicable. This is a new remote-support capability, and current-main source already establishes that the existing flow ends at copy-to-clipboard or local-file save.

    Ways to help us reproduce this

    • Add a screenshot or short recording showing the behavior.
    • Add expected vs actual behavior.

    Maintainer decision needed

    Question Recommendation
    Should diagnostics sharing remain a local browser-and-file handoff, or should the tray directly authenticate and upload a support bundle to GitHub? Use a local-first GitHub handoff: Open an approved issue/reporting destination after preview while keeping attachment selection and credential use in the user's browser.

    Why: The current code intentionally keeps reviewable diagnostics local. Choosing a remote upload boundary determines credential handling, consent UX, destination control, and the data-scrubbing contract, none of which source inspection can safely infer.

    Next step
    A remote diagnostics upload is not a bounded repair because it requires an explicit security and product decision before an implementation path can be selected.

    Security
    Needs attention: The issue itself proposes moving diagnostics off-device, so its authentication, consent, destination, and redaction boundary needs explicit security review before implementation.

    Review details

    Best possible solution:

    Define a consented, reviewable support handoff that preserves the local preview and save path, sends only a documented scrubbed payload, and does not store GitHub credentials in tray settings.

    Do we have a high-confidence way to reproduce the issue?

    Not applicable. This is a new remote-support capability, and current-main source already establishes that the existing flow ends at copy-to-clipboard or local-file save.

    Is this the best way to solve the issue?

    No. The existing sanitized preview is a sound base, but an unconditional direct upload would choose a remote-data and GitHub-credential policy without maintainer approval.

    AGENTS.md: found and applied where relevant.

    Remaining risk / open question:

    • A direct GitHub upload could disclose diagnostic data unless maintainers define the exact scrubbed payload, user consent and preview, authentication model, destination ownership, and failure/retry behavior.

    Codex review notes: model internal, reasoning high; reviewed against 8ac00c5f4977.

    Label changes

    Label justifications:

    • P2: This is a useful support-flow feature, but current users retain copy and local-file diagnostics export while product direction is decided.
    • impact:security: The request would transmit diagnostics off-device and therefore needs a defined sensitive-data and credential boundary.
    • impact:other: The requested change affects the diagnostics and support workflow rather than data loss, message delivery, session state, or provider routing.
    Evidence reviewed

    Security concerns:

    • [high] Define the diagnostics upload trust boundary
      Current diagnostics are previewed and exported locally. A GitHub upload path needs an approved rule for what can leave the device, how users review and consent, and how GitHub authentication and attachment destinations are controlled.
      Confidence: 0.96

    What I checked:

    Likely related people:

    • Christine Yan: Git history names Christine Yan as the author of the sanitized diagnostics bundle feature that defines the current export boundary. (role: introduced diagnostics bundle behavior; confidence: high; commits: 8c9acbcfb5d8; files: src/OpenClaw.Tray.WinUI/Services/DiagnosticsBundleBuilder.cs, src/OpenClaw.Tray.WinUI/Windows/DiagnosticsBundleDialog.xaml.cs)
    • Scott Hanselman: Current diagnostics dialog and page lines are attributed to Scott Hanselman in the latest source history, and earlier history shows substantial diagnostics UX work in the same area. (role: recent diagnostics-area contributor; confidence: medium; commits: 15ed439dc5a3, 124f488d3ff3; files: src/OpenClaw.Tray.WinUI/Windows/DiagnosticsBundleDialog.xaml.cs, src/OpenClaw.Tray.WinUI/Pages/DebugPage.xaml.cs)
    How this review workflow works
    • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
    • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
    • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
    • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
    • Maintainers can also comment @clawsweeper review to request a fresh review only.
    • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
    • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
    • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.
  2. added
    P2
    impact:security
    impact:other
    issue-rating: 🌊 off-meta tidepool
    clawsweeper:no-new-fix-pr
    clawsweeper:needs-maintainer-review
    clawsweeper:needs-product-decision
    on Jun 26, 2026
  3. added theissue type on Jun 26, 2026
  4. moved this from Backlog to Release in Windows Companion Appon Jul 13, 2026
  5. github-actions commented on Jul 25, 2026

    @github-actions
    Contributor

    This issue has been automatically marked as stale due to inactivity.
    Please add updated OpenClaw Windows details or it will be closed.

  6. added
    clawsweeper:needs-security-review
    on Jul 29, 2026
  7. added
    clawsweeper:needs-security-review
    and removed
    clawsweeper:needs-security-review
    on Aug 2, 2026
  8. github-actions commented on Aug 17, 2026

    @github-actions
    Contributor

    This issue has been automatically marked as stale due to inactivity.
    Please add updated OpenClaw Windows details or it will be closed.

  9. github-actions commented on Aug 24, 2026

    @github-actions
    Contributor

    Closing due to inactivity.
    If this still affects OpenClaw Windows, open a new issue with the current version, logs, and fresh reproduction details.

  10. locked as resolved and limited conversation to collaborators on Aug 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2clawsweeper:needs-maintainer-reviewclawsweeper:needs-product-decisionclawsweeper:needs-security-reviewclawsweeper:no-new-fix-primpact:otherimpact:securityissue-rating: 🌊 off-meta tidepoolstale

    Type

    Fields

    Priority

    Medium

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions