Skip to content

feat(panel): collapsible agent block + Skill tool rendering#906

Open
xukaaaa wants to merge 1 commit into
dohooo:mainfrom
xukaaaa:xukaaaa/collapsible-agent-block-skill
Open

feat(panel): collapsible agent block + Skill tool rendering#906
xukaaaa wants to merge 1 commit into
dohooo:mainfrom
xukaaaa:xukaaaa/collapsible-agent-block-skill

Conversation

@xukaaaa

@xukaaaa xukaaaa commented Jun 27, 2026

Copy link
Copy Markdown

Change

  • AgentChildrenBlock switches from an always-expanded <div> to a <details>/<summary> with a chevron, open by default — a long sub-agent run can be collapsed. toolUseCount now counts tools inside collapsed-group parts too.
  • A Skill with context: fork (SKILL.md frontmatter) spawns a subagent, so Skill is added to AGENT_TOOL_NAMES and its child messages fold under the tool call. Unlike Agent/Task, the Skill block shows every child part (no tool-call-only filter) plus the skill's string result in a <pre> once it finishes.

Tests (TDD, red-first)

  • tool-call.test.tsx — agent block is a collapsible <details> (open by default, collapse hides children); Skill renders its result text; Skill block collapsible.

clippy/fmt/typecheck/biome clean. Full cargo test --tests pass. Manually verified in bun run dev. Independent of the /context+/compact fix PR (#905) — merge in any order.

AgentChildrenBlock becomes a collapsible <details>; a Skill with `context: fork` spawns a subagent, so Skill is added to AGENT_TOOL_NAMES and its child messages fold under the tool call, with the skill's result text surfaced when it finishes.
@vercel

vercel Bot commented Jun 27, 2026

Copy link
Copy Markdown

@xukaaaa is attempting to deploy a commit to the Caspian's Team Team on Vercel.

A member of the Team first needs to authorize it.

@dosubot dosubot Bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Jun 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant