Skip to content

Native: Diagnostics resource monitor (ST-DIAG) #112

Closed

Description

@rynfar

Port the resource monitor from ResourceTelemetryDiagnostics.tsx into Settings → Diagnostics (ledger row ST-DIAG, gap left by #65). First slice; the row may stay partial.

Web source: apps/web/src/components/settings/ResourceTelemetryDiagnostics.tsx (+ .logic.test.ts), its use in DiagnosticsSettings.tsx; contracts packages/contracts/src/resourceTelemetry.ts and the subscribeResourceTelemetry, server.getResourceTelemetryHistory, server.retryResourceTelemetry RPCs in packages/contracts/src/rpc.ts.

Scope: forward-compatible wire types and pure view-model logic in crates/core (tests ported from the logic test), the subscription and RPCs in crates/client, and the monitor UI in crates/app/src/settings/diagnostics.rs with web copy, units and states (unsupported, error/retry, loading). Subscribe only while the page is visible; no continuous repaint beyond the server's sample cadence.

Activity

  1. added this to the M3 Full parity milestone on Nov 3, 2026
  2. added
    parity
    native:feature
    status:in-progress
    on Nov 3, 2026
  3. rynfar commented on Nov 3, 2026

    @rynfar
    OwnerAuthor

    Ready for review in #114, head 6b28d31f2e413decb62867b1927ca1dbe61b1f01.

    Shipped forward-compatible telemetry types, the web's pure logic/tests, Diagnostics-owned subscription demand and both RPCs, all five monitor sections, static history charts with all four periods, virtualized process/history/I/O tables, tree collapse, and loading/empty/error/unsupported states. Clippy, the full native workspace tests, snapshot build, theme/parity/conformance checks, and changed-file checks passed. The smoke probe transcript is in the PR.

    ST-DIAG stays partial: signal controls are not duplicated into the new monitor tree; existing Live Processes controls remain, and additional signal actions were out of scope. The earlier per-app-session database-notice dismissal behavior is unchanged.

    Verification limit: the smoke server has no resource-monitor binary for darwin/arm64, so populated samples were verified through --resource-telemetry-fixture. Local screenshots, including before/after, all states, timeline/tree collapse and light mode, are under /private/tmp/t3-native-112-evidence/ (individual absolute paths in the PR). A passive capture of our own PID 47906 is /private/tmp/t3-native-112-evidence/real-window.png; that PID was stopped. No process signals were sent through Diagnostics, and no provider turns were sent.

  4. added
    status:review
    and removed
    status:in-progress
    on Nov 3, 2026
  5. rynfar commented on Nov 3, 2026

    @rynfar
    OwnerAuthor

    Merged in #114 after independent Sol re-review and the exact-head full native gate (1,086 tests). ST-DIAG stays partial. Remaining: signal controls in the new monitor tree (legacy Live Processes controls remain) and prior per-session-only database-notice dismissal. Populated live collector data could not be verified because the smoke server lacks the monitor binary; populated/loading/failure states were verified with fixtures. No process signals were sent. The three review bugs are fixed with regressions.

  6. removed
    status:review
    on Nov 3, 2026
  7. added
    status:in-progress
    on Nov 19, 2026
  8. rynfar commented on Nov 19, 2026

    @rynfar
    OwnerAuthor

    Landed in PR #419 (ST-DIAG -> done, squash-merged onto native).

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

    native:featureparitystatus:in-progress

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions