feat(cli): add /agents slash command to list available agents (#16182)

This commit is contained in:
Adam Weidman
2026-01-08 16:02:44 -05:00
committed by GitHub
parent 41a8809280
commit 7e02ef697d
10 changed files with 293 additions and 0 deletions
@@ -71,6 +71,30 @@ describe('<HistoryItemDisplay />', () => {
},
);
it('renders AgentsStatus for "agents_list" type', () => {
const item: HistoryItem = {
...baseItem,
type: MessageType.AGENTS_LIST,
agents: [
{
name: 'local_agent',
displayName: 'Local Agent',
description: ' Local agent description.\n Second line.',
kind: 'local',
},
{
name: 'remote_agent',
description: 'Remote agent description.',
kind: 'remote',
},
],
};
const { lastFrame } = renderWithProviders(
<HistoryItemDisplay {...baseItem} item={item} />,
);
expect(lastFrame()).toMatchSnapshot();
});
it('renders StatsDisplay for "stats" type', () => {
const item: HistoryItem = {
...baseItem,