Skip to content

Commit caeba3f

Browse files
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'.
1 parent 7994bba commit caeba3f

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/commands/cli/feedback.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,13 @@ export const feedbackCommand = buildCommand({
6363
);
6464
}
6565

66-
Sentry.captureFeedback({ message });
66+
const { getUserInfo } = await import("../../lib/db/user.js");
67+
const user = getUserInfo();
68+
Sentry.captureFeedback({
69+
message,
70+
email: user?.email,
71+
name: user?.name ?? user?.username,
72+
});
6773

6874
// Flush to ensure feedback is sent before process exits
6975
const sent = await Sentry.flush(3000);

src/lib/init/interactive.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ async function handleMultiSelect(
123123
label: featureLabel(feature),
124124
hint: featureHint(feature),
125125
})),
126-
initialValues: optional,
126+
initialValues: optional.filter((f) => f === "performanceMonitoring"),
127127
required: false,
128128
});
129129

0 commit comments

Comments
 (0)