Skip to content

Collapse tool groups with more than 5 tool calls#191

Open
annzhang-db wants to merge 5 commits intodatabricks:mainfrom
annzhang-db:parallel-tool-group-collapse
Open

Collapse tool groups with more than 5 tool calls#191
annzhang-db wants to merge 5 commits intodatabricks:mainfrom
annzhang-db:parallel-tool-group-collapse

Conversation

@annzhang-db
Copy link
Copy Markdown

Summary

  • Adds TOOL_GROUP_COLLAPSE_THRESHOLD = 5 constant to MessageToolGroup
  • Splits tools into visibleTools (first 5) and hiddenTools (rest)
  • Wraps hidden tools in a <Collapsible> with a chevron trigger showing "+N more tool use(s)" / "Show less"

Stacked on #190 — merge that first.

Test plan

  • Groups of ≤5 tools render flat with no collapse UI
  • Groups of >5 tools show first 5 and a "+N more tool use(s)" trigger
  • Clicking the trigger expands hidden tools and shows "Show less"
  • Clicking again collapses back

This pull request and its description were written by Isaac.

@annzhang-db annzhang-db force-pushed the parallel-tool-group-collapse branch from 8afe7d5 to 5a3bd90 Compare April 21, 2026 22:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant