[BUG] Renders extra `mailto` in email addresses
Resolved 💬 3 comments Opened Jun 20, 2025 by kyeb Closed Aug 21, 2025
Environment
- Platform (select one):
- [x] Anthropic API
- [ ] AWS Bedrock
- [ ] Google Vertex AI
- [ ] Other: <!-- specify -->
- Claude CLI version: 1.0.31 (Claude Code)
- Operating System: macOS
- Terminal: Ghostty
Bug Description
⏺ You're absolutely right! I mistakenly included mailto: in my examples. That's not how email
addresses are stored - they're just plain email strings like "mailto:john.smith@company.com", not
"mailto:mailto:john.smith@company.com".
The correct examples should be:
- User: "John Smith", Email: "mailto:john.smith@company.com" → "John's Organization"
- User: "", Email: "mailto:jane.doe@example.com" → "jane.doe's Organization"
- User: " ", Email: "mailto:user123@gmail.com" → "user123's Organization"
- User: null, Email: null → "Personal" (auth.ts) or "" (dialog)
Thanks for catching that error in my documentation! The actual code implementation is correct - it
just uses user.email which contains the plain email address.
Steps to Reproduce
- Open Claude Code
- Prompt:
can you respond to me with some example email addresses?
Expected Behavior
Output raw email addresses
Actual Behavior
They're prefixed with mailto for some reason:
⏺ Here are some example email addresses:
- mailto:john.doe@example.com
- mailto:sarah.smith@company.org
- mailto:alex.johnson@tech-startup.io
- mailto:maria.garcia@university.edu
- mailto:david.brown@consulting.biz
- mailto:lisa.wilson@nonprofit.org
- mailto:michael.davis@government.gov
- mailto:jennifer.lee@healthcare.net
Additional Context
<!-- Add any other context about the problem here, such as screenshots, logs, etc. -->
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗