From caeba3ff2446e67776973650a3dc18c722b9316b Mon Sep 17 00:00:00 2001 From: mathuraditya724 Date: Wed, 8 Apr 2026 19:56:37 +0530 Subject: [PATCH] fix(init,feedback): default to tracing only in feature select and attach user email to feedback - Init wizard multi-select now pre-selects only Performance Monitoring (Tracing) instead of all features. --yes mode still selects all features. - Feedback command now passes stored user email/name to Sentry.captureFeedback() so feedback shows the user's identity instead of 'Anonymous User'. --- src/commands/cli/feedback.ts | 8 +++++++- src/lib/init/interactive.ts | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/commands/cli/feedback.ts b/src/commands/cli/feedback.ts index 90e7a6d5e..5d86f28c3 100644 --- a/src/commands/cli/feedback.ts +++ b/src/commands/cli/feedback.ts @@ -63,7 +63,13 @@ export const feedbackCommand = buildCommand({ ); } - Sentry.captureFeedback({ message }); + const { getUserInfo } = await import("../../lib/db/user.js"); + const user = getUserInfo(); + Sentry.captureFeedback({ + message, + email: user?.email, + name: user?.name ?? user?.username, + }); // Flush to ensure feedback is sent before process exits const sent = await Sentry.flush(3000); diff --git a/src/lib/init/interactive.ts b/src/lib/init/interactive.ts index cb4f3556c..af2a26adb 100644 --- a/src/lib/init/interactive.ts +++ b/src/lib/init/interactive.ts @@ -123,7 +123,7 @@ async function handleMultiSelect( label: featureLabel(feature), hint: featureHint(feature), })), - initialValues: optional, + initialValues: optional.filter((f) => f === "performanceMonitoring"), required: false, });