Repository navigation
feat(reporting): send reports and usage events to OpenNOW Reports - #1096
Merged
zortos293 merged 2 commits intoOct 4, 2026
Merged
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
capy-ai Bot
pushed a commit
that referenced
this pull request
Oct 4, 2026
* feat(reporting): add opt-out automatic bug reports * feat(reporting): send reports and usage events to OpenNOW Reports (#1096) * feat(reporting): send reports and usage events to OpenNOW Reports * fix(reporting): point the client at the deployed reports service
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is stacked on #1092. It moves the desktop client from the PrintedWaste bug-report endpoint and the direct PostHog capture to OpenNOW's own report service (opennow-reports). That service stores reports and forwards allowlisted usage events to PostHog.
Core (
native/opennow-core)reports.rsreplacestelemetry.rs.{base}/v1/reportsas multipart: areportJSON part (schema v1) and an optional gziplogpart.DEFAULT_REPORTS_API(https://reports.opennow.app, placeholder until the domain is final). It can be overridden withOPENNOW_REPORTS_API.feedback.submitall go through it. Feedback is sent as a manual report without an account.<data_dir>/reports/pending/: at most 5 reports, at most 7 days old. They are retried after the next sign-in.analytics.rs:{base}/v1/events: every 30 s, at 50 events, and at shutdown with a 1 s budget.app_opened,signed_in,game_launch_requested,session_error,library_load_failed,bug_report_sentandconsent_changed.consent_changedis sent anonymously.analytics.trackRPC for shell-emitted events. The capability is nowautomaticBugReports.v2, anddocs/core-protocol.mdis updated.telemetry.syncRPC, the PrintedWaste upload,termsAccepted, the reporter hash, and the client-side PostHog key.bug_report_identitynow also returnsuserIdandproviderIdpId. The backend turns these into a pseudonymous player ID; they are never written to diagnostics.errorReportingConsent: "denied"with an unansweredautomaticBugReportsbecomes"disabled".Shell (QML)
BugReportStateemitssession_started(on first frame) andsession_ended(once per session, with outcomeclean/user_stopped/remote_ended/error).session_endedincludes average FPS, ping and packet loss, computed from the existing telemetry samples. It also emitsframe_drops_detectedand streamsession_errors.REF <reportId>. When the service is already investigating the issue, it says "The developer's assistant is looking into it." A send that fails and is queued says it will be retried the next time OpenNOW starts.locales/en.jsonchanged.Verification
cargo test --manifest-path native/opennow-core/Cargo.toml --locked: all pass. New tests cover the allowlist, queue overflow and batching, the spool cap and resend, the consent wipe (including an in-flight batch), the multipart and gzip body against a mock server, retryability, pending-report pruning, and the consent migration.cargo fmt --checkandcargo clippy --all-targetsare clean.npm run locales:checkpasses.ctest(Linux/xvfb): 403/403.qml-bug-reportsnow checks theanalytics.trackcalls, the averaged stats, opt-out silence and the toast copy.store/game_idrules with them.Before merging, set
DEFAULT_REPORTS_APIto the deployed backend URL.