fix(cli): CliUserError for missing notifyAppReady / public key / appId - #3181
fix(cli): CliUserError for missing notifyAppReady / public key / appId#3181riderx wants to merge 1 commit into
Conversation
|
Warning Review limit reached
On-demand reviews are free for the next 26 days. After that, they cost $0.25 per reviewed file. Or wait 31 minutes for your next included review. View limit detailsLimit details: You’ve used all 2 included reviews currently available. Your 55 included PR review attempts over the past 7 days set your current allowance at 2 reviews per hour. Review configuration: ⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (20)
✨ Finishing Touches📝 Generate docstrings
Comment |
|
Closing: Martin’s direction is not to silence these as CliUserError / skip PostHog capture. Keep tracking real user failures and fix success paths (auto-detect, prompt to create/fix, inject missing pieces) so users complete the flow. Will reopen as success-path PRs where we have a clear product fix. |
|
Do not merge — Martin rejected CliUserError-only silencing. Keep PostHog tracking for these user failures; prefer success-path fixes (auto-detect / prompt / inject) so users complete the flow. Replacement work in flight for notifyAppReady/public key/appId; same direction for the rest of this batch (#3175–#3182 CliUserError PRs). |
|
Do not merge this PR. Martin rejected the CliUserError /
A separate cloud agent ( |
697cda9 to
f01e8d0
Compare
Merging this PR will not alter performance
Comparing Footnotes
|
There was a problem hiding this comment.
All reported issues were addressed
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
7bdab3d to
3cdffdb
Compare
0a46305 to
30e5569
Compare
108e8a6 to
f17b4dc
Compare
2f327be to
ed8f099
Compare
d8de084 to
fd9720d
Compare
|
@coderabbitai review |
|
@coderabbitai review |
|
@coderabbitai full review |
9cdc8bc to
fd9720d
Compare
|
@coderabbitai review |
TorichanCapgo
left a comment
There was a problem hiding this comment.
Rebased onto main (12.257.1). Conflicts resolved. CI green on run 32841965137. All review threads addressed.
fd9720d to
77a5c5b
Compare
29f31b4 to
77a5c5b
Compare
Rebased onto main (12.257.1): keep channel-add duplicate recovery (#3195), merge config/org + bundle CliUserError tests, and add test:cli-user-error-config to the CLI test suite. Co-authored-by: Martin DONADIEU <martindonadieu@gmail.com>
77a5c5b to
daf07db
Compare
|
|
@coderabbitai review |
Replaces CliUserError-only PostHog silencing (rejected in #3181) with interactive success-path recovery for bundle zip: semver fallback, missing inputs, notifyAppReady injection, project rebuild, and updater install. Recovery is TTY-only; declined or non-interactive failures still throw plain Error so PostHog keeps tracking real user setup issues. Co-authored-by: Martin DONADIEU <martindonadieu@gmail.com>



Summary (AI generated)
CliUserErrorsoshouldCapturePosthogExceptionskips them instead of opening PostHog$exceptionissues.notifyAppReady() is missing in build folder—bundle zip(zip.ts).Missing public key in config—bundle encrypt(encrypt.ts).Missing appId— bundle, channel, app, preview, and build commands throwCliUserError('Missing appId').main@ 12.257.2 (dcd9561b); merged with fix(cli): treat existing channel as success on channel add #3195 channel-add duplicate recovery and fix(cli): throw CliUserError for capacitor config and org lookup #3182 config/org CliUserError tests.Motivation (AI generated)
PostHog error tracking classified legitimate user setup mistakes as unhandled crashes (~79 / ~28 / ~16 users), creating triage noise for notifyAppReady, missing public key, and missing appId.
Business Impact (AI generated)
trackCommandFailedanalytics.Test Plan (AI generated)
cd cli && bun run test:cli-user-error-configcd cli && bun run test:posthog-exceptionmain; no merge conflictsreviewDecisionAPPROVED;mergeStateStatusCLEANGenerated with AI
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.