mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-30 15:04:16 -07:00
refactor: make baseTimestamp optional in addItem and remove redundant calls (#16471)
This commit is contained in:
@@ -44,7 +44,7 @@ const agentsListCommand: SlashCommand = {
|
||||
agents,
|
||||
};
|
||||
|
||||
context.ui.addItem(agentsListItem, Date.now());
|
||||
context.ui.addItem(agentsListItem);
|
||||
|
||||
return;
|
||||
},
|
||||
@@ -65,13 +65,10 @@ const agentsRefreshCommand: SlashCommand = {
|
||||
};
|
||||
}
|
||||
|
||||
context.ui.addItem(
|
||||
{
|
||||
type: MessageType.INFO,
|
||||
text: 'Refreshing agent registry...',
|
||||
},
|
||||
Date.now(),
|
||||
);
|
||||
context.ui.addItem({
|
||||
type: MessageType.INFO,
|
||||
text: 'Refreshing agent registry...',
|
||||
});
|
||||
|
||||
await agentRegistry.reload();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user