Skip to content

feat(platform): replace agent tools checkbox wall with searchable picker - #2525

Merged
yannickmonney merged 1 commit into
mainfrom
improvement/agent-tools-picker-2384
Jul 6, 2026
Merged

yannickmonney merged 1 commit into
mainfrom
improvement/agent-tools-picker-2384

Conversation

@yannickmonney

Copy link
Copy Markdown
Contributor

Closes #2384

Problem

The agent editor's Tools tab was a flat two-column checkbox wall: ~48 tools under small text headers, no per-tool descriptions, no search, no group toggles or counts, and half of the content area sat empty.

Change

ToolSelector is rebuilt as a scannable, searchable, grouped picker — composed entirely from existing primitives, no new UI concepts:

  • Search — the shared SearchInput plus rankTokens/scoreText from @tale/ui/search (the same AND-token model the global search uses). Matches the localized label, the description, the raw tool name, and the category label. A SearchX EmptyState shows when nothing matches.
  • Groups — one Card per category with a Lucide glyph, a parent enable-all Checkbox (indeterminate when partially enabled) and an enabled/total count Badge. Under an active filter the header checkbox only ever toggles the visible rows, never hidden ones.
  • Descriptions — every tool row now carries a localized one-line description (settings.agents.tools.descriptions.*, all 48 tools in en/de/fr; de-CH stays an overlay). Registry descriptions are LLM prompt text, so they were not reused verbatim.
  • Width — the tab widens from the 544px narrow cap to the max-w-3xl cap the sibling environment/conversation-starters tabs already use; category cards lay out in two columns. The web-search RadioGroup gets the same Card frame so it reads as part of the picker.

The data contract is untouched: toolNames / integrationBindings / workflows flow through the same handlers, hiddenTools (rag_search, web) stay excluded, external agents still see only their integration bindings, and the existing web-search e2e flow is unchanged.

Tests

  • New tool-selector.test.tsx (8 tests): grouping + labels + descriptions + counts, indeterminate/checked group states, per-tool toggle preserving other groups, group enable-all select/clear, search filtering, no-match empty state, hiddenTools exclusion, external-agent mode, plus an axe accessibility check.
  • lib/i18n/messages.test.ts (parity + usage, 23 tests) green.
  • Platform typecheck and repo lint green.

The agent editor's Tools tab rendered ~48 tools as a bare two-column
checkbox list: no descriptions, no search, no group toggles or counts,
half the content width unused.

Rework ToolSelector into a scannable picker composed from existing
primitives:

- SearchInput + rankTokens/scoreText (@tale/ui/search) filter tools by
  localized label, description, raw name, and category label
- one Card per category with a Lucide glyph, a parent enable-all
  checkbox (indeterminate when partial) and an enabled/total Badge;
  under an active filter the header only ever toggles visible rows
- CheckboxGroup rows gain one-line localized descriptions
  (settings.agents.tools.descriptions.* in en/de/fr, all 48 tools)
- SearchX EmptyState when nothing matches
- tools tab widens to the max-w-3xl cap the sibling environment tab
  already uses; the web-search RadioGroup gets the same Card frame

The save contract is unchanged: toolNames / integrationBindings /
workflows flow through the same handlers, hiddenTools still excluded,
external agents still see only their integration bindings.

Closes #2384
@yannickmonney
yannickmonney merged commit 77fbe20 into main Jul 6, 2026
15 of 16 checks passed
@yannickmonney
yannickmonney deleted the improvement/agent-tools-picker-2384 branch July 6, 2026 22:57
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.

Improvement: Agent Tools settings — replace the flat checkbox wall with a scannable, searchable tool picker

1 participant