Skip to content

Tool summary falls back to raw JSON.stringify (ugly, overlong one-liners) #23

Description

@aasis21

Problem

ToolCard.summarize() returns JSON.stringify(record) when none of the known keys (command/path/file/pattern/query/url/description) are present. For tools with other arg shapes this produces a noisy, unreadable one-line blob in the collapsed card.

Suggested fix

Render a friendlier fallback (first key/value, or a generic "N args") and reserve the full JSON for the expanded view.

Where

mobile/src/components/ToolCard.tsx (summarize, lines ~36–45).


Filed from a UI research sweep of the Helm mobile app (landing + live demo session) using Playwright + full source review, cross-referenced against Claude, ChatGPT, GitHub Copilot Chat, and Codex/Claude Code UIs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    polishVisual polishtool-cardsInline tool call cardsuiUser interface

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions