jcode icon indicating copy to clipboard operation
jcode copied to clipboard

First-run install telemetry is sent before the telemetry notice

Open ianalitis opened this issue 3 months ago • 0 comments

Summary

On first launch, Jcode can send the persistent-ID install telemetry event before showing the first-run telemetry notice. Preconfigured opt-outs are honored, but an ordinary new user does not see the notice or get a choice before the first transmission.

Why this matters

Notice after collection cannot inform the first collection. The install event is also an identity anchor in the telemetry system, so its ordering deserves a stronger consent and trust contract than later operational events.

Source trace

Audited at 008abc44b1653efa65ccf98acb3b7236ce8507e6:

Reproduction shape

  1. Use a clean Jcode home with no telemetry marker and no telemetry-related environment variables.
  2. Launch Jcode for the first time while observing a mock telemetry transport.
  3. Observe an install event before the first-run notice is displayed.

Expected behavior

Before the first telemetry transmission, Jcode should either:

  • ask for explicit opt-in,
  • display the notice and provide a usable opt-out before continuing,
  • or default to no telemetry until the user enables it.

At minimum, the install event should be deferred until after the notice/choice has completed.

Suggested regression

Add a startup-order test with a mock sender that asserts:

  1. no event is sent before notice/choice,
  2. opt-out prevents the install event,
  3. opt-in sends it at most once,
  4. noninteractive first launch has a documented fail-closed policy.

ianalitis avatar Aug 30 '26 19:08 ianalitis