Skip to content

fix: keep the MCP hint URL on one line in plain terminals - #805

Open
vschernoff wants to merge 2 commits into
protofire:developfrom
vschernoff:fix/mcp-hint-line-break
Open

vschernoff wants to merge 2 commits into
protofire:developfrom
vschernoff:fix/mcp-hint-line-break

Conversation

@vschernoff

Copy link
Copy Markdown
Collaborator

One line. The cosmetic pass in 7b95aa4 moved the paragraph break in printMcpHint to before the colon rather than after the URL, so terminals without hyperlink support render:

  ===> 💡 Using an AI coding agent? Lint from it with solhint-mcp

: https://www.npmjs.com/package/solhint-mcp

The URL ends up on its own line behind an orphaned colon. After:

  ===> 💡 Using an AI coding agent? Lint from it with solhint-mcp: https://www.npmjs.com/package/solhint-mcp

The hyperlink branch already had \n\n in the right place and is unaffected — which is presumably why it went unnoticed, since that's the branch you'd see on a modern terminal.

Checked: hyperlink output unchanged, still suppressed in CI and when piped, ESLint and Prettier clean. Added one test asserting the URL stays on the same line as the label, so the same slip can't return quietly.


Separately, and not part of this PR: #802 is still waiting on confirmation that 6.2.5 gets cut from develop rather than pre-release-625. That branch is missing six commits from develop, including #801 and #800.

🤖 Generated with Claude Code

The cosmetic pass in 7b95aa4 placed the paragraph break before the colon rather
than after the URL, so any terminal without hyperlink support rendered:

    ===> 💡 Using an AI coding agent? Lint from it with solhint-mcp

  : https://www.npmjs.com/package/solhint-mcp

leaving the URL on its own line behind an orphaned colon. The hyperlink branch
was unaffected, which is why it went unnoticed.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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