Skip to content

feat(desktop): summarize session requests and copy safe diagnostics #2107

Open

Description

@knqiufan

Goal

Show bounded outcomes and latency from this Desktop session and let users preview and explicitly copy a safe diagnostic summary.

Parent: #2100. First-wave delivery: #2099. Work item: F1-05.

PR breakdown

  • PR 05-A — Native request observations and safe projection. Define request versus user-operation measurements, bounded retention/reset behavior, latency units, and failure/cancellation/unknown-write semantics. Collect at the native boundary and project an allowlisted summary before exposing data to the renderer.

  • PR 05-B — Session page and diagnostic preview/copy. Implement the This session view, clearly labelled outcomes/latency, visible coverage, safe-summary preview, and explicit copy with success/failure feedback.

Dependencies and coordination

Acceptance criteria

  • Local setup failures can be explained with safe phase/result and a supported opaque operation reference. Summaries never copy raw installer stdout, paths, endpoint secrets, config, or journal contents; preview/copy stays explicit.

  • Every measurement clearly represents either an HTTP request or a user action; identity checks do not silently double-count user actions or mislabel request latency as end-to-end latency.

  • Collection is bounded with documented limits and session/reset behavior. Context changes do not leak private data; observation failure cannot change results or suppress cancellation.

  • Success, definite failure, cancellation, and uncertain write outcomes remain distinguishable; session observations are not authoritative proof of persistence.

  • The native summary excludes memory content, queries, prompts/responses, credentials, raw endpoints, identity/Scope IDs, private paths, and raw exceptions. No whole-state serialization followed by renderer-only redaction.

  • Users can inspect the exact safe text before explicitly copying it; copy behavior is exercised in the installed application.

  • The page states that it covers this Desktop session, not global Server/Agent tracing. Empty/loading/failure states, English/Chinese, keyboard/focus, small windows, and scaling are usable.

  • Regression evidence covers bounded retention, measurement/outcome semantics, sensitive-data exclusion, and collector failure isolation.

Delivery priority

Windows 11 x64 and macOS Apple Silicon/Intel are required for #2099. Linux #2110 and #2111 are optional, owner-driven work under #1428; missing Linux implementation, packaging, or qualification does not block this issue's first-wave acceptance or the Windows/macOS release. Any advertised Linux support requires its own actual qualification.

Non-goals

No global telemetry backend, durable business audit trail, automatic diagnostic upload, or persistent content-bearing request history.

References and delivery rules

Activity

  1. added
    desktopDesktop application, native platform integration, and packaging
    on Oct 20, 2026
  2. sunlight798 commented on Oct 21, 2026

    @sunlight798
    Contributor

    I'd like to work on this issue

  3. moved this from Todo to In progress in PowerContexton Oct 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

desktopDesktop application, native platform integration, and packaging

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions