feat(ui): improve sub-agent tool card rendering with badges and icons
Changes
Improve sub-agent tool card visual rendering:
⊞3→ numbered badge — rounded colored badge- Emoji prefix for sub-agent names — ⚡task, 🔍explore, 🔁parallel_tasks
- Colored left border for sub-agent cards —
border-left: 3px solid var(--accent) - Nesting connector line —
2pxvertical line on the left of nested areas parallel_tasksadded to SUBAGENT_TOOLS — enables sub-agent visual style
Cache-impact: none — pure frontend UI change
Fixes #4969 — 子编程体工具卡片渲染改进:
- ⊞神秘符号 → 彩色数字徽章
- 并列任务显示为嵌套卡片
- 子 agent 卡片加彩色左边框,与普通工具调用区分
- 嵌套层级用左侧连接线可视化
Thanks for the proposal. I am closing this PR for now because we are not taking this larger sub-agent-card direction as-is.
A narrower creation-theme tool-card cleanup has already landed in #5065, but this PR also changes the sub-agent visual language with emoji prefixes, a new badge shape, and global nested-line styling, while the larger parallel_tasks rendering contract from #4969 is still not fully addressed.
If we revisit sub-agent hierarchy rendering, it should be split into a smaller PR against the current main-v2 with updated requirements and without mixing unrelated tool-card restyling.