Skip to content

Turn usage analytics and crash reports on by default (851-4422) - #1419

Merged
pondorasti merged 1 commit into
mainfrom
alexandru/851-4422-turn-usage-analytics-and-crash-reports-on
Nov 18, 2026
Merged

pondorasti merged 1 commit into
mainfrom
alexandru/851-4422-turn-usage-analytics-and-crash-reports-on

Conversation

@pondorasti

Copy link
Copy Markdown
Member

Fixes 851-4422

Summary

  • Settings › Privacy: "Share usage analytics" and "Send crash and error reports" now start on for fresh installs, settings files that don't have the keys, and Delete all data.
  • Existing users keep whatever is saved. Nothing changes a saved value.
  • Delete all data used to turn both clients off and leave them off. Now it purges and then turns them back on to match the reset settings (which are on now).
  • Previews, fixture renders (App Store and bento screenshots), and the demo environment never attach the analytics or crash-report clients, and their settings stay off. Debug builds still send nothing unless CODEVISOR_ENABLE_ANALYTICS=1 / CODEVISOR_ENABLE_DIAGNOSTICS=1 is set.
  • iOS doesn't attach either client, so nothing changes there.

Tophat (macOS dev app, fresh data)

  • Fresh install: both toggles are on. The saved settings have shareAnalytics: true, shareCrashReports: true. With lldb attached at launch, AnalyticsClient.configureFromMainBundle(enabled=true) and DiagnosticsClient.configureFromMainBundle(enabled=true) were called.
  • Delete all data: both toggles are still on. lldb saw setEnabled(false) for both (the purge), then setEnabled(true) for both.
  • Saved opt-out: I turned analytics off and relaunched. lldb saw AnalyticsClient.configureFromMainBundle(enabled=false) and DiagnosticsClient.configureFromMainBundle(enabled=true), so the saved value was kept.
  • Focused Swift tests pass: AppSettingsLegacyDecodingTests, SessionOverlayTests, AppEnvironmentTests (22 tests). swift:format:check and swift:lint are clean.

Screenshots are on the Linear ticket.

🤖 Generated with Claude Code

Fresh installs, a settings file without the keys, and Delete all data now
start with both Privacy toggles on. Saved values are kept as they are.

Delete all data turns the clients back on after purging, so they match the
reset settings. Previews, fixture renders, and the demo environment never
attach the reporting clients and keep both settings off.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@pondorasti
pondorasti merged commit 9d2c859 into main Nov 18, 2026
@pondorasti
pondorasti deleted the alexandru/851-4422-turn-usage-analytics-and-crash-reports-on branch November 18, 2026 22:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant