Skip to content

fix(init): stop reporting cancelled wizard prompts#1075

Merged
betegon merged 1 commit into
mainfrom
fix/init-cancel-telemetry
Jun 5, 2026
Merged

fix(init): stop reporting cancelled wizard prompts#1075
betegon merged 1 commit into
mainfrom
fix/init-cancel-telemetry

Conversation

@betegon

@betegon betegon commented Jun 5, 2026

Copy link
Copy Markdown
Member

Summary

Stops treating intentional sentry init prompt cancellations as Sentry error issues. The wizard still records wizard.outcome=bailed, shows the cancellation feedback, and exits cleanly, but no longer calls captureException for WizardCancelledError.

Adds regression coverage for both welcome-screen cancellation and mid-step wizard cancellation so this does not come back as telemetry noise.

Test Plan

  • pnpm exec vitest run test/lib/init/wizard-runner.test.ts --testNamePattern "cancels cleanly from rich welcome screen|tears down forwarding and stops the spinner on cancellation|aborts the MastraClient signal on cancellation"
  • pnpm exec biome check src/lib/init/wizard-runner.ts test/lib/init/wizard-runner.test.ts

Sentry issue: CLI-1P9

@betegon betegon marked this pull request as ready for review June 5, 2026 11:22
@github-actions

github-actions Bot commented Jun 5, 2026

Copy link
Copy Markdown
Contributor
PR Preview Action v1.8.1

QR code for preview link

🚀 View preview at
https://cli.sentry.dev/_preview/pr-1075/

Built to branch gh-pages at 2026-06-05 11:22 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

@github-actions

github-actions Bot commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

Codecov Results 📊

✅ Patch coverage is 100.00%. Project has 4847 uncovered lines.
❌ Project coverage is 81.39%. Comparing base (base) to head (head).

Coverage diff
@@            Coverage Diff             @@
##          main       #PR       +/-##
==========================================
- Coverage    81.40%    81.39%    -0.01%
==========================================
  Files          372       372         —
  Lines        26054     26052        -2
  Branches     16994     16994         —
==========================================
+ Hits         21210     21205        -5
- Misses        4844      4847        +3
- Partials      1773      1775        +2

Generated by Codecov Action

@betegon betegon enabled auto-merge (squash) June 5, 2026 11:28
@betegon betegon merged commit d8cb274 into main Jun 5, 2026
27 checks passed
@betegon betegon deleted the fix/init-cancel-telemetry branch June 5, 2026 11:29
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