Skip to content

The open-source agent harness - the runtime layer that turns an LLM into a working agent.

bugfix: add skill icon in Agent Config panel (#1043)

harshil-2096ca29d8ff745e
diff --git a/.changeset/agent-config-skills-section-icon.md b/.changeset/agent-config-skills-section-icon.md
new file mode 100644
index 000000000..736556f71
--- /dev/null
+++ b/.changeset/agent-config-skills-section-icon.md
@@ -0,0 +1,5 @@
+---
+'@truefoundry/trueforge-ui': patch
+---
+
+Render lightbulb icon on Skills section header in Agent Config panel.
diff --git a/packages/trueforge-ui/src/atoms/draft/AgentConfigPanel.tsx b/packages/trueforge-ui/src/atoms/draft/AgentConfigPanel.tsx
index e577f9fab..e9bc80967 100644
--- a/packages/trueforge-ui/src/atoms/draft/AgentConfigPanel.tsx
+++ b/packages/trueforge-ui/src/atoms/draft/AgentConfigPanel.tsx
@@ -526,6 +526,7 @@ export function AgentConfigPanel({
<Section
title="Skills"
+ icon="lightbulb"
actionIcon="plus"
actionLabel="Add skill"
onEdit={disabled ? undefined : () => onOpenEditor('skills')}
diff --git a/packages/trueforge-ui/test/atoms/draft/AgentConfigPanel.test.tsx b/packages/trueforge-ui/test/atoms/draft/AgentConfigPanel.test.tsx
index 6f6e7a666..7873ec34a 100644
--- a/packages/trueforge-ui/test/atoms/draft/AgentConfigPanel.test.tsx
+++ b/packages/trueforge-ui/test/atoms/draft/AgentConfigPanel.test.tsx
@@ -96,7 +96,9 @@ describe('AgentConfigPanel', () => {
expect(screen.queryByText('Endpoint')).not.toBeInTheDocument();
expect(screen.queryByText('Variables')).not.toBeInTheDocument();
expect(screen.queryByText('Initial messages')).not.toBeInTheDocument();
- expect(screen.queryByRole('button', { name: 'Close agent config' })).not.toBeInTheDocument();
+ expect(
+ screen.getByRole('heading', { name: 'Skills' }).closest('div.items-start')?.querySelector('svg'),
+ ).toHaveClass('lucide-lightbulb');
expect(screen.getByRole('heading', { name: 'Agent Config' }).parentElement).toHaveClass(
'min-h-14',
'border-b',