mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-29 06:25:16 -07:00
feat(cli): add /agents slash command to list available agents (#16182)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user