Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(tools-panel): correct tooltip text for the reset button

Steven Enamakelcb71c75ca66b
diff --git a/app/src/components/settings/panels/ToolsPanel.tsx b/app/src/components/settings/panels/ToolsPanel.tsx
index 4445a3ae16..0faede9279 100644
--- a/app/src/components/settings/panels/ToolsPanel.tsx
+++ b/app/src/components/settings/panels/ToolsPanel.tsx
@@ -1,3 +1,21 @@
+import {
+ AlarmClock,
+ Brain,
+ Calendar,
+ Eraser,
+ FileInput,
+ FilePen,
+ GitBranch,
+ Globe,
+ Image,
+ type LucideIcon,
+ MousePointerClick,
+ Network,
+ Save,
+ Search,
+ SquareTerminal,
+ Wrench,
+} from 'lucide-react';
import { useEffect, useRef, useState } from 'react';
import { useT } from '../../../lib/i18n/I18nContext';
@@ -12,9 +30,29 @@ import {
} from '../../../utils/toolDefinitions';
import PanelPage from '../../layout/PanelPage';
import Button from '../../ui/Button';
-import { SettingsRow, SettingsSection, SettingsStatusLine, SettingsSwitch } from '../controls';
+import Card from '../../ui/Card';
+import { Tile, TileGrid } from '../../ui/TileGrid';
+import { SettingsStatusLine, SettingsSwitch } from '../controls';
import SettingsPanel from '../layout/SettingsPanel';
+/** Tile icon per UI tool toggle id. */
+const TOOL_ICONS: Record<string, LucideIcon> = {
+ shell: SquareTerminal,
+ git_operations: GitBranch,
+ file_read: FileInput,
+ file_write: FilePen,
+ image_info: Image,
+ browser_open: Globe,
+ browser: MousePointerClick,
+ http_request: Network,
+ web_search: Search,
+ memory_store: Save,
+ memory_recall: Brain,
+ memory_forget: Eraser,
+ cron: AlarmClock,
+ schedule: Calendar,
+};
+
interface ToolsPanelProps {
/** When true, render without the SettingsHeader chrome (used when embedded
* inside the onboarding custom wizard). */
@@ -97,34 +135,44 @@ const ToolsPanel = ({ embedded = false }: ToolsPanelProps = {}) => {
const body = (
<>
- {/* The page scrolls as a whole; the page description already says what
- this is, so no intro line and no fixed-height inner scroller. */}
+ {/* Each category is a card of tool tiles; the tiles are narrow, so they
+ flow into a grid instead of stacking full-width. */}
<div className="space-y-4">
{TOOL_CATEGORIES.map(category => {
const tools = toolsByCategory[category];
if (tools.length === 0) return null;
return (
- <SettingsSection
+ <Card
key={category}
title={category}
- description={CATEGORY_DESCRIPTIONS[category]}>
- {tools.map(tool => (
- <SettingsRow
- key={tool.id}
- htmlFor={`tool-switch-${tool.id}`}
- label={tool.displayName}
- description={tool.description}
- control={
- <SettingsSwitch
- id={`tool-switch-${tool.id}`}
- checked={Boolean(enabled[tool.id])}
- onCheckedChange={() => toggle(tool.id)}
- aria-label={tool.displayName}
+ description={CATEGORY_DESCRIPTIONS[category]}
+ divided={false}
+ data-testid={`tools-category-${category.toLowerCase()}`}>
+ <TileGrid padded>
+ {tools.map(tool => {
+ const Icon = TOOL_ICONS[tool.id] ?? Wrench;
+ const on = Boolean(enabled[tool.id]);
+ return (
+ <Tile
+ key={tool.id}
+ htmlFor={`tool-switch-${tool.id}`}
+ icon={<Icon />}
+ iconActive={on}
+ title={tool.displayName}
+ description={tool.description}
+ control={
+ <SettingsSwitch
+ id={`tool-switch-${tool.id}`}
+ checked={on}
+ onCheckedChange={() => toggle(tool.id)}
+ aria-label={tool.displayName}
+ />
+ }
/>
- }
- />
- ))}
- </SettingsSection>
+ );
+ })}
+ </TileGrid>
+ </Card>
);
})}
</div>