Skip to content

Commit 9a5ec8b

Browse files
committed
feat(chat): render subagent tool calls with structured UI
Subagent (Agent tool) children previously rendered as raw JSON wrench tiles in SubtaskChildren. Now they reuse the same per-tool UIs the main agent uses — Bash as $ cmd, Read as file path, Edit as diff, etc. — paired by tool_use_id with their tool_result siblings. Splits tool-uis.tsx (815 lines, over the file-size ceiling) into a directory: - primitives.tsx — ToolShell, CodeBlock, Mono, FileDiff, Markdown, utils - views.tsx — stateless per-tool views, TOOL_VIEWS registry, SubtaskChildren with status inference, SubtaskFallback for MCP / unknown tools - index.tsx — makeAssistantToolUI wrappers, ChatToolUIs mount, and re-exports preserving the public API Closes #152.
1 parent 37ff926 commit 9a5ec8b

6 files changed

Lines changed: 1726 additions & 819 deletions

File tree

0 commit comments

Comments
 (0)