Skip to content

feat(analytics): prompt for user email when absent during report generation - #464

Merged
8nevil8 merged 1 commit into
codemie-ai:mainfrom
homich1991:analytics-enhance
Aug 5, 2026
Merged

feat(analytics): prompt for user email when absent during report generation#464
8nevil8 merged 1 commit into
codemie-ai:mainfrom
homich1991:analytics-enhance

Conversation

@homich1991

Copy link
Copy Markdown
Contributor

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

  • Added interactive email prompt in runAnalytics before building the report payload, guarded by process.stdout.isTTY
  • Persists entered email via ConfigLoader.saveUserEmail (non-fatal if save fails)
  • Ctrl+C / ESC on the prompt cancels report generation with a clear message (ExitPromptError / AbortPromptError handling matches the pattern used in setup.ts)

Impact

Before: report generated without userEmail in 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

  • Self-reviewed
  • Manual testing performed
  • Documentation updated (if needed)
  • No breaking changes (or clearly documented)

…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.
@8nevil8
8nevil8 merged commit 5927b29 into codemie-ai:main Aug 5, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants