[BUG] CLI outputs `mailto:` in front of all strings with "email-like" format, even when not applicable
Resolved 💬 6 comments Opened May 22, 2025 by sigmachirality Closed Nov 30, 2025
Environment
- Platform (select one):
- [x] Anthropic API
- [ ] AWS Bedrock
- [ ] Google Vertex AI
- [ ] Other: <!-- specify -->
- Claude CLI version: 0.2.125
- Operating System: 15.4.1 (24E263)
- Terminal: Warp, oh-my-zsh
Bug Description
The CLI adds the mailto: label to emails (which I do think is generally useful!) However, it even does so in cases where it does not apply (such as when generating/parsing DB connection strings). I think the model should be given discretion on whether to prefix a string with mailto: or not, rather than the naive logic I think the CLI is currently doing.
Steps to Reproduce
- Ask the model to generate you a dummy postgressql connection string with a dummy domain name.
Expected Behavior
To receive something like: postgres://username:password@example.com:5432/database
Actual Behavior
Received: postgres://username:mailto:password@example.com:5432/database
Additional Context
<img width="598" alt="Image" src="https://github.com/user-attachments/assets/cf92d06d-1d46-482b-9fa6-2ba7f8f00aab" />
This issue has 6 comments on GitHub. Read the full discussion on GitHub ↗