Skip to content

Commit 73573b9

Browse files
fix(init,feedback): default to tracing only in feature select and attach user email to feedback (#688)
## Summary - **Init wizard**: The multi-select feature prompt now pre-selects only **Performance Monitoring (Tracing)** instead of all features. `--yes` mode continues to select all features. - **Feedback command**: Passes the stored user email and name to `Sentry.captureFeedback()` so feedback events display the user's identity in the Sentry UI instead of "Anonymous User". ## Changes | File | Change | |------|--------| | `src/lib/init/interactive.ts` | `initialValues: optional` → `initialValues: optional.filter(f => f === "performanceMonitoring")` | | `src/commands/cli/feedback.ts` | Read stored user info from DB and pass `email`/`name` to `captureFeedback()` |
1 parent 7994bba commit 73573b9

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)