Skip to content

Conversation

@zzstoatzz
Copy link
Collaborator

@zzstoatzz zzstoatzz commented Oct 1, 2025

Fix: Align CLI banner box edges by removing emoji variation selectors

before

image

you can also see this on all FastMCP cloud server logs

after

image

Problem

  • The right border of the startup banner panel appeared jagged/misaligned.
  • Root cause: two emojis in the info table included Unicode variation selectors (VS16):
    • U+1F5A5 U+FE0F (🖥️) on "Server name"
    • U+1F3CE U+FE0F (🏎️) on "FastMCP version"
  • Many terminals and width calculators treat emoji with VS16 as double‑width (2 columns). Rich's table width calculations then disagree with the terminal's display width, shifting content to the right and causing the panel's right edge to be off.

Change

  • Replace the two emojis with their base forms (no variation selector):
    • 🖥️ → 🖥
    • 🏎️ → 🏎
  • No other layout or sizing changes. The table/panel centering and width remain the same.

Why this works

  • Without VS16, these code points typically render with a consistent single display width in terminals, matching wcwidth used by Rich. That keeps column width math and actual rendering in sync, so the right border aligns.

Notes

  • This is a visual fix only; no behavior or API changes.
  • Tested manually by running uv run fastmcp run examples/echo.py and verifying the panel edges are straight with standard terminal fonts.

@zzstoatzz zzstoatzz requested a review from jlowin October 1, 2025 01:44
@zzstoatzz zzstoatzz force-pushed the fix/cli-emoji-width branch from b7c2481 to 3f8fbbf Compare October 1, 2025 01:46
@zzstoatzz zzstoatzz requested a review from strawgate October 1, 2025 01:46
@zzstoatzz zzstoatzz added the cli Related to FastMCP CLI commands (run, dev, install) or CLI functionality. label Oct 1, 2025
@zzstoatzz zzstoatzz merged commit 5c54ea2 into main Oct 1, 2025
8 checks passed
@zzstoatzz zzstoatzz deleted the fix/cli-emoji-width branch October 1, 2025 19:56
@jlowin jlowin added the bug Something isn't working. Reports of errors, unexpected behavior, or broken functionality. label Oct 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working. Reports of errors, unexpected behavior, or broken functionality. cli Related to FastMCP CLI commands (run, dev, install) or CLI functionality.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants