Files
dsh-context/tests
bowenliang123 47b7d9eacd feat(client): assistant tool calls render as parsed argument cards
A tool call inside an assistant message's blocks now forms its own card,
mirroring the tool definition's parameter card: the head names the call
target with the parsed argument count, the body lists each argument as a
name/type/value row (values render raw when strings, JSON otherwise).
Arguments that are not a parseable JSON object fall back to the raw
payload inside the same card.

The spec now arms two calls — one parseable, one not — and asserts the
card chrome, the parsed row, the count badge, and the raw fallback. The
view-bed text helpers learned to read number children (React renders
them as text), which the count badge needs.

No new CSS: the card and rows reuse the tool-schema classes.
2026-08-22 03:25:26 +08:00
..