Repository navigation
LTRAC-2163: feat(cli) - Offer to send an error report after a CLI crash - #3264
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
| Name | Type |
|---|---|
| @bigcommerce/catalyst | Minor |
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
parthshahp
force-pushed
the
parthshah/ltrac-2163-add-feedback-submission-to-the-native-hosting-cli-flow
branch
from
October 2, 2026 17:54
91c2a9e to
077c5ca
Compare
parthshahp
force-pushed
the
parthshah/ltrac-2163-add-feedback-submission-to-the-native-hosting-cli-flow
branch
from
October 2, 2026 18:05
077c5ca to
5a0c265
Compare
parthshahp
force-pushed
the
parthshah/ltrac-2163-add-feedback-submission-to-the-native-hosting-cli-flow
branch
from
October 2, 2026 18:26
5a0c265 to
d25f521
Compare
Contributor
Unlighthouse Comparison✅ Resolved: the latest run found no regressions. |
parthshahp
force-pushed
the
parthshah/ltrac-2163-add-feedback-submission-to-the-native-hosting-cli-flow
branch
from
October 13, 2026 16:09
3948af5 to
775af9d
Compare
parthshahp
changed the base branch from
canary
to
parthshah/ltrac-2163-4-deploy-survey
October 13, 2026 18:09
parthshahp
added this pull request to stack #3277
October 13, 2026 18:10
parthshahp
force-pushed
the
parthshah/ltrac-2163-add-feedback-submission-to-the-native-hosting-cli-flow
branch
from
October 13, 2026 21:10
775af9d to
0c15727
Compare
parthshahp
force-pushed
the
parthshah/ltrac-2163-add-feedback-submission-to-the-native-hosting-cli-flow
branch
from
October 19, 2026 17:08
0c15727 to
6ed2baf
Compare
parthshahp
marked this pull request as ready for review
October 19, 2026 18:43
parthshahp
deleted the
parthshah/ltrac-2163-add-feedback-submission-to-the-native-hosting-cli-flow
branch
October 19, 2026 23:15
This branch was successfully deployed
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.
What/Why?
After an unexpected error, the CLI asks whether to send an error report. Part of a stack that lets Storefront Hosting users send feedback from the CLI. Stacked on #3276.
index.tscallsofferCrashReport(lib/crash-report.ts) only for unexpected errors (the ones that show the Correlation ID). AUserActionableError(bad input, an expired token, a 4xx) does not ask. Ctrl+C at a prompt is not a crash.catalyst debugreport. The home directory shows as~. Source iscatalyst-cli-crash. It works when telemetry is off.catalyst feedback."--no-hintsandCATALYST_NO_HINTSturn off the question and the hint.preActionhook (recordActiveCommand) records the running command, so the handler can find the credentials from flags, env, orproject.json.offerCrashReportnever throws, so the handler always exits with code 1.The feedback endpoint does not accept CLI tokens yet. A backend change for this is in progress.
Testing
pnpm lint,pnpm typecheck, andpnpm testpass (890 tests).--api-host: the question shows with(y/N), andnexits without sending. Without a TTY, the hint shows. With--no-hints, nothing shows.Migration
None.