Skip to content

Comments

fix: escape Rich markup in doctor output, shell-safe install hints (v0.7.1)#27

Merged
iracic82 merged 1 commit intomainfrom
fix/doctor-rich-escape
Feb 18, 2026
Merged

fix: escape Rich markup in doctor output, shell-safe install hints (v0.7.1)#27
iracic82 merged 1 commit intomainfrom
fix/doctor-rich-escape

Conversation

@iracic82
Copy link
Collaborator

Summary

  • Rich markup escape — Brackets in pip install "dns-aid[mcp]" were silently stripped because Rich interprets [mcp] as a markup tag. Fixed with rich.markup.escape().
  • Shell-safe hints — Changed single quotes to double quotes in install commands so they work in zsh/bash/fish without glob expansion issues.
  • Version bump to 0.7.1

Before

○ MCP server  pip install 'dns-aid'      ← [mcp] silently eaten

After

○ MCP server  pip install "dns-aid[mcp]"  ← brackets visible, copy-pasteable

Test plan

  • 734 unit tests pass
  • Ruff lint clean
  • Verified bracket rendering in terminal output
  • pip install "dns-aid[mcp]" command works in zsh

…ints (v0.7.1)

- Escape detail text with rich.markup.escape() so brackets in
  pip install "dns-aid[mcp]" render correctly instead of being
  silently stripped as Rich tags
- Use double quotes in install hints (works in bash, zsh, fish)
- Bump version to 0.7.1

Signed-off-by: Igor Racic <iracic82@gmail.com>
@iracic82 iracic82 merged commit 5c2e898 into main Feb 18, 2026
12 checks passed
@iracic82 iracic82 deleted the fix/doctor-rich-escape branch February 18, 2026 20:17
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.

1 participant