Repository navigation
Conversation
ernestrc
reviewed
Sep 19, 2026
First-time users running the onboarding bootstrap wizard are now presented with
an explicit telemetry consent prompt before transitioning to the configured
editor environment.
Key changes:
- Export apiclient.ExampleUsagePayloadJSON() with reflection-based test
coverage (TestExampleUsagePayloadJSONFieldCoverage) to prevent documentation
and prompt drift as the usage payload evolves.
- Update renderPreset to accept a telemetry boolean and append an explicit
telemetry block with explanatory commentary to generated config.yaml files.
- Wire openTelemetryPrompt into bootstrapHandler between keymap selection
and the final IDE swap, offering " sure " ('y') and " no thanks " ('n')
choices with re-opening guards against unselected dismissals (Esc).
- Inject the chosen telemetry preference into performSwap's rootCfg so the
live API client immediately respects the choice on first launch.
- Update telemetry documentation in cmd/rune/docs to reflect the onboarding
consent prompt and config persistence behavior.
Closes unstablebuild#86
Signed-off-by: Spandan Mishra <[email protected]>
Signed-off-by: Spandan Mishra <[email protected]>
Turn the Telemetry documentation reference in the bootstrap consent prompt into a clickable markdown link so users can inspect the full specification directly in their browser. Signed-off-by: Spandan Mishra <[email protected]>
Remove dead fallback branches in b.prompt since b.prompter is guaranteed to be non-nil across all prompt paths. Additionally, update performSwap to rebind b.prompter to the swapped IDE instance so it does not retain a reference to the closed pre-IDE. Signed-off-by: Spandan Mishra <[email protected]>
Signed-off-by: Spandan Mishra <[email protected]>
Streamline the bootstrap wizard telemetry prompt by removing the partial in-prompt payload example and directing users to the documentation for the complete specification. Add realistic real-world JSON examples for both the startup system report and the periodic usage report to the Telemetry documentation page. Signed-off-by: Spandan Mishra <[email protected]>
Spandan-Mishra
force-pushed
the
feat/bootstrap-telemetry-consent-prompt
branch
from
September 20, 2026 05:52
9365abb to
cb5e169
Compare
ernestrc
reviewed
Sep 20, 2026
| "EditorMode": "standard", | ||
| "OS": "linux", | ||
| "Arch": "amd64", | ||
| "NumCPU": 8, |
Contributor
There was a problem hiding this comment.
this is not collected or sent at all. Can you double check all of these fields. We should show exactly what we're collecting, otherwise what's the point of showing a payload that's not real?
| "We never send file names, paths, file contents, terminal output, or " + | ||
| "anything you type.\n\n" + | ||
| "You can change this any time in ~/.rune/config.yaml. A complete report " + | ||
| "and sample payloads are on the [Telemetry](https://docs.rune.build/learn/telemetry/) page in the docs." |
Contributor
There was a problem hiding this comment.
this markdown link is not clickable, so it's not a great experience for the user if they try to click it and it doesn't lead anywhere. Drop the link for now, I don't want to refactor how all of the prompts are installed; currently they're not wrapped in a markdown.Handler, only a markdown.Component, so there's no mouse event handling.
…cleanups - Remove unused ExampleUsagePayloadJSON and its reflection test. - Remove duplicate require.NoError in TestRenderPreset. - Drop unused b.prompter assignment in performSwap. - Wrap renderPreset format template to stay within line width limits. - Update telemetry prompt text to refer to "your config" and drop unclickable markdown link. Signed-off-by: Spandan Mishra <[email protected]>
Replace sample JSON payloads in telemetry.md with verified real-world examples matching telemetrySystemPayload and telemetryUsagePayload, correcting the system event type to ClientSystem, removing fabricated fields like NumCPU, and using the exact wire field names. Signed-off-by: Spandan Mishra <[email protected]>
ernestrc
enabled auto-merge (squash)
September 21, 2026 19:08
ernestrc
approved these changes
Sep 21, 2026
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
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.
Summary
Addresses #86 by introducing an explicit telemetry consent prompt to the first-run bootstrap wizard. Previously, telemetry was enabled by default on fresh installs without an interactive prompt. Users can now choose whether to share anonymous usage reports during initial onboarding.
Telemetry consent prompt:

Implementation Details
Payload Example Generator without Drift (
cmd/rune/ide/apiclient/telemetry.go):ExampleUsagePayloadJSON()returning a formatted JSON representation of a representativetelemetryUsagePayload.TestExampleUsagePayloadJSONFieldCoverageusing reflection to ensure 100% field coverage between the struct and the example output.Preset Generation & Config Migration (
cmd/rune/presets.go,cmd/rune/config_migrate.go):renderPreset(editor string, telemetry bool)to append the explicittelemetry:block with documentation comments toconfig.yaml.Bootstrap Wizard Wiring (
cmd/rune/bootstrap_handler.go):bootstrapPrompterinterface to decouple headless prompt testing from the GUI engine.openVimPrompt->openTelemetryPrompt->performSwap." sure "(bound toy) and" no thanks "(bound ton).promptGuard()so closing without a choice (e.g.Esc) safely re-prompts the user.performSwap'srootCfgensuring the live API client on the first session respects the decision immediately.Documentation (
cmd/rune/docs/docs/learn/telemetry.md):config.yaml.Verification
cmd/rune/bootstrap_test.go: Verified prompt progression, choice mapping, config persistence round-trip, and Esc dismissal re-opening.cmd/rune/ide/apiclient/telemetry_test.go: Verified payload struct reflection coverage.go test -race -count=1 ./cmd/rune ./cmd/rune/ide/apiclient(all pass).yandnand verified their corresponding results in the respective config.yaml of the directorieswhen

sureis selected:when

no thanksis selected: