-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Labels
uxUser experience improvementUser experience improvement
Description
The null byte validation case in `validate_tag_name()` includes `got '{tag}'` in the error message. When `tag` contains a null byte, the rendered output may appear truncated or empty depending on the terminal:
```
error: invalid tag name: valid tags are printable text (e.g., `baseline`, `v1`), got ''
```
Consider either:
- Omitting the `got '{tag}'` clause for the null byte case (since the input is not meaningfully printable)
- Escaping or replacing non-printable characters in the display (e.g., show `\0` or ``)
This is an edge case (users rarely type null bytes), but the current behavior is confusing when it does occur.
Discovered during review of #164.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
uxUser experience improvementUser experience improvement