feat(analytics): prompt for user email when absent during report generation - #464
Merged
Merged
Conversation
…ration When no email is stored in config, interactively ask the user to enter it before generating the report and persist it for future runs. Ctrl+C cancels report generation. Non-TTY environments (CI, pipes) skip the prompt silently.
homich1991
force-pushed
the
analytics-enhance
branch
from
August 5, 2026 11:27
23d378b to
f6d87a0
Compare
8nevil8
approved these changes
Aug 5, 2026
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.
Summary
When generating an analytics report and no email is stored in config, prompt the user to enter it interactively, then persist it to config for future runs. Ctrl+C cancels report generation entirely. Non-TTY environments (CI, pipes) skip the prompt silently.
Changes
runAnalyticsbefore building the report payload, guarded byprocess.stdout.isTTYConfigLoader.saveUserEmail(non-fatal if save fails)ExitPromptError/AbortPromptErrorhandling matches the pattern used insetup.ts)Impact
Before: report generated without
userEmailin metadata when user was not authenticated via SSO or used bedrock/jwt/litellm/ollama provider.After: user is prompted once; email is saved and reused on subsequent runs.
Checklist