Commit c7bbd48
fix(init): tag wizard.outcome on all early-exit paths
Several paths exited without setting wizard.outcome, leaving runs
with no outcome tag in Sentry and making the funnel gap unanalyzable:
- ctrl+c during a spinner (InkUI.requestCancel) → "abandoned"
- user said no at the welcome/confirm prompt (preamble) → "bailed"
- user selected "No, exit" at the experimental warning → "bailed"
- git status check bailed → "bailed"
- resolveInitContext returned null → "bailed"
The preamble paths flush cleanly (event loop drains, beforeExit fires)
so their tags will reliably reach Sentry. The InkUI path calls
process.exit(130) which skips beforeExit, but setting the tag before
the setImmediate tick gives the SDK its best chance to flush.
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>1 parent 6c6ea45 commit c7bbd48
2 files changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
| |||
817 | 818 | | |
818 | 819 | | |
819 | 820 | | |
| 821 | + | |
820 | 822 | | |
821 | 823 | | |
822 | 824 | | |
823 | 825 | | |
824 | 826 | | |
825 | 827 | | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
826 | 831 | | |
827 | 832 | | |
828 | 833 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
396 | 396 | | |
397 | 397 | | |
398 | 398 | | |
| 399 | + | |
399 | 400 | | |
400 | 401 | | |
401 | 402 | | |
| |||
409 | 410 | | |
410 | 411 | | |
411 | 412 | | |
| 413 | + | |
412 | 414 | | |
413 | 415 | | |
414 | 416 | | |
| |||
424 | 426 | | |
425 | 427 | | |
426 | 428 | | |
| 429 | + | |
427 | 430 | | |
428 | 431 | | |
429 | 432 | | |
| |||
608 | 611 | | |
609 | 612 | | |
610 | 613 | | |
| 614 | + | |
611 | 615 | | |
612 | 616 | | |
613 | 617 | | |
| |||
0 commit comments