| fix(webui): format tool-call names/args like the TUI (mcp · server · tool)
The webui showed raw mcp__open-meteo__geocoding {"count":3,…} (plus a CSS
capitalize that mangled it to Mcp__open-Meteo__…), while the TUI shows
mcp · open-meteo · geocoding(count: "3", …). Port the TUI helpers so both
match:
- displayToolName mirrors display_tool_name: mcp__server__tool →
mcp · server · tool; other names snake_case → PascalCase. Drop the
.tool-name text-transform: capitalize (the helper now cases correctly).
- formatToolDetail mirrors format_tool_detail: MCP args as
key: "value", …; builtin tools show their salient arg (bash command,
grep pattern, read basename, …); common-key fallback. Full raw args stay
available by expanding the row.
tsc + vite build pass.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
| 14 小时前 |